TargetedSegmentListOptimizerFunctionEvaluate Method (Double, ITrackCalculationProgress) |
Evaluates the function. The OptimizerMultivariableFunctionResults returned must include the computed
equality constraints in the order that they are in the Equalities and the computed
inequality constraints in the order that they are in the Inequalities. If there
are no equality constraints, the function should return a zero-length array of doubles for the equality constraint values.
The same should be done for the inequality constraint values if there are no inequality constraint.
If the CostFunction is , the results should include a
null cost function value. Otherwise, the results should return a Double as the cost function value.
Namespace:
AGI.Foundation.NumericalMethods
Assembly:
AGI.Foundation.SegmentPropagation (in AGI.Foundation.SegmentPropagation.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax public override OptimizerMultivariableFunctionResults Evaluate(
double[] variables,
ITrackCalculationProgress progressTracker
)
Public Overrides Function Evaluate (
variables As Double(),
progressTracker As ITrackCalculationProgress
) As OptimizerMultivariableFunctionResults
public:
virtual OptimizerMultivariableFunctionResults^ Evaluate(
array<double>^ variables,
ITrackCalculationProgress^ progressTracker
) override
abstract Evaluate :
variables : float[] *
progressTracker : ITrackCalculationProgress -> OptimizerMultivariableFunctionResults
override Evaluate :
variables : float[] *
progressTracker : ITrackCalculationProgress -> OptimizerMultivariableFunctionResults
Parameters
- variables
- Type: SystemDouble
The value of the variables that are used to evaluate the function. - progressTracker
- Type: AGI.FoundationITrackCalculationProgress
An optional progress tracker.
Return Value
Type:
OptimizerMultivariableFunctionResultsThe cost function, equality constraint values, and the inequality constraint values.
See Also