Click or drag to resize

OptimizerMultivariableFunction.Evaluate Method (Double[], Int32, Boolean, ITrackCalculationProgress)

Evaluates the function and the gradients. This will call both the DerivativeEvaluationEvent and the NormalFunctionEvaluationEvent events.

Namespace:  AGI.Foundation.NumericalMethods
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax
public virtual MultivariableFunctionEvaluationAndDerivativeResults<OptimizerMultivariableFunctionResults, OptimizerMultivariableFunctionDerivativeResults> Evaluate(
	double[] variables,
	int order,
	bool multithreaded,
	ITrackCalculationProgress progressTracker
)

Parameters

variables
Type:System.Double[]
The values of the variables to evaluate at.
order
Type: System.Int32
The highest order of the function that should be evaluated. By default, this can be 0 or 1.
multithreaded
Type: System.Boolean
Should the evaluation be done using as many cores as possible.
progressTracker
Type: AGI.Foundation.ITrackCalculationProgress
An optional progress tracker.

Return Value

Type: MultivariableFunctionEvaluationAndDerivativeResults<OptimizerMultivariableFunctionResults, OptimizerMultivariableFunctionDerivativeResults>
The cost function value, equality constraint values, inequality constraint values, and gradients of all those values.
See Also