CADETProcess.optimization.OptimizationResults.plot_convergence#
- OptimizationResults.plot_convergence(target='objectives', figs=None, axs=None, plot_individual=False, plot_avg=True, autoscale=True, show=True, plot_directory=None)[source]#
Plot the convergence of optimization metrics over evaluations.
- Parameters:
- targetstr, optional
The target metrics to plot: ‘objectives’, ‘nonlinear_constraints’, or ‘meta_scores’. The default is ‘objectives’.
- figsplt.Figure or list of plt.Figure, optional
Figure(s) to plot the objectives on.
- axsplt.Axes or list of plt.Axes, optional
Axes to plot the objectives on. If None, new figures and axes will be created.
- plot_individualbool, optional
If True, create individual figure vor each metric. The default is False.
- autoscalebool, optional
If True, autoscale the y-axis. The default is True.
- showbool, optional
If True, show the plot. The default is True.
- plot_directorystr, optional
A directory to save the plot, by default None.
- Returns:
- tuple
Tuple with (lists of) figure and axes objects.