OptimizeResult
OptimizeResult
¶
Bases: object
A class to store the results/progress of an optimization algorithm.
Similar to the OptimizeResult
class from scipy.optimize
,
but with a few additional fields.
Source code in viprs/utils/OptimizeResult.py
iterations
property
¶
Return the number of iterations at its current value.
objective
property
¶
Return the objective function value at its current value.
reset()
¶
update(fun, stop_iteration=False, success=False, message=None, increment=True)
¶
Update the stored values with new values.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
fun |
The new objective function value |
required | |
stop_iteration |
A flag to indicate whether the optimization algorithm has stopped iterating |
False
|
|
success |
A flag to indicate whether the optimization algorithm has succeeded |
False
|
|
message |
A detailed message about the optimization result. |
None
|
|
increment |
A flag to indicate whether to increment the number of iterations. |
True
|