Return object¶
- class DyCors.result.ResultDyCors(fun, jac, nfev, njev, nit, status, message, x, success, m=None, hist=None, dhist=None, xres=None, fres=None, gres=None, restart_its=None)[source]¶
Represents the optimization result.
Inherits from scipy.optimize.OptimizeResult.
- Attributes
- xndarray
The solution of the optimization.
- successbool
Whether or not the optimizer exited successfully.
- statusint
Termination status of the optimizer. Refer to message for details.
- messagestr
Description of the cause of the termination.
- fun, jacndarray
Values of objective function and its Jacobian.
- nfev, njevint
Number of evaluations of the objective functions and of its Jacobian.
- nitint
Number of restarts performed by DyCors.
- mint, optional
Number of initial sampling points
- histndarray, optional
Values of objective function at all iterations.
- dhistndarray, optional
Values of gradient at all iterations.
- xresndarray, optional
Array with all the points evaluated by the optimization algorithm.
- fresndarray, optional
Array with the values of the objective function at all points that have been evaluated.
- gresndarray, optional
Array with the values of the gradient of the objective function at all points that have been evaluated.
- restart_itslist, optional
List with iterations at which the optimization algorithm has been restarted
- plot(figsize=(), ylim_f=(), ylim_df=(), fontsize=10)[source]¶
Plot evolution of minimum value and norm of the gradient if used.
- Parameters
- figsizetuple, optional
Size of the figure.
- ylim_ftuple, optional
y limits on the function history.
- ylim_dftuple, optional
y limits on the function history.
- fontsizeint, optional
Font size.