objfun must evaluate the objective function for a specified -vector .
public delegate void E05JB_OBJFUN( n,  x, out f, nstate, out inform )
|Visual Basic (Declaration)|
Public Delegate Sub E05JB_OBJFUN ( _ n As , _ x As (), _ < > ByRef f As , _ nstate As , _ < > ByRef inform As _ )
public delegate void E05JB_OBJFUN( n, array< >^ x, [ ] % f, nstate, [ ] % inform )
type E05JB_OBJFUN = delegate of n: * x:  * f: byref * nstate: * inform: byref -> unit
On entry: , the number of variables.
- Type: array<
On entry: , the vector at which the objective function is to be evaluated.
On exit: must be set to the value of the objective function at , unless you have specified termination of the current problem using inform.
On entry: if then e05jb is calling objfun for the first time. This parameter setting allows you to save computation time if certain data must be read or calculated only once.
On exit: must be set to a value describing the action to be taken by the solver on return from objfun. Specifically, if the value is negative the solution of the current problem will terminate immediately; otherwise, computations will continue.