optim_results
- class nrv.optim.optim_utils.optim_results(context=None)[source]
Container class storing optimization parameters, history, and best solution data.
Attributes
Indicate whether the results object is a dummy placeholder. |
|
Indicate whether the results contain a declared result type. |
|
Indicate whether the results object should be serialized. |
Methods
|
Initialize an optimization-results container. |
|
Apply a post-processing filter to every stored particle position. |
Recompute simulation results at the recorded best position. |
|
|
Find which particle reached the recorded best position. |
|
Create a new dictionary with keys from iterable and values set to value. |
|
Return the value for key if key is in the dictionary, else default. |
Generic method returning all the atributes of an NRV_class instance |
|
|
Check whether one particle velocity has fallen below a stabilization threshold. |
|
Load optimization results and reserialize the nested optimization parameters. |
|
Plot the optimization cost history. |
|
If the key is not found, return the default if given; otherwise, raise a KeyError. |
Remove and return a (key, value) pair as a 2-tuple. |
|
|
Remove a key or a list of keys from the results |
|
Save the results object after synchronizing its internal state. |
|
Generic method to set any attribute of |
|
Insert key with a value of default if key is not in the dictionary. |
|
Estimate the last iteration at which selected particles were not yet stabilized. |
|
overload of dict update method to update both attibute and items |