Scalability study - API¶
This API facilitates the use of the
package implementing classes to benchmark MDO formulations
based on scalable disciplines.
ScalabilityStudy class implements the concept of scalability study:
By instantiating a
ScalabilityStudy, the user defines the MDO problem in terms of design parameters, objective function and constraints.
The user adds different optimization strategies, defined in terms of both optimization algorithms and MDO formulation.
The user adds different scaling strategies, in terms of sizes of design parameters, coupling variables and equality and inequality constraints. The user can also define a scaling strategies according to particular parameters rather than groups of parameters.
Lastly, the user executes the
ScalabilityStudyand the results are written in several files and stored into directories in a hierarchical way, where names depend on both MDO formulation, scaling strategy and replications when it is necessary. Different kinds of files are stored: optimization graphs, dependency matrix plots and of course, scalability results by means of a dedicated class:
- gemseo.problems.scalable.data_driven.api.create_scalability_study(objective, design_variables, directory='study', prefix='', eq_constraints=None, ineq_constraints=None, maximize_objective=False, fill_factor=0.7, active_probability=0.1, feasibility_level=0.8, start_at_equilibrium=True, early_stopping=True, coupling_variables=None)¶
This method creates a
ScalabilityStudy. It requires two mandatory arguments:
the list of
Concerning output files, we can specify:
the prefix of output file names (default: no prefix).
Regarding optimization parametrization, we can specify:
the list of equality constraints names (
the list of inequality constraints names (
the choice of maximizing the objective function (
By default, the objective function is minimized and the MDO problem is unconstrained.
Last but not least, with regard to the scalability methodology, we can overwrite:
the default fill factor of the input-output dependency matrix
the probability to set the inequality constraints as active at initial step of the optimization
the offset of satisfaction for inequality constraints
the use of a preliminary MDA to start at equilibrium
the post-processing of the optimization database to get results earlier than final step
objective (str) – name of the objective
directory (str) –
working directory of the study. Default: ‘study’.
By default it is set to “study”.
prefix (str) –
prefix for the output filenames. Default: ‘’.
By default it is set to “”.
maximize_objective (bool) –
maximizing objective. Default: False.
By default it is set to False.
fill_factor (float) –
default fill factor of the input-output dependency matrix. Default: 0.7.
By default it is set to 0.7.
active_probability (float) –
probability to set the inequality constraints as active at initial step of the optimization. Default: 0.1
By default it is set to 0.1.
feasibility_level (float) –
offset of satisfaction for inequality constraints. Default: 0.8.
By default it is set to 0.8.
start_at_equilibrium (bool) –
start at equilibrium using a preliminary MDA. Default: True.
By default it is set to True.
early_stopping (bool) –
post-process the optimization database to get results earlier than final step.
By default it is set to True.
study_directory (str) – directory of the scalability study.