objfun must evaluate the objective function F at a specified vector x.

Syntax

C#
public delegate void E04JC_OBJFUN(
	int n,
	double[] x,
	out double f,
	out int inform
)
Visual Basic
Public Delegate Sub E04JC_OBJFUN ( _
	n As Integer, _
	x As Double(), _
	<OutAttribute> ByRef f As Double, _
	<OutAttribute> ByRef inform As Integer _
)
Visual C++
public delegate void E04JC_OBJFUN(
	int n, 
	array<double>^ x, 
	[OutAttribute] double% f, 
	[OutAttribute] int% inform
)
F#
type E04JC_OBJFUN = 
    delegate of 
        n : int * 
        x : float[] * 
        f : float byref * 
        inform : int byref -> unit

Parameters

n
Type: System..::..Int32
On entry: n, the number of independent variables.
x
Type: array<System..::..Double>[]()[][]
On entry: x, the vector at which the objective function is to be evaluated.
f
Type: System..::..Double%
On exit: must be set to the value of the objective function at x, unless you have specified termination of the current problem using inform.
inform
Type: System..::..Int32%
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.

See Also