gemseo / post

Show inherited members

correlations module

Correlations in the optimization database.

class gemseo.post.correlations.Correlations(opt_problem)[source]

Bases: OptPostProcessor

Scatter plots of the correlated variables.

These variables can be design variables, constraints, objective or observables. This post-processor considers all the correlations greater than a threshold.

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.

static func_order(func_names, x)[source]

Key function to sort function components.

Parameters:
  • func_names (Sequence[str]) – The functions names in the required order.

  • x (str) – An element from a list.

Returns:

The index to be given to the sort method and the function name associated to that index.

Return type:

tuple[int, str]

DEFAULT_FIG_SIZE = (15.0, 10.0)

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

MAXIMUM_CORRELATION_COEFFICIENT = 0.999999999

The maximum correlation coefficient above which the variable is not plotted.

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.