gemseo.algos.pareto.pareto_plot_biobjective module#
Plotting a 2D Pareto front.
- class ParetoPlotBiObjective(ax, obj_values, pareto_optimal_loc, obj_names, all_pareto_optimal, is_non_feasible, bi_obj=False, show_non_feasible=True)[source]#
Bases:
objectPlot a 2D Pareto front on a Matplotlib axes.
- Parameters:
ax (Axes) -- The
Axeson which to plot.obj_values (ndarray) -- The objective function array, of size (n_samples, n_objs).
pareto_optimal_loc (BooleanArray) -- A vector of booleans of size n_samples, True if the point is Pareto optimal.
obj_names (Sequence[str]) -- The names of the objectives.
all_pareto_optimal (BooleanArray) -- The indices of points that are Pareto optimal w.r.t. all criteria.
is_non_feasible (BooleanArray) -- An Array of booleans of size n_samples, True if non_feasible.
bi_obj (bool) --
True if there are only two objective values.
By default it is set to False.
show_non_feasible (bool) --
True to show the non-feasible points.
By default it is set to True.