relentless.optimize.ValueTest#
- class relentless.optimize.ValueTest(value, absolute=1e-08, relative=1e-05)#
Value test for convergence.
The result is converged if and only if the value of the function \(f\) is close to the
valueaccording toTolerance.isclose(). Absolute and/or relative tolerances may be used.- Parameters:
Methods
converged(result)Check if the function is converged using the value test.
Attributes
The absolute tolerance.
The relative tolerance.
The value(s) to check.
- converged(result)#
Check if the function is converged using the value test.
Determines if two the value of a result is close to the specified value using
Tolerance.isclose().- Parameters:
result (
ObjectiveFunctionResult) – The result to check for convergence.- Returns:
True if the function is converged.
- Return type: