Click or drag to resize

OptimizerMultivariableFunctionEvaluateDerivative Method (Double, Boolean, ITrackCalculationProgress)

Evaluates the gradients of this function. The default implementation of this method will numerically compute the gradients. To do that, the value of the function at the variables will be computed. When using the default implementation, the PerturbationValues must be set.

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 OptimizerMultivariableFunctionDerivativeResults EvaluateDerivative(
	double[] variables,
	bool multithreaded,
	ITrackCalculationProgress progressTracker
)

Parameters

variables
Type: SystemDouble
The values to compute the gradients at.
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: OptimizerMultivariableFunctionDerivativeResults
The gradients of the cost function, equality constraints, and inequality constraints.
See Also