gemseo / post

Show inherited members

obj_constr_hist module

History of the maximum constraint and objective value.

class gemseo.post.obj_constr_hist.ObjConstrHist(opt_problem)[source]

Bases: OptPostProcessor

History of the maximum constraint and objective value.

The objective history is plotted with a line over the maximum constraint history plotted with the green-white-red color bar:

  • white: the constraint is active;

  • green: the equality constraint is violated while the inequality one is satisfied;

  • red: the inequality constraint is violated.

Parameters:

opt_problem (OptimizationProblem) – The optimization problem to be post-processed.

Raises:

ValueError – If the JSON grammar file for the options of the post-processor does not exist.

DEFAULT_FIG_SIZE = (11.0, 6.0)

The default width and height of the figure, in inches.

database: Database

The database generated by the optimization problem.

materials_for_plotting: dict[Any, Any]

The materials to eventually rebuild the plot in another framework.

opt_problem: OptimizationProblem

The optimization problem.