objfun must calculate the objective function and possibly its gradient as well for a specified -element vector .
Syntax
C# |
---|
public delegate void E04DG_OBJFUN( ref int mode, int n, double[] x, out double objf, double[] objgrd, int nstate ) |
Visual Basic |
---|
Public Delegate Sub E04DG_OBJFUN ( _ ByRef mode As Integer, _ n As Integer, _ x As Double(), _ <OutAttribute> ByRef objf As Double, _ objgrd As Double(), _ nstate As Integer _ ) |
Visual C++ |
---|
public delegate void E04DG_OBJFUN( int% mode, int n, array<double>^ x, [OutAttribute] double% objf, array<double>^ objgrd, int nstate ) |
F# |
---|
type E04DG_OBJFUN = delegate of mode : int byref * n : int * x : float[] * objf : float byref * objgrd : 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:
- n
- Type: System..::..Int32On entry: , the number of variables.
- x
- Type: array<System..::..Double>[]()[][]On entry: , the vector of variables at which the objective function and its gradient are to be evaluated.
- objf
- Type: System..::..Double%On exit: the value of the objective function at .
- objgrd
- Type: array<System..::..Double>[]()[][]On exit: if , must contain the value of evaluated at , for .
- nstate
- Type: System..::..Int32