OptimizerMultivariableFunction.EvaluateDerivative 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: 25.1.421.0 (25.1.421.0)
Syntaxpublic virtual OptimizerMultivariableFunctionDerivativeResults EvaluateDerivative(
double[] variables,
bool multithreaded,
ITrackCalculationProgress progressTracker
)
Public Overridable Function EvaluateDerivative (
variables As Double(),
multithreaded As Boolean,
progressTracker As ITrackCalculationProgress
) As OptimizerMultivariableFunctionDerivativeResults
public:
virtual OptimizerMultivariableFunctionDerivativeResults^ EvaluateDerivative(
array<double>^ variables,
bool multithreaded,
ITrackCalculationProgress^ progressTracker
)
abstract EvaluateDerivative :
variables : float[] *
multithreaded : bool *
progressTracker : ITrackCalculationProgress -> OptimizerMultivariableFunctionDerivativeResults
override EvaluateDerivative :
variables : float[] *
multithreaded : bool *
progressTracker : ITrackCalculationProgress -> OptimizerMultivariableFunctionDerivativeResults
Parameters
- variables
- Type:System.Double[]
The values to compute the gradients at. - 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:
OptimizerMultivariableFunctionDerivativeResultsThe gradients of the cost function, equality constraints, and inequality constraints.
See Also