Scalable study

We want to compare IDF and MDF formulations with respect to the problem dimension for the aerostructure problem. For that, we use the ScalabilityStudy and PostScalabilityStudy classes.

from gemseo.api import configure_logger
from gemseo.api import create_discipline
from gemseo.api import create_scenario
from gemseo.problems.aerostructure.aerostructure_design_space import (
    AerostructureDesignSpace,
)
from gemseo.problems.scalable.data_driven.api import create_scalability_study
from gemseo.problems.scalable.data_driven.api import plot_scalability_results

configure_logger()

Out:

<RootLogger root (INFO)>

Create the disciplinary datasets

First of all, we create the disciplinary Dataset datasets based on a DiagonalDOE.

datasets = {}
disciplines = create_discipline(["Aerodynamics", "Structure", "Mission"])
for discipline in disciplines:
    design_space = AerostructureDesignSpace()
    design_space.filter(discipline.get_input_data_names())
    output_names = iter(discipline.get_output_data_names())
    scenario = create_scenario(
        discipline,
        "DisciplinaryOpt",
        next(output_names),
        design_space,
        scenario_type="DOE",
    )
    for output_name in output_names:
        scenario.add_observable(output_name)
    scenario.execute({"algo": "DiagonalDOE", "n_samples": 10})
    datasets[discipline.name] = scenario.export_to_dataset(
        name=discipline.name, opt_naming=False
    )

Out:

