A Pareto Front.
- class gemseo.post.pareto_front.ParetoFront(opt_problem)¶
Compute the Pareto front for a multi-objective problem.
The Pareto front of an optimization problem is the set of
non-dominatedpoints of the design space for which there is no other point that improves an objective without damaging another.
This post-processing computes the Pareto front and generates a matrix of plots, one per couple of objectives. For a given plot, the red markers are the non-dominated points according to the objectives of this plot and the green markers are the non-dominated points according to all the objectives. The latter are also called
Pareto optimal points.
opt_problem (OptimizationProblem) – The optimization problem to be post-processed.
ValueError – If the JSON grammar file for the options of the post-processor does not exist.
Check the options of the post-processor.
- execute(save=True, show=False, file_path=None, directory_path=None, file_name=None, file_extension=None, fig_size=None, **options)¶
Post-process the optimization problem.
save (bool) –
True, save the figure.
By default it is set to True.
show (bool) –
True, display the figure.
By default it is set to False.
file_path (str | Path | None) – The path of the file to save the figures. If the extension is missing, use
None, create a file path from
directory_path (str | Path | None) – The path of the directory to save the figures. If
None, use the current working directory.
file_name (str | None) – The name of the file to save the figures. If
None, use a default one generated by the post-processing.
file_extension (str | None) – A file extension, e.g. ‘png’, ‘pdf’, ‘svg’, … If
None, use a default file extension.
fig_size (FigSizeType | None) – The width and height of the figure in inches, e.g.
(w, h). If
None, use the
OptPostProcessor.DEFAULT_FIG_SIZEof the post-processor.
**options (OptPostProcessorOptionType) – The options of the post-processor.
The figures, to be customized if not closed.
ValueError – If the
- DEFAULT_FIG_SIZE = (10.0, 10.0)¶
The default width and height of the figure, in inches.
- property figures: dict[str, matplotlib.figure.Figure]¶
The Matplotlib figures indexed by a name, or the nameless figure counter.
- materials_for_plotting: dict[Any, Any]¶
The materials to eventually rebuild the plot in another framework.