1 -- File: FunctionSet.cdl
2 -- Created: Mon May 13 15:21:04 1991
3 -- Author: Laurent PAINNOT
5 --Copyright: Matra Datavision 1991
8 deferred class FunctionSet from math
10 -- This abstract class describes the virtual functions associated to
11 -- a set on N Functions of M independant variables.
17 Delete(me:out) is virtual;
18 ---C++: alias "Standard_EXPORT virtual ~math_FunctionSet(){Delete();}"
21 ---Purpose: Returns the number of variables of the function.
28 ---Purpose: Returns the number of equations of the function.
34 Value(me: in out; X: Vector; F: out Vector)
35 ---Purpose: Computes the values <F> of the functions for the
37 -- returns True if the computation was done successfully,
44 GetStateNumber(me: in out)
45 ---Purpose: Returns the state of the function corresponding to the
46 -- latestcall of any methods associated with the function.
47 -- This function is called by each of the algorithms
48 -- described later which define the function Integer
49 -- Algorithm::StateNumber(). The algorithm has the
50 -- responsibility to call this function when it has found
51 -- a solution (i.e. a root or a minimum) and has to maintain
52 -- the association between the solution found and this
54 -- Byu default, this method returns 0 (which means for the
55 -- algorithm: no state has been saved). It is the
56 -- responsibility of the programmer to decide if he needs
57 -- to save the current state of the function and to return
58 -- an Integer that allows retrieval of the state.