Click or drag to resize

OptimizerMultivariableFunctionEvaluate 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.2.419.0 (24.2.419.0)
Syntax
public virtual MultivariableFunctionEvaluationAndDerivativeResults<OptimizerMultivariableFunctionResults, OptimizerMultivariableFunctionDerivativeResults> Evaluate(
	double[] variables,
	int order,
	bool multithreaded,
	ITrackCalculationProgress progressTracker
)

Parameters

variables
Type: SystemDouble
The values of the variables to evaluate at.
order
Type: SystemInt32
The highest order of the function that should be evaluated. By default, this can be 0 or 1.
multithreaded
Type: SystemBoolean
Should the evaluation be done using as many cores as possible.
progressTracker
Type: AGI.FoundationITrackCalculationProgress
An optional progress tracker.

Return Value

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