Click or drag to resize

ParameterOptimizer.CheckVariableConvergence 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: 25.1.421.0 (25.1.421.0)
Syntax
public static bool CheckVariableConvergence(
	IList<SolverVariableSettings> variables,
	double[] currentVariableValues,
	double[] previousVariableValues
)

Parameters

variables
Type: System.Collections.Generic.IList<SolverVariableSettings>
The independent variables of the function.
currentVariableValues
Type:System.Double[]
The values of the independent variables for the current iteration.
previousVariableValues
Type:System.Double[]
The values of the independent variables for the previous iteration.

Return Value

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