ParameterOptimizer.CheckCostFunctionConvergence Method |
Namespace:
AGI.Foundation.NumericalMethods
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 25.1.421.0 (25.1.421.0)
Syntaxpublic static bool CheckCostFunctionConvergence(
CostFunctionSettings costFunction,
double? currentCostFunctionValue,
double? previousCostFunctionValue
)
Public Shared Function CheckCostFunctionConvergence (
costFunction As CostFunctionSettings,
currentCostFunctionValue As Double?,
previousCostFunctionValue As Double?
) As Boolean
public:
static bool CheckCostFunctionConvergence(
CostFunctionSettings^ costFunction,
Nullable<double> currentCostFunctionValue,
Nullable<double> previousCostFunctionValue
)
static member CheckCostFunctionConvergence :
costFunction : CostFunctionSettings *
currentCostFunctionValue : Nullable<float> *
previousCostFunctionValue : Nullable<float> -> bool
Parameters
- costFunction
- Type: AGI.Foundation.NumericalMethods.CostFunctionSettings
The cost function to be optimized. - currentCostFunctionValue
- Type: System.Nullable<Double>
The value of the cost function for the current iteration. - previousCostFunctionValue
- Type: System.Nullable<Double>
The value of the cost function for the previous iteration.
Return Value
Type:
Booleantrue if the cost function changed by less than its tolerance or if
one of the cost function values is
null; otherwise
false.
See Also