CADETProcess.optimization.OptimizationResults.plot_objectives#
- OptimizationResults.plot_objectives(include_meta: bool = True, plot_pareto: bool = False, plot_infeasible: bool = True, plot_individual: bool = False, autoscale: bool = True, show: bool = True, plot_directory: str | Path | None = None) None[source]#
Plot objective function values for all optimization generations.
- Parameters:
- include_metabool, optional
If True, meta scores will be included in the plot. The default is True.
- plot_paretobool, optional
If True, only plot Pareto front members of each generation are plotted. Else, all evaluated individuals are plotted. The default is False.
- plot_infeasiblebool, optional
If True, plot infeasible points. The default is True.
- plot_individualbool, optional
If True, create separate figures for each objective. Otherwise, all objectives are plotted in one figure. The default is False.
- plot_infeasiblebool, optional
If True, plot infeasible points. The default is False.
- autoscalebool, optional
If True, automatically adjust the scaling of the axes. The default is True.
- showbool, optional
If True, display the plot. The default is True.
- plot_directorystr, optional
The directory where the plot should be saved. The default is None.
- Returns:
- tuple
A tuple containing: - plt.Figure: The Matplotlib Figure object. - npt.NDArray[plt.Axes]: An array of Axes objects representing the subplots.