CompactQuasiNewtonSolver.GetGradientAndValueAtPoint Delegate
Gets the function value and gradient at a specific point.
Namespace: Microsoft.SolverFoundation.Solvers
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
Syntax
'Declaration
Public Delegate Function GetGradientAndValueAtPoint ( _
pointVector As Double(), _
gradientVector As Double() _
) As Double
public delegate double GetGradientAndValueAtPoint(
double[] pointVector,
double[] gradientVector
)
public delegate double GetGradientAndValueAtPoint(
array<double>^ pointVector,
array<double>^ gradientVector
)
type GetGradientAndValueAtPoint =
delegate of
pointVector:float[] *
gradientVector:float[] -> float
JScript does not support delegates.
Parameters
- pointVector
Type: array<System.Double[]
An input array that represents the current point.
- gradientVector
Type: array<System.Double[]
An output array that represents the gradient vector at the current point.
Return Value
Type: System.Double
The function value. In addition, the values of gradientVector are set.
Remarks
pointVector and gradientVector have a length equal to the value of the NumberOfVariables property.