objfun must calculate either the th element of the vector or all elements of and (optionally) its Jacobian () for a specified -element vector .
Syntax
C# |
---|
public delegate void E05US_OBJFUN( ref int mode, int m, int n, int needfi, double[] x, double[] f, double[,] fjsl, int nstate ) |
Visual Basic |
---|
Public Delegate Sub E05US_OBJFUN ( _ ByRef mode As Integer, _ m As Integer, _ n As Integer, _ needfi As Integer, _ x As Double(), _ f As Double(), _ fjsl As Double(,), _ nstate As Integer _ ) |
Visual C++ |
---|
public delegate void E05US_OBJFUN( int% mode, int m, int n, int needfi, array<double>^ x, array<double>^ f, array<double,2>^ fjsl, int nstate ) |
F# |
---|
type E05US_OBJFUN = delegate of mode : int byref * m : int * n : int * needfi : int * x : float[] * f : float[] * fjsl : float[,] * nstate : int -> unit |
Parameters
- mode
- Type: System..::..Int32%On entry: indicates which values must be assigned during each call of objfun. Only the following values need be assigned:On exit: may be set to a negative value if you wish to abandon the solution to the current local minimization problem. In this case e05us will move to the next local minimization problem.
- m
- Type: System..::..Int32On entry: , the number of subfunctions.
- n
- Type: System..::..Int32On entry: , the number of variables.
- needfi
- Type: System..::..Int32On entry: if , only the th element of needs to be evaluated at ; the remaining elements need not be set. This can result in significant computational savings when .
- x
- Type: array<System..::..Double>[]()[][]On entry: , the vector of variables at which the objective function and/or all available elements of its gradient are to be evaluated.
- f
- Type: array<System..::..Double>[]()[][]On exit: if and , must contain the value of at .If or and , must contain the value of at , for .
- fjsl
- Type: array<System..::..Double,2>[,](,)[,][,]On entry: is set to a special value.
- nstate
- Type: System..::..Int32