ParameterOptimizerCheckCostFunctionConvergence 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.NumericalMethodsCostFunctionSettings
The cost function to be optimized. - currentCostFunctionValue
 - Type: SystemNullableDouble
The value of the cost function for the current iteration. - previousCostFunctionValue
 - Type: SystemNullableDouble
The value of the cost function for the previous iteration. 
Return Value
Type: 
Boolean if the cost function changed by less than its tolerance or if
            one of the cost function values is 
; otherwise 
.
See Also