/home/docs/checkouts/readthedocs.org/user_builds/gemseo/envs/4.0.0/lib/python3.9/site-packages/gemseo/algos/design_space.py:448: ComplexWarning: Casting complex values to real discards the imaginary part
  self.__current_value[name] = array_value.astype(
    INFO - 07:16:39:
    INFO - 07:16:39: *** Start DOEScenario execution ***
    INFO - 07:16:39: DOEScenario
    INFO - 07:16:39:    Disciplines: Aerodynamics
    INFO - 07:16:39:    MDO formulation: DisciplinaryOpt
    INFO - 07:16:39: Optimization problem:
    INFO - 07:16:39:    minimize drag(thick_airfoils, sweep, displ)
    INFO - 07:16:39:    with respect to displ, sweep, thick_airfoils
    INFO - 07:16:39:    over the design space:
    INFO - 07:16:39:    +----------------+-------------+-------+-------------+-------+
    INFO - 07:16:39:    | name           | lower_bound | value | upper_bound | type  |
    INFO - 07:16:39:    +----------------+-------------+-------+-------------+-------+
    INFO - 07:16:39:    | thick_airfoils |      5      |   15  |      25     | float |
    INFO - 07:16:39:    | sweep          |      10     |   25  |      35     | float |
    INFO - 07:16:39:    | displ          |    -1000    |  -700 |     1000    | float |
    INFO - 07:16:39:    +----------------+-------------+-------+-------------+-------+
    INFO - 07:16:39: Solving optimization problem with algorithm DiagonalDOE:
    INFO - 07:16:39: ...   0%|          | 0/10 [00:00<?, ?it]
    INFO - 07:16:39: ... 100%|██████████| 10/10 [00:00<00:00, 787.59 it/sec, obj=-320]
    INFO - 07:16:39: Optimization result:
    INFO - 07:16:39:    Optimizer info:
    INFO - 07:16:39:       Status: None
    INFO - 07:16:39:       Message: None
    INFO - 07:16:39:       Number of calls to the objective function by the optimizer: 10
    INFO - 07:16:39:    Solution:
    INFO - 07:16:39:       Objective: -319.99905478395067
    INFO - 07:16:39:       Design space:
    INFO - 07:16:39:       +----------------+-------------+-------+-------------+-------+
    INFO - 07:16:39:       | name           | lower_bound | value | upper_bound | type  |
    INFO - 07:16:39:       +----------------+-------------+-------+-------------+-------+
    INFO - 07:16:39:       | thick_airfoils |      5      |   25  |      25     | float |
    INFO - 07:16:39:       | sweep          |      10     |   35  |      35     | float |
    INFO - 07:16:39:       | displ          |    -1000    |  1000 |     1000    | float |
    INFO - 07:16:39:       +----------------+-------------+-------+-------------+-------+
    INFO - 07:16:39: *** End DOEScenario execution (time: 0:00:00.021632) ***
    INFO - 07:16:40:
    INFO - 07:16:40: *** Start DOEScenario execution ***
    INFO - 07:16:40: DOEScenario
    INFO - 07:16:40:    Disciplines: Structure
    INFO - 07:16:40:    MDO formulation: DisciplinaryOpt
    INFO - 07:16:40: Optimization problem:
    INFO - 07:16:40:    minimize mass(thick_panels, sweep, forces)
    INFO - 07:16:40:    with respect to forces, sweep, thick_panels
    INFO - 07:16:40:    over the design space:
    INFO - 07:16:40:    +--------------+-------------+-------+-------------+-------+
    INFO - 07:16:40:    | name         | lower_bound | value | upper_bound | type  |
    INFO - 07:16:40:    +--------------+-------------+-------+-------------+-------+
    INFO - 07:16:40:    | thick_panels |      1      |   3   |      20     | float |
    INFO - 07:16:40:    | sweep        |      10     |   25  |      35     | float |
    INFO - 07:16:40:    | forces       |    -1000    |  400  |     1000    | float |
    INFO - 07:16:40:    +--------------+-------------+-------+-------------+-------+
    INFO - 07:16:40: Solving optimization problem with algorithm DiagonalDOE:
    INFO - 07:16:40: ...   0%|          | 0/10 [00:00<?, ?it]
    INFO - 07:16:40: ... 100%|██████████| 10/10 [00:00<00:00, 789.81 it/sec, obj=4.02e+5]
    INFO - 07:16:40: Optimization result:
    INFO - 07:16:40:    Optimizer info:
    INFO - 07:16:40:       Status: None
    INFO - 07:16:40:       Message: None
    INFO - 07:16:40:       Number of calls to the objective function by the optimizer: 10
    INFO - 07:16:40:    Solution:
    INFO - 07:16:40:       Objective: 100.08573388203513
    INFO - 07:16:40:       Design space:
    INFO - 07:16:40:       +--------------+-------------+-------+-------------+-------+
    INFO - 07:16:40:       | name         | lower_bound | value | upper_bound | type  |
    INFO - 07:16:40:       +--------------+-------------+-------+-------------+-------+
    INFO - 07:16:40:       | thick_panels |      1      |   1   |      20     | float |
    INFO - 07:16:40:       | sweep        |      10     |   10  |      35     | float |
    INFO - 07:16:40:       | forces       |    -1000    | -1000 |     1000    | float |
    INFO - 07:16:40:       +--------------+-------------+-------+-------------+-------+
    INFO - 07:16:40: *** End DOEScenario execution (time: 0:00:00.021873) ***
    INFO - 07:16:40:
    INFO - 07:16:40: *** Start DOEScenario execution ***
    INFO - 07:16:40: DOEScenario
    INFO - 07:16:40:    Disciplines: Mission
    INFO - 07:16:40:    MDO formulation: DisciplinaryOpt
    INFO - 07:16:40: Optimization problem:
    INFO - 07:16:40:    minimize range(drag, lift, mass, reserve_fact)
    INFO - 07:16:40:    with respect to drag, lift, mass, reserve_fact
    INFO - 07:16:40:    over the design space:
    INFO - 07:16:40:    +--------------+-------------+--------+-------------+-------+
    INFO - 07:16:40:    | name         | lower_bound | value  | upper_bound | type  |
    INFO - 07:16:40:    +--------------+-------------+--------+-------------+-------+
    INFO - 07:16:40:    | drag         |     100     |  340   |     1000    | float |
    INFO - 07:16:40:    | lift         |     0.1     |  0.5   |      1      | float |
    INFO - 07:16:40:    | mass         |    100000   | 100000 |    500000   | float |
    INFO - 07:16:40:    | reserve_fact |    -1000    |   0    |     1000    | float |
    INFO - 07:16:40:    +--------------+-------------+--------+-------------+-------+
    INFO - 07:16:40: Solving optimization problem with algorithm DiagonalDOE:
    INFO - 07:16:40: ...   0%|          | 0/10 [00:00<?, ?it]
    INFO - 07:16:40: ... 100%|██████████| 10/10 [00:00<00:00, 745.39 it/sec, obj=1.6e+3+j]
    INFO - 07:16:40: Optimization result:
    INFO - 07:16:40:    Optimizer info:
    INFO - 07:16:40:       Status: None
    INFO - 07:16:40:       Message: None
    INFO - 07:16:40:       Number of calls to the objective function by the optimizer: 10
    INFO - 07:16:40:    Solution:
    INFO - 07:16:40:       Objective: (1600+0j)
    INFO - 07:16:40:       Design space:
    INFO - 07:16:40:       +--------------+-------------+--------+-------------+-------+
    INFO - 07:16:40:       | name         | lower_bound | value  | upper_bound | type  |
    INFO - 07:16:40:       +--------------+-------------+--------+-------------+-------+
    INFO - 07:16:40:       | drag         |     100     |  1000  |     1000    | float |
    INFO - 07:16:40:       | lift         |     0.1     |   1    |      1      | float |
    INFO - 07:16:40:       | mass         |    100000   | 500000 |    500000   | float |
    INFO - 07:16:40:       | reserve_fact |    -1000    |  1000  |     1000    | float |
    INFO - 07:16:40:       +--------------+-------------+--------+-------------+-------+
    INFO - 07:16:40: *** End DOEScenario execution (time: 0:00:00.022896) ***

Define the design problem

Then, we instantiate a ScalabilityStudy from the definition of the design problem, expressed in terms of objective function (to maximize or minimize), design variables (local and global) and constraints (equality and inequality). We can also specify the coupling variables that we could scale. Note that this information is only required by the scaling stage. Indeed, MDO formulations know perfectly how to automatically recognize the coupling variables. Lastly, we can specify some properties of the scalable methodology such as the fill factor describing the level of dependence between inputs and outputs.

study = create_scalability_study(
    objective="range",
    design_variables=["thick_airfoils", "thick_panels", "sweep"],
    eq_constraints=["c_rf"],
    ineq_constraints=["c_lift"],
    maximize_objective=True,
    coupling_variables=["forces", "displ"],
    fill_factor=-1,
)

Out:

INFO - 07:16:40: Initialize the scalability study
INFO - 07:16:40:    Create directories
INFO - 07:16:40:       Working directory: study
INFO - 07:16:40:       Post-processing: study/visualization
INFO - 07:16:40:       Optimization history view: study/visualization/optimization_history
INFO - 07:16:40:       Scalability views: study/visualization/scalability_study
INFO - 07:16:40:       Dependency matrices: study/visualization/dependency_matrix
INFO - 07:16:40:       Results: study/results
INFO - 07:16:40:    Optimization problem
INFO - 07:16:40:       Objective: maximize range
INFO - 07:16:40:       Design variables: ['thick_airfoils', 'thick_panels', 'sweep']
INFO - 07:16:40:       Equality constraints: ['c_rf']
INFO - 07:16:40:       Inequality constraints: ['c_lift']
INFO - 07:16:40:    Study properties
INFO - 07:16:40:       Default fill factor: -1
INFO - 07:16:40:       Active probability: 0.1
INFO - 07:16:40:       Feasibility level: 0.8
INFO - 07:16:40:       Start at equilibrium: True
INFO - 07:16:40:       Early stopping: True

Add the disciplinary datasets

study.add_discipline(datasets["Aerodynamics"])
study.add_discipline(datasets["Structure"])
study.add_discipline(datasets["Mission"])

Out:

INFO - 07:16:40: Add scalable discipline # 1
INFO - 07:16:40:    Name: Aerodynamics
INFO - 07:16:40:    Inputs: displ(1), sweep(1), thick_airfoils(1)
INFO - 07:16:40:    Outputs: drag(1), forces(1), lift(1)
INFO - 07:16:40:    Built from 10
INFO - 07:16:40: Add scalable discipline # 2
INFO - 07:16:40:    Name: Structure
INFO - 07:16:40:    Inputs: forces(1), sweep(1), thick_panels(1)
INFO - 07:16:40:    Outputs: displ(1), mass(1), reserve_fact(1)
INFO - 07:16:40:    Built from 10
INFO - 07:16:40: Add scalable discipline # 3
INFO - 07:16:40:    Name: Mission
INFO - 07:16:40:    Inputs: drag(1), lift(1), mass(1), reserve_fact(1)
INFO - 07:16:40:    Outputs: c_lift(1), c_rf(1), range(1)
INFO - 07:16:40:    Built from 10

Add the optimization strategies

Then, we define the different optimization strategies we want to compare: In this case, the strategies are:

  • MDF formulation with the "NLOPT_SLSQP" optimization algorithm and no more than 100 iterations,

  • IDF formulation with the "NLOPT_SLSQP" optimization algorithm and no more than 100 iterations,

Note that in this case, we compare MDO formulations but we could easily compare optimization algorithms.

study.add_optimization_strategy("NLOPT_SLSQP", 100, "MDF")
study.add_optimization_strategy("NLOPT_SLSQP", 100, "IDF")

Out:

INFO - 07:16:40: Add optimization strategy # 1
INFO - 07:16:40:    Algorithm: NLOPT_SLSQP
INFO - 07:16:40:    Algorithm options: max_iter(100)
INFO - 07:16:40:    Formulation: MDF
INFO - 07:16:40:    Formulation options: None
INFO - 07:16:40: Add optimization strategy # 2
INFO - 07:16:40:    Algorithm: NLOPT_SLSQP
INFO - 07:16:40:    Algorithm options: max_iter(100)
INFO - 07:16:40:    Formulation: IDF
INFO - 07:16:40:    Formulation options: None

Add the scaling strategy

After that, we define the different scaling strategies for which we want to compare the optimization strategies. In this case, the strategies are:

  1. All design parameters have a size equal to 1,

  2. All design parameters have a size equal to 20.

To do that, we pass design_size=[1, 20] to the ScalabilityStudy.add_scaling_strategies() method. design_size expects either:

  • a list of integer where the ith component is the size for the ith scaling strategy,

  • an integer changing the fixed size (if None, use the original size).

Note that we could also compare the optimization strategies while

  • varying the size of the different coupling variables (use coupling_size),

  • varying the size of the different equality constraints (use eq_size),

  • varying the size of the different inequality constraints (use ineq_size),

  • varying the size of any variable (use variables),

where the corresponding arguments works in the same way as design_size, except for variables which expects a list of dictionary whose keys are variables names and values are variables sizes. In this way, we can use this argument to fine-tune a scaling strategy to very specific variables, e.g. local variables.

study.add_scaling_strategies(design_size=[1, 20])

Out:

INFO - 07:16:40: Add scaling strategies
INFO - 07:16:40:    Number of strategies: 2
INFO - 07:16:40:    Strategy # 1
INFO - 07:16:40:       Design variables: 1
INFO - 07:16:40:       Coupling variables: None
INFO - 07:16:40:       Equality constraints: None
INFO - 07:16:40:       Inequality constraints: None
INFO - 07:16:40:       Variables: None
INFO - 07:16:40:    Strategy # 2
INFO - 07:16:40:       Design variables: 20
INFO - 07:16:40:       Coupling variables: None
INFO - 07:16:40:       Equality constraints: None
INFO - 07:16:40:       Inequality constraints: None
INFO - 07:16:40:       Variables: None

Execute the scalable study

Then, we execute the scalability study, i.e. to build and execute a ScalableProblem for each optimization strategy and each scaling strategy, and repeat it 2 times in order to get statistics on the results (because the ScalableDiagonalModel relies on stochastic features.

study.execute(n_replicates=2)

Out:

    INFO - 07:16:40: Execute scalability study 2 times
    INFO - 07:16:40:    Formulation: MDF - Algo: NLOPT_SLSQP - Scaling: 1/2 - Replicate: 1/2
/home/docs/checkouts/readthedocs.org/user_builds/gemseo/envs/4.0.0/lib/python3.9/site-packages/gemseo/problems/scalable/data_driven/model.py:147: ComplexWarning: Casting complex values to real discards the imaginary part
  data[:, indices] = (value - lower_bound) / (upper_bound - lower_bound)
    INFO - 07:16:40: Build a preliminary MDA to start at equilibrium
    INFO - 07:16:40:
    INFO - 07:16:40: *** Start MDOScenario execution ***
    INFO - 07:16:40: MDOScenario
    INFO - 07:16:40:    Disciplines: sdm_Aerodynamics sdm_Structure sdm_Mission
    INFO - 07:16:40:    MDO formulation: MDF
    INFO - 07:16:40: Optimization problem:
    INFO - 07:16:40:    minimize -range(thick_airfoils, thick_panels, sweep)
    INFO - 07:16:40:    with respect to sweep, thick_airfoils, thick_panels
    INFO - 07:16:40:    subject to constraints:
    INFO - 07:16:40:       c_lift(thick_airfoils, thick_panels, sweep) <= [0.89921929]
    INFO - 07:16:40:       c_rf(thick_airfoils, thick_panels, sweep) == 0.4974338463722028
    INFO - 07:16:40:    over the design space:
    INFO - 07:16:40:    +----------------+-------------+-------+-------------+-------+
    INFO - 07:16:40:    | name           | lower_bound | value | upper_bound | type  |
    INFO - 07:16:40:    +----------------+-------------+-------+-------------+-------+
    INFO - 07:16:40:    | thick_airfoils |      0      |  0.5  |      1      | float |
    INFO - 07:16:40:    | thick_panels   |      0      |  0.5  |      1      | float |
    INFO - 07:16:40:    | sweep          |      0      |  0.5  |      1      | float |
    INFO - 07:16:40:    +----------------+-------------+-------+-------------+-------+
    INFO - 07:16:40: Solving optimization problem with algorithm NLOPT_SLSQP:
    INFO - 07:16:40: ...   0%|          | 0/100 [00:00<?, ?it]
 WARNING - 07:16:40: MDAJacobi has reached its maximum number of iterations but the normed residual 0.5 is still above the tolerance 1e-06.
    INFO - 07:16:41: ...   3%|▎         | 3/100 [00:00<00:00, 681.93 it/sec]
 WARNING - 07:16:41: MDAJacobi has reached its maximum number of iterations but the normed residual 0.5 is still above the tolerance 1e-06.
 WARNING - 07:16:41: MDAJacobi has reached its maximum number of iterations but the normed residual 0.5590169943749475 is still above the tolerance 1e-06.
    INFO - 07:16:41: ...   6%|▌         | 6/100 [00:00<00:00, 319.82 it/sec]
   ERROR - 07:16:41: NLopt run failed: NLopt roundoff-limited, RoundoffLimited
    INFO - 07:16:41: ...   7%|▋         | 7/100 [00:00<00:00, 281.09 it/sec]
    INFO - 07:16:41: Optimization result:
    INFO - 07:16:41:    Optimizer info:
    INFO - 07:16:41:       Status: None
    INFO - 07:16:41:       Message:  GEMSEO Stopped the driver
    INFO - 07:16:41:       Number of calls to the objective function by the optimizer: 8
    INFO - 07:16:41:    Solution:
    INFO - 07:16:41:       The solution is feasible.
    INFO - 07:16:41:       Objective: -0.2601666720093504
    INFO - 07:16:41:       Standardized constraints:
    INFO - 07:16:41:          c_lift + offset = [-0.60364682]
    INFO - 07:16:41:          c_rf - 0.4974338463722028 = -7.005562796535969e-12
    INFO - 07:16:41:       Design space:
    INFO - 07:16:41:       +----------------+-------------+--------------------+-------------+-------+
    INFO - 07:16:41:       | name           | lower_bound |       value        | upper_bound | type  |
    INFO - 07:16:41:       +----------------+-------------+--------------------+-------------+-------+
    INFO - 07:16:41:       | thick_airfoils |      0      |         1          |      1      | float |
    INFO - 07:16:41:       | thick_panels   |      0      | 0.3912634521361804 |      1      | float |
    INFO - 07:16:41:       | sweep          |      0      |         1          |      1      | float |
    INFO - 07:16:41:       +----------------+-------------+--------------------+-------------+-------+
    INFO - 07:16:41: *** End MDOScenario execution (time: 0:00:00.366472) ***
    INFO - 07:16:43:    Formulation: MDF - Algo: NLOPT_SLSQP - Scaling: 1/2 - Replicate: 2/2
/home/docs/checkouts/readthedocs.org/user_builds/gemseo/envs/4.0.0/lib/python3.9/site-packages/gemseo/problems/scalable/data_driven/model.py:147: ComplexWarning: Casting complex values to real discards the imaginary part
  data[:, indices] = (value - lower_bound) / (upper_bound - lower_bound)
    INFO - 07:16:44: Build a preliminary MDA to start at equilibrium
    INFO - 07:16:44:
    INFO - 07:16:44: *** Start MDOScenario execution ***
    INFO - 07:16:44: MDOScenario
    INFO - 07:16:44:    Disciplines: sdm_Aerodynamics sdm_Structure sdm_Mission
    INFO - 07:16:44:    MDO formulation: MDF
    INFO - 07:16:44: Optimization problem:
    INFO - 07:16:44:    minimize -range(thick_airfoils, thick_panels, sweep)
    INFO - 07:16:44:    with respect to sweep, thick_airfoils, thick_panels
    INFO - 07:16:44:    subject to constraints:
    INFO - 07:16:44:       c_lift(thick_airfoils, thick_panels, sweep) <= [0.89918761]
    INFO - 07:16:44:       c_rf(thick_airfoils, thick_panels, sweep) == 0.49640175939595016
    INFO - 07:16:44:    over the design space:
    INFO - 07:16:44:    +----------------+-------------+-------+-------------+-------+
    INFO - 07:16:44:    | name           | lower_bound | value | upper_bound | type  |
    INFO - 07:16:44:    +----------------+-------------+-------+-------------+-------+
    INFO - 07:16:44:    | thick_airfoils |      0      |  0.5  |      1      | float |
    INFO - 07:16:44:    | thick_panels   |      0      |  0.5  |      1      | float |
    INFO - 07:16:44:    | sweep          |      0      |  0.5  |      1      | float |
    INFO - 07:16:44:    +----------------+-------------+-------+-------------+-------+
    INFO - 07:16:44: Solving optimization problem with algorithm NLOPT_SLSQP:
    INFO - 07:16:44: ...   0%|          | 0/100 [00:00<?, ?it]
    INFO - 07:16:44: ...   3%|▎         | 3/100 [00:00<00:00, 846.81 it/sec]
    INFO - 07:16:44: ...   6%|▌         | 6/100 [00:00<00:00, 428.35 it/sec]
    INFO - 07:16:44: ...   8%|▊         | 8/100 [00:00<00:00, 322.32 it/sec]
    INFO - 07:16:44: Optimization result:
    INFO - 07:16:44:    Optimizer info:
    INFO - 07:16:44:       Status: None
    INFO - 07:16:44:       Message: Successive iterates of the objective function are closer than ftol_rel or ftol_abs. GEMSEO Stopped the driver
    INFO - 07:16:44:       Number of calls to the objective function by the optimizer: 8
    INFO - 07:16:44:    Solution:
    INFO - 07:16:44:       The solution is feasible.
    INFO - 07:16:44:       Objective: -0.26969709857562074
    INFO - 07:16:44:       Standardized constraints:
    INFO - 07:16:44:          c_lift + offset = [-0.48406661]
    INFO - 07:16:44:          c_rf - 0.49640175939595016 = -5.551115123125783e-17
    INFO - 07:16:44:       Design space:
    INFO - 07:16:44:       +----------------+-------------+-----------------------+-------------+-------+
    INFO - 07:16:44:       | name           | lower_bound |         value         | upper_bound | type  |
    INFO - 07:16:44:       +----------------+-------------+-----------------------+-------------+-------+
    INFO - 07:16:44:       | thick_airfoils |      0      | 1.103675446888937e-16 |      1      | float |
    INFO - 07:16:44:       | thick_panels   |      0      |   0.1305332770797181  |      1      | float |
    INFO - 07:16:44:       | sweep          |      0      | 1.809070467849798e-16 |      1      | float |
    INFO - 07:16:44:       +----------------+-------------+-----------------------+-------------+-------+
    INFO - 07:16:44: *** End MDOScenario execution (time: 0:00:00.320976) ***
    INFO - 07:16:46:    Formulation: MDF - Algo: NLOPT_SLSQP - Scaling: 2/2 - Replicate: 1/2
/home/docs/checkouts/readthedocs.org/user_builds/gemseo/envs/4.0.0/lib/python3.9/site-packages/gemseo/problems/scalable/data_driven/model.py:147: ComplexWarning: Casting complex values to real discards the imaginary part
  data[:, indices] = (value - lower_bound) / (upper_bound - lower_bound)
    INFO - 07:16:47: Build a preliminary MDA to start at equilibrium
    INFO - 07:16:47:
    INFO - 07:16:47: *** Start MDOScenario execution ***
    INFO - 07:16:47: MDOScenario
    INFO - 07:16:47:    Disciplines: sdm_Aerodynamics sdm_Structure sdm_Mission
    INFO - 07:16:47:    MDO formulation: MDF
    INFO - 07:16:47: Optimization problem:
    INFO - 07:16:47:    minimize -range(thick_airfoils, thick_panels, sweep)
    INFO - 07:16:47:    with respect to sweep, thick_airfoils, thick_panels
    INFO - 07:16:47:    subject to constraints:
    INFO - 07:16:47:       c_lift(thick_airfoils, thick_panels, sweep) <= [0.89921929]
    INFO - 07:16:47:       c_rf(thick_airfoils, thick_panels, sweep) == 0.4974338463722027
    INFO - 07:16:47: Solving optimization problem with algorithm NLOPT_SLSQP:
    INFO - 07:16:47: ...   0%|          | 0/100 [00:00<?, ?it]
    INFO - 07:16:48: ...   2%|▏         | 2/100 [00:00<00:00, 959.39 it/sec]
    INFO - 07:16:48: ...   4%|▍         | 4/100 [00:00<00:00, 483.15 it/sec]
    INFO - 07:16:48: ...   6%|▌         | 6/100 [00:00<00:00, 318.61 it/sec]
    INFO - 07:16:48: ...   8%|▊         | 8/100 [00:00<00:00, 239.98 it/sec]
    INFO - 07:16:48: ...  10%|█         | 10/100 [00:00<00:00, 190.56 it/sec]
    INFO - 07:16:48: ...  12%|█▏        | 12/100 [00:00<00:00, 158.72 it/sec]
    INFO - 07:16:48: ...  14%|█▍        | 14/100 [00:00<00:00, 135.47 it/sec]
    INFO - 07:16:48: ...  16%|█▌        | 16/100 [00:00<00:00, 117.34 it/sec]
    INFO - 07:16:48: ...  18%|█▊        | 18/100 [00:00<00:00, 104.21 it/sec]
    INFO - 07:16:49: ...  20%|██        | 20/100 [00:01<00:00, 93.71 it/sec]
    INFO - 07:16:49: ...  22%|██▏       | 22/100 [00:01<00:00, 85.46 it/sec]
    INFO - 07:16:49: ...  24%|██▍       | 24/100 [00:01<00:00, 78.05 it/sec]
    INFO - 07:16:49: ...  26%|██▌       | 26/100 [00:01<00:01, 71.57 it/sec]
    INFO - 07:16:49: ...  28%|██▊       | 28/100 [00:01<00:01, 66.41 it/sec]
    INFO - 07:16:49: ...  30%|███       | 30/100 [00:01<00:01, 61.97 it/sec]
    INFO - 07:16:49: ...  32%|███▏      | 32/100 [00:01<00:01, 57.91 it/sec]
    INFO - 07:16:49: ...  34%|███▍      | 34/100 [00:01<00:01, 54.37 it/sec]
    INFO - 07:16:49: ...  36%|███▌      | 36/100 [00:01<00:01, 51.30 it/sec]
    INFO - 07:16:50: ...  38%|███▊      | 38/100 [00:02<00:01, 48.42 it/sec]
    INFO - 07:16:50: ...  40%|████      | 40/100 [00:02<00:01, 46.01 it/sec]
    INFO - 07:16:50: ...  42%|████▏     | 42/100 [00:02<00:01, 43.66 it/sec]
    INFO - 07:16:50: ...  44%|████▍     | 44/100 [00:02<00:01, 41.61 it/sec]
    INFO - 07:16:50: ...  46%|████▌     | 46/100 [00:02<00:01, 39.68 it/sec]
    INFO - 07:16:50: ...  48%|████▊     | 48/100 [00:02<00:01, 38.01 it/sec]
    INFO - 07:16:50: ...  50%|█████     | 50/100 [00:02<00:01, 36.42 it/sec]
    INFO - 07:16:50: ...  52%|█████▏    | 52/100 [00:02<00:01, 35.04 it/sec]
    INFO - 07:16:50: ...  54%|█████▍    | 54/100 [00:02<00:01, 33.78 it/sec]
    INFO - 07:16:51: ...  56%|█████▌    | 56/100 [00:03<00:01, 32.55 it/sec]
    INFO - 07:16:51: ...  58%|█████▊    | 58/100 [00:03<00:01, 31.39 it/sec]
    INFO - 07:16:51: ...  60%|██████    | 60/100 [00:03<00:01, 30.37 it/sec]
    INFO - 07:16:51: ...  62%|██████▏   | 62/100 [00:03<00:01, 29.38 it/sec]
    INFO - 07:16:51: ...  64%|██████▍   | 64/100 [00:03<00:01, 28.51 it/sec]
    INFO - 07:16:51: ...  66%|██████▌   | 66/100 [00:03<00:01, 27.68 it/sec]
    INFO - 07:16:51: ...  68%|██████▊   | 68/100 [00:03<00:01, 26.83 it/sec]
    INFO - 07:16:51: ...  70%|███████   | 70/100 [00:03<00:01, 26.02 it/sec]
    INFO - 07:16:51: ...  72%|███████▏  | 72/100 [00:03<00:01, 25.32 it/sec]
    INFO - 07:16:52: ...  74%|███████▍  | 74/100 [00:04<00:01, 24.63 it/sec]
    INFO - 07:16:52: ...  76%|███████▌  | 76/100 [00:04<00:01, 23.95 it/sec]
    INFO - 07:16:52: ...  77%|███████▋  | 77/100 [00:04<00:00, 23.63 it/sec]
    INFO - 07:16:52: Optimization result:
    INFO - 07:16:52:    Optimizer info:
    INFO - 07:16:52:       Status: None
    INFO - 07:16:52:       Message: Successive iterates of the objective function are closer than ftol_rel or ftol_abs. GEMSEO Stopped the driver
    INFO - 07:16:52:       Number of calls to the objective function by the optimizer: 77
    INFO - 07:16:52:    Solution:
    INFO - 07:16:52:       The solution is feasible.
    INFO - 07:16:52:       Objective: -0.47216032595090457
    INFO - 07:16:52:       Standardized constraints:
    INFO - 07:16:52:          c_lift + offset = [-0.72037473]
    INFO - 07:16:52:          c_rf - 0.4974338463722027 = 5.551115123125783e-17
    INFO - 07:16:52: *** End MDOScenario execution (time: 0:00:04.239917) ***
    INFO - 07:16:54:    Formulation: MDF - Algo: NLOPT_SLSQP - Scaling: 2/2 - Replicate: 2/2
/home/docs/checkouts/readthedocs.org/user_builds/gemseo/envs/4.0.0/lib/python3.9/site-packages/gemseo/problems/scalable/data_driven/model.py:147: ComplexWarning: Casting complex values to real discards the imaginary part
  data[:, indices] = (value - lower_bound) / (upper_bound - lower_bound)
    INFO - 07:16:56: Build a preliminary MDA to start at equilibrium
    INFO - 07:16:56:
    INFO - 07:16:56: *** Start MDOScenario execution ***
    INFO - 07:16:56: MDOScenario
    INFO - 07:16:56:    Disciplines: sdm_Aerodynamics sdm_Structure sdm_Mission
    INFO - 07:16:56:    MDO formulation: MDF
    INFO - 07:16:56: Optimization problem:
    INFO - 07:16:56:    minimize -range(thick_airfoils, thick_panels, sweep)
    INFO - 07:16:56:    with respect to sweep, thick_airfoils, thick_panels
    INFO - 07:16:56:    subject to constraints:
    INFO - 07:16:56:       c_lift(thick_airfoils, thick_panels, sweep) <= [0.89918761]
    INFO - 07:16:56:       c_rf(thick_airfoils, thick_panels, sweep) == 0.49640175939595016
    INFO - 07:16:56: Solving optimization problem with algorithm NLOPT_SLSQP:
    INFO - 07:16:56: ...   0%|          | 0/100 [00:00<?, ?it]
    INFO - 07:16:56: ...   2%|▏         | 2/100 [00:00<00:00, 991.54 it/sec]
    INFO - 07:16:56: ...   4%|▍         | 4/100 [00:00<00:00, 492.54 it/sec]
    INFO - 07:16:56: ...   6%|▌         | 6/100 [00:00<00:00, 327.60 it/sec]
    INFO - 07:16:56: ...   8%|▊         | 8/100 [00:00<00:00, 243.09 it/sec]
    INFO - 07:16:56: ...  10%|█         | 10/100 [00:00<00:00, 192.77 it/sec]
    INFO - 07:16:56: ...  12%|█▏        | 12/100 [00:00<00:00, 160.99 it/sec]
    INFO - 07:16:56: ...  14%|█▍        | 14/100 [00:00<00:00, 136.62 it/sec]
    INFO - 07:16:57: ...  16%|█▌        | 16/100 [00:00<00:00, 118.72 it/sec]
    INFO - 07:16:57: ...  18%|█▊        | 18/100 [00:00<00:00, 105.32 it/sec]
    INFO - 07:16:57: ...  20%|██        | 20/100 [00:01<00:00, 94.42 it/sec]
    INFO - 07:16:57: ...  22%|██▏       | 22/100 [00:01<00:00, 85.19 it/sec]
    INFO - 07:16:57: ...  24%|██▍       | 24/100 [00:01<00:00, 77.89 it/sec]
    INFO - 07:16:57: ...  26%|██▌       | 26/100 [00:01<00:01, 71.83 it/sec]
    INFO - 07:16:57: ...  28%|██▊       | 28/100 [00:01<00:01, 66.57 it/sec]
    INFO - 07:16:57: ...  30%|███       | 30/100 [00:01<00:01, 62.20 it/sec]
    INFO - 07:16:57: ...  32%|███▏      | 32/100 [00:01<00:01, 58.39 it/sec]
    INFO - 07:16:57: ...  34%|███▍      | 34/100 [00:01<00:01, 54.98 it/sec]
    INFO - 07:16:58: ...  36%|███▌      | 36/100 [00:01<00:01, 51.81 it/sec]
    INFO - 07:16:58: ...  38%|███▊      | 38/100 [00:02<00:01, 49.04 it/sec]
   ERROR - 07:16:58: NLopt run failed: NLopt roundoff-limited, RoundoffLimited
    INFO - 07:16:58: ...  38%|███▊      | 38/100 [00:02<00:01, 48.48 it/sec]
    INFO - 07:16:58: Optimization result:
    INFO - 07:16:58:    Optimizer info:
    INFO - 07:16:58:       Status: None
    INFO - 07:16:58:       Message:  GEMSEO Stopped the driver
    INFO - 07:16:58:       Number of calls to the objective function by the optimizer: 39
    INFO - 07:16:58:    Solution:
    INFO - 07:16:58:       The solution is feasible.
    INFO - 07:16:58:       Objective: -0.5465979721611833
    INFO - 07:16:58:       Standardized constraints:
    INFO - 07:16:58:          c_lift + offset = [-0.55583389]
    INFO - 07:16:58:          c_rf - 0.49640175939595016 = -2.4091839634365897e-14
    INFO - 07:16:58: *** End MDOScenario execution (time: 0:00:02.071204) ***
    INFO - 07:17:01:    Formulation: IDF - Algo: NLOPT_SLSQP - Scaling: 1/2 - Replicate: 1/2
/home/docs/checkouts/readthedocs.org/user_builds/gemseo/envs/4.0.0/lib/python3.9/site-packages/gemseo/problems/scalable/data_driven/model.py:147: ComplexWarning: Casting complex values to real discards the imaginary part
  data[:, indices] = (value - lower_bound) / (upper_bound - lower_bound)
    INFO - 07:17:01: Build a preliminary MDA to start at equilibrium
    INFO - 07:17:01:
    INFO - 07:17:01: *** Start MDOScenario execution ***
    INFO - 07:17:01: MDOScenario
    INFO - 07:17:01:    Disciplines: sdm_Aerodynamics sdm_Structure sdm_Mission
    INFO - 07:17:01:    MDO formulation: IDF
    INFO - 07:17:01: Optimization problem:
    INFO - 07:17:01:    minimize -range(drag, mass, lift, reserve_fact)
    INFO - 07:17:01:    with respect to displ, drag, forces, lift, mass, reserve_fact, sweep, thick_airfoils, thick_panels
    INFO - 07:17:01:    subject to constraints:
    INFO - 07:17:01:       c_lift(drag, mass, lift, reserve_fact) <= [0.89921929]
    INFO - 07:17:01:       drag_forces_lift: drag#forces#lift(thick_airfoils, sweep, displ): drag(thick_airfoils, sweep, displ) - drag == 0.0
    INFO - 07:17:01:                                                       forces(thick_airfoils, sweep, displ) - forces == 0.0
    INFO - 07:17:01:                                                       lift(thick_airfoils, sweep, displ) - lift == 0.0
    INFO - 07:17:01:       displ_mass_reserve_fact: displ#mass#reserve_fact(thick_panels, sweep, forces): displ(thick_panels, sweep, forces) - displ == 0.0
    INFO - 07:17:01:                                                             mass(thick_panels, sweep, forces) - mass == 0.0
    INFO - 07:17:01:                                                             reserve_fact(thick_panels, sweep, forces) - reserve_fact == 0.0
    INFO - 07:17:01:       c_rf(drag, mass, lift, reserve_fact) == 0.4974338463722028
    INFO - 07:17:01:    over the design space:
    INFO - 07:17:01:    +----------------+-------------+-------+-------------+-------+
    INFO - 07:17:01:    | name           | lower_bound | value | upper_bound | type  |
    INFO - 07:17:01:    +----------------+-------------+-------+-------------+-------+
    INFO - 07:17:01:    | thick_airfoils |      0      |  0.5  |      1      | float |
    INFO - 07:17:01:    | thick_panels   |      0      |  0.5  |      1      | float |
    INFO - 07:17:01:    | sweep          |      0      |  0.5  |      1      | float |
    INFO - 07:17:01:    | forces         |      0      |  0.5  |      1      | float |
    INFO - 07:17:01:    | drag           |      0      |  0.5  |      1      | float |
    INFO - 07:17:01:    | mass           |      0      |  0.5  |      1      | float |
    INFO - 07:17:01:    | lift           |      0      |  0.5  |      1      | float |
    INFO - 07:17:01:    | reserve_fact   |      0      |  0.5  |      1      | float |
    INFO - 07:17:01:    | displ          |      0      |  0.5  |      1      | float |
    INFO - 07:17:01:    +----------------+-------------+-------+-------------+-------+
    INFO - 07:17:01: Solving optimization problem with algorithm NLOPT_SLSQP:
    INFO - 07:17:01: ...   0%|          | 0/100 [00:00<?, ?it]
    INFO - 07:17:01: ...   9%|▉         | 9/100 [00:00<00:00, 1503.75 it/sec]
    INFO - 07:17:01: Optimization result:
    INFO - 07:17:01:    Optimizer info:
    INFO - 07:17:01:       Status: None
    INFO - 07:17:01:       Message: Successive iterates of the objective function are closer than ftol_rel or ftol_abs. GEMSEO Stopped the driver
    INFO - 07:17:01:       Number of calls to the objective function by the optimizer: 9
    INFO - 07:17:01:    Solution:
    INFO - 07:17:01:       The solution is feasible.
    INFO - 07:17:01:       Objective: -0.26027988168652716
    INFO - 07:17:01:       Standardized constraints:
    INFO - 07:17:01:          c_lift + offset = [-0.60380946]
    INFO - 07:17:01:          c_rf - 0.4974338463722028 = 1.1102230246251565e-16
    INFO - 07:17:01:          displ_mass_reserve_fact = [-2.22044605e-16  7.49533022e-08  2.22044605e-16]
    INFO - 07:17:01:          drag_forces_lift = [ 7.52224839e-04  0.00000000e+00 -1.66533454e-16]
    INFO - 07:17:01:       Design space:
    INFO - 07:17:01:       +----------------+-------------+--------------------+-------------+-------+
    INFO - 07:17:01:       | name           | lower_bound |       value        | upper_bound | type  |
    INFO - 07:17:01:       +----------------+-------------+--------------------+-------------+-------+
    INFO - 07:17:01:       | thick_airfoils |      0      | 0.9999999999999972 |      1      | float |
    INFO - 07:17:01:       | thick_panels   |      0      | 0.3918787447278465 |      1      | float |
    INFO - 07:17:01:       | sweep          |      0      | 0.9999999999999956 |      1      | float |
    INFO - 07:17:01:       | forces         |      0      | 0.4446778719377952 |      1      | float |
    INFO - 07:17:01:       | drag           |      0      | 0.2880021596911291 |      1      | float |
    INFO - 07:17:01:       | mass           |      0      | 0.5861937168217062 |      1      | float |
    INFO - 07:17:01:       | lift           |      0      | 0.1597339997710927 |      1      | float |
    INFO - 07:17:01:       | reserve_fact   |      0      | 0.6287729345538398 |      1      | float |
    INFO - 07:17:01:       | displ          |      0      | 0.2036563246825828 |      1      | float |
    INFO - 07:17:01:       +----------------+-------------+--------------------+-------------+-------+
    INFO - 07:17:01: *** End MDOScenario execution (time: 0:00:00.081237) ***
    INFO - 07:17:04:    Formulation: IDF - Algo: NLOPT_SLSQP - Scaling: 1/2 - Replicate: 2/2
/home/docs/checkouts/readthedocs.org/user_builds/gemseo/envs/4.0.0/lib/python3.9/site-packages/gemseo/problems/scalable/data_driven/model.py:147: ComplexWarning: Casting complex values to real discards the imaginary part
  data[:, indices] = (value - lower_bound) / (upper_bound - lower_bound)
    INFO - 07:17:04: Build a preliminary MDA to start at equilibrium
    INFO - 07:17:04:
    INFO - 07:17:04: *** Start MDOScenario execution ***
    INFO - 07:17:04: MDOScenario
    INFO - 07:17:04:    Disciplines: sdm_Aerodynamics sdm_Structure sdm_Mission
    INFO - 07:17:04:    MDO formulation: IDF
    INFO - 07:17:04: Optimization problem:
    INFO - 07:17:04:    minimize -range(drag, mass, lift, reserve_fact)
    INFO - 07:17:04:    with respect to displ, drag, forces, lift, mass, reserve_fact, sweep, thick_airfoils, thick_panels
    INFO - 07:17:04:    subject to constraints:
    INFO - 07:17:04:       c_lift(drag, mass, lift, reserve_fact) <= [0.89918761]
    INFO - 07:17:04:       drag_forces_lift: drag#forces#lift(thick_airfoils, sweep, displ): drag(thick_airfoils, sweep, displ) - drag == 0.0
    INFO - 07:17:04:                                                       forces(thick_airfoils, sweep, displ) - forces == 0.0
    INFO - 07:17:04:                                                       lift(thick_airfoils, sweep, displ) - lift == 0.0
    INFO - 07:17:04:       displ_mass_reserve_fact: displ#mass#reserve_fact(thick_panels, sweep, forces): displ(thick_panels, sweep, forces) - displ == 0.0
    INFO - 07:17:04:                                                             mass(thick_panels, sweep, forces) - mass == 0.0
    INFO - 07:17:04:                                                             reserve_fact(thick_panels, sweep, forces) - reserve_fact == 0.0
    INFO - 07:17:04:       c_rf(drag, mass, lift, reserve_fact) == 0.49640175939595016
    INFO - 07:17:04:    over the design space:
    INFO - 07:17:04:    +----------------+-------------+-------+-------------+-------+
    INFO - 07:17:04:    | name           | lower_bound | value | upper_bound | type  |
    INFO - 07:17:04:    +----------------+-------------+-------+-------------+-------+
    INFO - 07:17:04:    | thick_airfoils |      0      |  0.5  |      1      | float |
    INFO - 07:17:04:    | thick_panels   |      0      |  0.5  |      1      | float |
    INFO - 07:17:04:    | sweep          |      0      |  0.5  |      1      | float |
    INFO - 07:17:04:    | forces         |      0      |  0.5  |      1      | float |
    INFO - 07:17:04:    | drag           |      0      |  0.5  |      1      | float |
    INFO - 07:17:04:    | mass           |      0      |  0.5  |      1      | float |
    INFO - 07:17:04:    | lift           |      0      |  0.5  |      1      | float |
    INFO - 07:17:04:    | reserve_fact   |      0      |  0.5  |      1      | float |
    INFO - 07:17:04:    | displ          |      0      |  0.5  |      1      | float |
    INFO - 07:17:04:    +----------------+-------------+-------+-------------+-------+
    INFO - 07:17:04: Solving optimization problem with algorithm NLOPT_SLSQP:
    INFO - 07:17:04: ...   0%|          | 0/100 [00:00<?, ?it]
    INFO - 07:17:04: ...   8%|▊         | 8/100 [00:00<00:00, 1837.88 it/sec]
    INFO - 07:17:04: Optimization result:
    INFO - 07:17:04:    Optimizer info:
    INFO - 07:17:04:       Status: None
    INFO - 07:17:04:       Message: Successive iterates of the objective function are closer than ftol_rel or ftol_abs. GEMSEO Stopped the driver
    INFO - 07:17:04:       Number of calls to the objective function by the optimizer: 8
    INFO - 07:17:04:    Solution:
    INFO - 07:17:04:       The solution is feasible.
    INFO - 07:17:04:       Objective: -0.2696970985756209
    INFO - 07:17:04:       Standardized constraints:
    INFO - 07:17:04:          c_lift + offset = [-0.48406661]
    INFO - 07:17:04:          c_rf - 0.49640175939595016 = 1.1102230246251565e-16
    INFO - 07:17:04:          displ_mass_reserve_fact = [1.11022302e-16 1.66533454e-16 2.22044605e-16]
    INFO - 07:17:04:          drag_forces_lift = [-3.33066907e-16 -3.33066907e-16 -4.44089210e-16]
    INFO - 07:17:04:       Design space:
    INFO - 07:17:04:       +----------------+-------------+--------------------+-------------+-------+
    INFO - 07:17:04:       | name           | lower_bound |       value        | upper_bound | type  |
    INFO - 07:17:04:       +----------------+-------------+--------------------+-------------+-------+
    INFO - 07:17:04:       | thick_airfoils |      0      |         0          |      1      | float |
    INFO - 07:17:04:       | thick_panels   |      0      | 0.1305332770797177 |      1      | float |
    INFO - 07:17:04:       | sweep          |      0      |         0          |      1      | float |
    INFO - 07:17:04:       | forces         |      0      | 0.7828315097092868 |      1      | float |
    INFO - 07:17:04:       | drag           |      0      | 0.7393753041390636 |      1      | float |
    INFO - 07:17:04:       | mass           |      0      | 0.3236885735428513 |      1      | float |
    INFO - 07:17:04:       | lift           |      0      | 0.8922327706542341 |      1      | float |
    INFO - 07:17:04:       | reserve_fact   |      0      | 0.1773984242002989 |      1      | float |
    INFO - 07:17:04:       | displ          |      0      | 0.5916701425799069 |      1      | float |
    INFO - 07:17:04:       +----------------+-------------+--------------------+-------------+-------+
    INFO - 07:17:04: *** End MDOScenario execution (time: 0:00:00.068932) ***
    INFO - 07:17:07:    Formulation: IDF - Algo: NLOPT_SLSQP - Scaling: 2/2 - Replicate: 1/2
/home/docs/checkouts/readthedocs.org/user_builds/gemseo/envs/4.0.0/lib/python3.9/site-packages/gemseo/problems/scalable/data_driven/model.py:147: ComplexWarning: Casting complex values to real discards the imaginary part
  data[:, indices] = (value - lower_bound) / (upper_bound - lower_bound)
    INFO - 07:17:08: Build a preliminary MDA to start at equilibrium
    INFO - 07:17:08:
    INFO - 07:17:08: *** Start MDOScenario execution ***
    INFO - 07:17:08: MDOScenario
    INFO - 07:17:08:    Disciplines: sdm_Aerodynamics sdm_Structure sdm_Mission
    INFO - 07:17:08:    MDO formulation: IDF
    INFO - 07:17:08: Optimization problem:
    INFO - 07:17:08:    minimize -range(drag, mass, lift, reserve_fact)
    INFO - 07:17:08:    with respect to displ, drag, forces, lift, mass, reserve_fact, sweep, thick_airfoils, thick_panels
    INFO - 07:17:08:    subject to constraints:
    INFO - 07:17:08:       c_lift(drag, mass, lift, reserve_fact) <= [0.89921929]
    INFO - 07:17:08:       drag_forces_lift: drag#forces#lift(thick_airfoils, sweep, displ): drag(thick_airfoils, sweep, displ) - drag == 0.0
    INFO - 07:17:08:                                                       forces(thick_airfoils, sweep, displ) - forces == 0.0
    INFO - 07:17:08:                                                       lift(thick_airfoils, sweep, displ) - lift == 0.0
    INFO - 07:17:08:       displ_mass_reserve_fact: displ#mass#reserve_fact(thick_panels, sweep, forces): displ(thick_panels, sweep, forces) - displ == 0.0
    INFO - 07:17:08:                                                             mass(thick_panels, sweep, forces) - mass == 0.0
    INFO - 07:17:08:                                                             reserve_fact(thick_panels, sweep, forces) - reserve_fact == 0.0
    INFO - 07:17:08:       c_rf(drag, mass, lift, reserve_fact) == 0.4974338463722027
    INFO - 07:17:08: Solving optimization problem with algorithm NLOPT_SLSQP:
    INFO - 07:17:08: ...   0%|          | 0/100 [00:00<?, ?it]
    INFO - 07:17:08: ...   8%|▊         | 8/100 [00:00<00:00, 997.35 it/sec]
    INFO - 07:17:08: ...  16%|█▌        | 16/100 [00:00<00:00, 442.18 it/sec]
    INFO - 07:17:08: ...  24%|██▍       | 24/100 [00:00<00:00, 281.63 it/sec]
    INFO - 07:17:09: ...  31%|███       | 31/100 [00:00<00:00, 213.81 it/sec]
    INFO - 07:17:09: ...  38%|███▊      | 38/100 [00:00<00:00, 171.91 it/sec]
    INFO - 07:17:09: ...  45%|████▌     | 45/100 [00:00<00:00, 143.53 it/sec]
    INFO - 07:17:09: ...  52%|█████▏    | 52/100 [00:00<00:00, 123.27 it/sec]
    INFO - 07:17:09: ...  59%|█████▉    | 59/100 [00:00<00:00, 108.03 it/sec]
    INFO - 07:17:09: ...  66%|██████▌   | 66/100 [00:01<00:00, 96.14 it/sec]
    INFO - 07:17:09: ...  73%|███████▎  | 73/100 [00:01<00:00, 86.50 it/sec]
    INFO - 07:17:09: ...  78%|███████▊  | 78/100 [00:01<00:00, 80.85 it/sec, obj=-.472]
    INFO - 07:17:09: Optimization result:
    INFO - 07:17:09:    Optimizer info:
    INFO - 07:17:09:       Status: None
    INFO - 07:17:09:       Message: Successive iterates of the objective function are closer than ftol_rel or ftol_abs. GEMSEO Stopped the driver
    INFO - 07:17:09:       Number of calls to the objective function by the optimizer: 79
    INFO - 07:17:09:    Solution:
    INFO - 07:17:09:       The solution is feasible.
    INFO - 07:17:09:       Objective: -0.4721603297042323
    INFO - 07:17:09:       Standardized constraints:
    INFO - 07:17:09:          c_lift + offset = [-0.72037473]
    INFO - 07:17:09:          c_rf - 0.4974338463722027 = 0.0
    INFO - 07:17:09:          displ_mass_reserve_fact = [-9.35940753e-09  7.14365656e-09 -4.20757007e-09]
    INFO - 07:17:09:          drag_forces_lift = [2.44736620e-09 3.91431724e-09 9.16831663e-10]
    INFO - 07:17:09: *** End MDOScenario execution (time: 0:00:01.247020) ***
    INFO - 07:17:12:    Formulation: IDF - Algo: NLOPT_SLSQP - Scaling: 2/2 - Replicate: 2/2
/home/docs/checkouts/readthedocs.org/user_builds/gemseo/envs/4.0.0/lib/python3.9/site-packages/gemseo/problems/scalable/data_driven/model.py:147: ComplexWarning: Casting complex values to real discards the imaginary part
  data[:, indices] = (value - lower_bound) / (upper_bound - lower_bound)
    INFO - 07:17:13: Build a preliminary MDA to start at equilibrium
    INFO - 07:17:13:
    INFO - 07:17:13: *** Start MDOScenario execution ***
    INFO - 07:17:13: MDOScenario
    INFO - 07:17:13:    Disciplines: sdm_Aerodynamics sdm_Structure sdm_Mission
    INFO - 07:17:13:    MDO formulation: IDF
    INFO - 07:17:13: Optimization problem:
    INFO - 07:17:13:    minimize -range(drag, mass, lift, reserve_fact)
    INFO - 07:17:13:    with respect to displ, drag, forces, lift, mass, reserve_fact, sweep, thick_airfoils, thick_panels
    INFO - 07:17:13:    subject to constraints:
    INFO - 07:17:13:       c_lift(drag, mass, lift, reserve_fact) <= [0.89918761]
    INFO - 07:17:13:       drag_forces_lift: drag#forces#lift(thick_airfoils, sweep, displ): drag(thick_airfoils, sweep, displ) - drag == 0.0
    INFO - 07:17:13:                                                       forces(thick_airfoils, sweep, displ) - forces == 0.0
    INFO - 07:17:13:                                                       lift(thick_airfoils, sweep, displ) - lift == 0.0
    INFO - 07:17:13:       displ_mass_reserve_fact: displ#mass#reserve_fact(thick_panels, sweep, forces): displ(thick_panels, sweep, forces) - displ == 0.0
    INFO - 07:17:13:                                                             mass(thick_panels, sweep, forces) - mass == 0.0
    INFO - 07:17:13:                                                             reserve_fact(thick_panels, sweep, forces) - reserve_fact == 0.0
    INFO - 07:17:13:       c_rf(drag, mass, lift, reserve_fact) == 0.49640175939595016
    INFO - 07:17:13: Solving optimization problem with algorithm NLOPT_SLSQP:
    INFO - 07:17:13: ...   0%|          | 0/100 [00:00<?, ?it]
    INFO - 07:17:13: ...   9%|▉         | 9/100 [00:00<00:00, 871.57 it/sec]
    INFO - 07:17:14: ...  17%|█▋        | 17/100 [00:00<00:00, 412.28 it/sec]
    INFO - 07:17:14: ...  24%|██▍       | 24/100 [00:00<00:00, 278.75 it/sec]
    INFO - 07:17:14: ...  31%|███       | 31/100 [00:00<00:00, 210.39 it/sec]
    INFO - 07:17:14: ...  38%|███▊      | 38/100 [00:00<00:00, 168.86 it/sec]
    INFO - 07:17:14: ...  40%|████      | 40/100 [00:00<00:00, 158.14 it/sec]
    INFO - 07:17:14: Optimization result:
    INFO - 07:17:14:    Optimizer info:
    INFO - 07:17:14:       Status: None
    INFO - 07:17:14:       Message: Successive iterates of the objective function are closer than ftol_rel or ftol_abs. GEMSEO Stopped the driver
    INFO - 07:17:14:       Number of calls to the objective function by the optimizer: 40
    INFO - 07:17:14:    Solution:
    INFO - 07:17:14:       The solution is feasible.
    INFO - 07:17:14:       Objective: -0.5465979721610873
    INFO - 07:17:14:       Standardized constraints:
    INFO - 07:17:14:          c_lift + offset = [-0.55583389]
    INFO - 07:17:14:          c_rf - 0.49640175939595016 = 1.1102230246251565e-16
    INFO - 07:17:14:          displ_mass_reserve_fact = [-2.22044605e-16 -6.93889390e-18 -1.38777878e-17]
    INFO - 07:17:14:          drag_forces_lift = [0.00000000e+00 3.33066907e-16 1.11022302e-16]
    INFO - 07:17:14: *** End MDOScenario execution (time: 0:00:00.642275) ***

[<gemseo.problems.scalable.data_driven.study.result.ScalabilityResult object at 0x7f28f0e85670>, <gemseo.problems.scalable.data_driven.study.result.ScalabilityResult object at 0x7f28d86c9d30>, <gemseo.problems.scalable.data_driven.study.result.ScalabilityResult object at 0x7f28d76d8d60>, <gemseo.problems.scalable.data_driven.study.result.ScalabilityResult object at 0x7f28d782f940>, <gemseo.problems.scalable.data_driven.study.result.ScalabilityResult object at 0x7f2919876370>, <gemseo.problems.scalable.data_driven.study.result.ScalabilityResult object at 0x7f28f0819220>, <gemseo.problems.scalable.data_driven.study.result.ScalabilityResult object at 0x7f28d8201100>, <gemseo.problems.scalable.data_driven.study.result.ScalabilityResult object at 0x7f28d7cb4130>]

Look at the dependency matrices

Here are the dependency matrices obtained with the 1st replicate when design_size=10.

Aerodynamics

../../_images/2_1_sdm_Aerodynamics_dependency-1.png

Structure

../../_images/2_1_sdm_Structure_dependency-1.png

Mission

../../_images/2_1_sdm_Mission_dependency-1.png

Look at optimization histories

Here are the optimization histories obtained with the 1st replicate when design_size=10, where the left side represents the MDF formulation while the right one represents the IDF formulation.

Objective function

../../_images/MDF_2_1_obj_history-1.png ../../_images/IDF_2_1_obj_history-1.png

Design variables

../../_images/MDF_2_1_variables_history-1.png ../../_images/IDF_2_1_variables_history-1.png

Equality constraints

../../_images/MDF_2_1_eq_constraints_history-1.png ../../_images/IDF_2_1_eq_constraints_history-1.png

Inequality constraints

../../_images/MDF_2_1_ineq_constraints_history-1.png ../../_images/IDF_2_1_ineq_constraints_history-1.png

Post-process the results

Lastly, we plot the results. Because of the replicates, the latter are not displayed as one line per optimization strategy w.r.t. scaling strategy, but as one series of boxplots per optimization strategy w.r.t. scaling strategy, where the boxplots represents the variability due to the 10 replicates. In this case, it seems that the MDF formulation is more expensive than the IDF one when the design space dimension increases while they seems to be the same when each design parameter has a size equal to 1.

post = plot_scalability_results("study")
post.labelize_scaling_strategy("Number of design parameters per type.")
post.plot(xmargin=3.0, xticks=[1.0, 20.0], xticks_labels=["1", "20"], widths=1.0)
  • scalable study
  • scalable study
  • scalable study
  • scalable study
  • scalable study

Out:

INFO - 07:17:17: Post-process for scalability study
INFO - 07:17:17:    Working directory: study
INFO - 07:17:17:    Save exec_time plot in study/visualization/scalability_study/exec_time.png
INFO - 07:17:17:    Save n_calls plot in study/visualization/scalability_study/n_calls.png
INFO - 07:17:17:    Save n_calls_linearize plot in study/visualization/scalability_study/n_calls_linearize.png
INFO - 07:17:17:    Save total_calls plot in study/visualization/scalability_study/total_calls.png
INFO - 07:17:17:    Save is_feasible plot in study/visualization/scalability_study/is_feasible.png
INFO - 07:17:17: Execute post-processing
INFO - 07:17:17:    Type: replicate
../../_images/exec_time-1.png

Total running time of the script: ( 0 minutes 38.131 seconds)

Gallery generated by Sphinx-Gallery