Click or drag to resize

ParameterOptimizerCheckVariableConvergence Method

A helper method to determine if each of the variables changed by less than their respective VariableTolerance in the last iteration.

Namespace:  AGI.Foundation.NumericalMethods
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.1.418.0 (24.1.418.0)
Syntax
public static bool CheckVariableConvergence(
	IList<SolverVariableSettings> variables,
	double[] currentVariableValues,
	double[] previousVariableValues
)

Parameters

variables
Type: System.Collections.GenericIListSolverVariableSettings
The independent variables of the function.
currentVariableValues
Type: SystemDouble
The values of the independent variables for the current iteration.
previousVariableValues
Type: SystemDouble
The values of the independent variables for the previous iteration.

Return Value

Type: Boolean
if all of the variables changed by less than their respective tolerances; otherwise .
See Also