Example for exterior penalty applied to the Sobieski test case.

This section describes how to set up and solve the MDO problem relative to the Sobieski test case with GEMSEO applying external penalty.

See also

To start with a simpler MDO problem, and for a detailed description of how to plug a test case into GEMSEO, see Tutorial: How to solve an MDO problem.

Solving with an MDF formulation

In this example, we solve the range optimization using the following MDF formulation:

Imports

All the imports needed for the tutorials are performed here.

from __future__ import annotations

from gemseo import configure_logger
from gemseo import create_discipline
from gemseo import create_scenario
from gemseo import get_available_formulations
from gemseo.disciplines.utils import get_all_inputs
from gemseo.disciplines.utils import get_all_outputs
from gemseo.problems.sobieski.core.design_space import SobieskiDesignSpace

configure_logger()
<RootLogger root (INFO)>

Step 1: Creation of MDODiscipline

To build the scenario, we first instantiate the disciplines. Here, the disciplines themselves have already been developed and interfaced with GEMSEO (see Benchmark problems).

disciplines = create_discipline([
    "SobieskiPropulsion",
    "SobieskiAerodynamics",
    "SobieskiMission",
    "SobieskiStructure",
])
/home/docs/checkouts/readthedocs.org/user_builds/gemseo/envs/5.2.0/lib/python3.9/site-packages/docstring_inheritance/docstring_inheritors/bases/inheritor.py:329: DocstringInheritanceWarning: File /home/docs/checkouts/readthedocs.org/user_builds/gemseo/envs/5.2.0/lib/python3.9/site-packages/gemseo/problems/sobieski/_disciplines_sg.py:53: in SobieskiDisciplineWithSimpleGrammar.__init__: section Args: the docstring for the argument 'dtype' is missing.
  self._warn(
/home/docs/checkouts/readthedocs.org/user_builds/gemseo/envs/5.2.0/lib/python3.9/site-packages/docstring_inheritance/docstring_inheritors/bases/inheritor.py:329: DocstringInheritanceWarning: File /home/docs/checkouts/readthedocs.org/user_builds/gemseo/envs/5.2.0/lib/python3.9/site-packages/gemseo/problems/sobieski/_disciplines_sg.py:89: in SobieskiMissionSG.__init__: section Args: the docstring for the argument 'dtype' is missing.
  self._warn(
/home/docs/checkouts/readthedocs.org/user_builds/gemseo/envs/5.2.0/lib/python3.9/site-packages/docstring_inheritance/docstring_inheritors/bases/inheritor.py:329: DocstringInheritanceWarning: File /home/docs/checkouts/readthedocs.org/user_builds/gemseo/envs/5.2.0/lib/python3.9/site-packages/gemseo/problems/sobieski/_disciplines_sg.py:104: in SobieskiMissionSG._compute_jacobian: section Args: the docstring for the argument 'inputs' is missing.
  self._warn(
/home/docs/checkouts/readthedocs.org/user_builds/gemseo/envs/5.2.0/lib/python3.9/site-packages/docstring_inheritance/docstring_inheritors/bases/inheritor.py:329: DocstringInheritanceWarning: File /home/docs/checkouts/readthedocs.org/user_builds/gemseo/envs/5.2.0/lib/python3.9/site-packages/gemseo/problems/sobieski/_disciplines_sg.py:104: in SobieskiMissionSG._compute_jacobian: section Args: the docstring for the argument 'outputs' is missing.
  self._warn(
/home/docs/checkouts/readthedocs.org/user_builds/gemseo/envs/5.2.0/lib/python3.9/site-packages/docstring_inheritance/docstring_inheritors/bases/inheritor.py:329: DocstringInheritanceWarning: File /home/docs/checkouts/readthedocs.org/user_builds/gemseo/envs/5.2.0/lib/python3.9/site-packages/gemseo/problems/sobieski/_disciplines_sg.py:117: in SobieskiStructureSG.__init__: section Args: the docstring for the argument 'dtype' is missing.
  self._warn(
/home/docs/checkouts/readthedocs.org/user_builds/gemseo/envs/5.2.0/lib/python3.9/site-packages/docstring_inheritance/docstring_inheritors/bases/inheritor.py:329: DocstringInheritanceWarning: File /home/docs/checkouts/readthedocs.org/user_builds/gemseo/envs/5.2.0/lib/python3.9/site-packages/gemseo/problems/sobieski/_disciplines_sg.py:134: in SobieskiStructureSG._compute_jacobian: section Args: the docstring for the argument 'inputs' is missing.
  self._warn(
/home/docs/checkouts/readthedocs.org/user_builds/gemseo/envs/5.2.0/lib/python3.9/site-packages/docstring_inheritance/docstring_inheritors/bases/inheritor.py:329: DocstringInheritanceWarning: File /home/docs/checkouts/readthedocs.org/user_builds/gemseo/envs/5.2.0/lib/python3.9/site-packages/gemseo/problems/sobieski/_disciplines_sg.py:134: in SobieskiStructureSG._compute_jacobian: section Args: the docstring for the argument 'outputs' is missing.
  self._warn(
/home/docs/checkouts/readthedocs.org/user_builds/gemseo/envs/5.2.0/lib/python3.9/site-packages/docstring_inheritance/docstring_inheritors/bases/inheritor.py:329: DocstringInheritanceWarning: File /home/docs/checkouts/readthedocs.org/user_builds/gemseo/envs/5.2.0/lib/python3.9/site-packages/gemseo/problems/sobieski/_disciplines_sg.py:147: in SobieskiAerodynamicsSG.__init__: section Args: the docstring for the argument 'dtype' is missing.
  self._warn(
/home/docs/checkouts/readthedocs.org/user_builds/gemseo/envs/5.2.0/lib/python3.9/site-packages/docstring_inheritance/docstring_inheritors/bases/inheritor.py:329: DocstringInheritanceWarning: File /home/docs/checkouts/readthedocs.org/user_builds/gemseo/envs/5.2.0/lib/python3.9/site-packages/gemseo/problems/sobieski/_disciplines_sg.py:164: in SobieskiAerodynamicsSG._compute_jacobian: section Args: the docstring for the argument 'inputs' is missing.
  self._warn(
/home/docs/checkouts/readthedocs.org/user_builds/gemseo/envs/5.2.0/lib/python3.9/site-packages/docstring_inheritance/docstring_inheritors/bases/inheritor.py:329: DocstringInheritanceWarning: File /home/docs/checkouts/readthedocs.org/user_builds/gemseo/envs/5.2.0/lib/python3.9/site-packages/gemseo/problems/sobieski/_disciplines_sg.py:164: in SobieskiAerodynamicsSG._compute_jacobian: section Args: the docstring for the argument 'outputs' is missing.
  self._warn(
/home/docs/checkouts/readthedocs.org/user_builds/gemseo/envs/5.2.0/lib/python3.9/site-packages/docstring_inheritance/docstring_inheritors/bases/inheritor.py:329: DocstringInheritanceWarning: File /home/docs/checkouts/readthedocs.org/user_builds/gemseo/envs/5.2.0/lib/python3.9/site-packages/gemseo/problems/sobieski/_disciplines_sg.py:179: in SobieskiPropulsionSG.__init__: section Args: the docstring for the argument 'dtype' is missing.
  self._warn(
/home/docs/checkouts/readthedocs.org/user_builds/gemseo/envs/5.2.0/lib/python3.9/site-packages/docstring_inheritance/docstring_inheritors/bases/inheritor.py:329: DocstringInheritanceWarning: File /home/docs/checkouts/readthedocs.org/user_builds/gemseo/envs/5.2.0/lib/python3.9/site-packages/gemseo/problems/sobieski/_disciplines_sg.py:196: in SobieskiPropulsionSG._compute_jacobian: section Args: the docstring for the argument 'inputs' is missing.
  self._warn(
/home/docs/checkouts/readthedocs.org/user_builds/gemseo/envs/5.2.0/lib/python3.9/site-packages/docstring_inheritance/docstring_inheritors/bases/inheritor.py:329: DocstringInheritanceWarning: File /home/docs/checkouts/readthedocs.org/user_builds/gemseo/envs/5.2.0/lib/python3.9/site-packages/gemseo/problems/sobieski/_disciplines_sg.py:196: in SobieskiPropulsionSG._compute_jacobian: section Args: the docstring for the argument 'outputs' is missing.
  self._warn(

Tip

For the disciplines that are not interfaced with GEMSEO, the GEMSEO’s gemseo eases the creation of disciplines without having to import them.

See High-level functions to use GEMSEO.

Step 2: Creation of Scenario

The scenario delegates the creation of the optimization problem to the MDO formulation.

Therefore, it needs the list of disciplines, the names of the formulation, the name of the objective function and the design space.

  • The design_space (shown below for reference) defines the unknowns of the optimization problem, and their bounds. It contains all the design variables needed by the MDF formulation. It can be imported from a text file, or created from scratch with the methods create_design_space() and add_variable(). In this case, we will use SobieskiDesignSpace already defined in GEMSEO.

design_space = SobieskiDesignSpace()
x_0 = design_space.get_current_value(as_dict=True)
name      lower_bound      value      upper_bound  type
x_shared      0.01          0.05          0.09     float
x_shared    30000.0       45000.0       60000.0    float
x_shared      1.4           1.6           1.8      float
x_shared      2.5           5.5           8.5      float
x_shared      40.0          55.0          70.0     float
x_shared     500.0         1000.0        1500.0    float
x_1           0.1           0.25          0.4      float
x_1           0.75          1.0           1.25     float
x_2           0.75          1.0           1.25     float
x_3           0.1           0.5           1.0      float
y_14        24850.0    50606.9741711    77100.0    float
y_14        -7700.0    7306.20262124    45000.0    float
y_32         0.235       0.50279625      0.795     float
y_31         2960.0    6354.32430691    10185.0    float
y_24          0.44       4.15006276      11.13     float
y_34          0.44       1.10754577       1.98     float
y_23         3365.0    12194.2671934    26400.0    float
y_21        24850.0    50606.9741711    77250.0    float
y_12        24850.0      50606.9742     77250.0    float
y_12          0.45          0.95          1.5      float
  • The available MDO formulations are located in the gemseo.formulations package, see Extend GEMSEO features for extending GEMSEO with other formulations.

  • The formulation classname (here, "MDF") shall be passed to the scenario to select them.

  • The list of available formulations can be obtained by using get_available_formulations().

get_available_formulations()
['BiLevel', 'DisciplinaryOpt', 'IDF', 'MDF']
  • \(y\_4\) corresponds to the objective_name. This name must be one of the disciplines outputs, here the SobieskiMission discipline. The list of all outputs of the disciplines can be obtained by using get_all_outputs():

get_all_outputs(disciplines)
get_all_inputs(disciplines)
['c_0', 'c_1', 'c_2', 'c_3', 'c_4', 'x_1', 'x_2', 'x_3', 'x_shared', 'y_12', 'y_14', 'y_21', 'y_23', 'y_24', 'y_31', 'y_32', 'y_34']

From these MDODiscipline, design space, MDO formulation name and objective function name, we build the scenario:

scenario = create_scenario(
    disciplines,
    formulation="MDF",
    maximize_objective=True,
    objective_name="y_4",
    design_space=design_space,
)

The range function (\(y\_4\)) should be maximized. However, optimizers minimize functions by default. Which is why, when creating the scenario, the argument maximize_objective shall be set to True.

Differentiation method

We may choose the way derivatives are computed:

Function derivatives. As analytical disciplinary derivatives are available for the Sobieski test-case, they can be used instead of computing the derivatives with finite-differences or with the complex-step method. The easiest way to set a method is to let the optimizer determine it:

scenario.set_differentiation_method()

The default behavior of the optimizer triggers finite differences. It corresponds to:

scenario.set_differentiation_method("finite_differences",1e-7)

It it also possible to differentiate functions by means of the complex step method:

scenario.set_differentiation_method("complex_step",1e-30j)

Constraints

Similarly to the objective function, the constraints names are a subset of the disciplines’ outputs. They can be obtained by using get_all_outputs().

The formulation has a powerful feature to automatically dispatch the constraints (\(g\_1, g\_2, g\_3\)) and plug them to the optimizers depending on the formulation. To do that, we use the method add_constraint():

for constraint in ["g_1", "g_2", "g_3"]:
    scenario.add_constraint(constraint, "ineq")

Step 3: Apply the exterior penalty and execute the scenario

scenario.formulation.opt_problem.apply_exterior_penalty(
    objective_scale=10.0, scale_inequality=10.0
)

In this way the L-BFGS-B algorithm can be used to solve the optimization problem. Note that this algorithm is not suited for constrained optimization problems.

algo_args = {"max_iter": 10, "algo": "L-BFGS-B"}
scenario.execute(algo_args)
    INFO - 10:52:08:
    INFO - 10:52:08: *** Start MDOScenario execution ***
    INFO - 10:52:08: MDOScenario
    INFO - 10:52:08:    Disciplines: SobieskiAerodynamics SobieskiMission SobieskiPropulsion SobieskiStructure
    INFO - 10:52:08:    MDO formulation: MDF
    INFO - 10:52:08: Optimization problem:
    INFO - 10:52:08:    minimize [[[[-y_4/10.0]+pos_sum_g_1]+pos_sum_g_2]+pos_sum_g_3](x_1, x_2, x_3, x_shared) = -y_4(x_shared, x_1, x_2, x_3)/10.0+sum(heaviside()***2)+sum(heaviside()***2)+sum(heaviside()***2)
    INFO - 10:52:08:    with respect to x_1, x_2, x_3, x_shared
    INFO - 10:52:08:    over the design space:
    INFO - 10:52:08:       +-------------+-------------+-------+-------------+-------+
    INFO - 10:52:08:       | Name        | Lower bound | Value | Upper bound | Type  |
    INFO - 10:52:08:       +-------------+-------------+-------+-------------+-------+
    INFO - 10:52:08:       | x_shared[0] |     0.01    |  0.05 |     0.09    | float |
    INFO - 10:52:08:       | x_shared[1] |    30000    | 45000 |    60000    | float |
    INFO - 10:52:08:       | x_shared[2] |     1.4     |  1.6  |     1.8     | float |
    INFO - 10:52:08:       | x_shared[3] |     2.5     |  5.5  |     8.5     | float |
    INFO - 10:52:08:       | x_shared[4] |      40     |   55  |      70     | float |
    INFO - 10:52:08:       | x_shared[5] |     500     |  1000 |     1500    | float |
    INFO - 10:52:08:       | x_1[0]      |     0.1     |  0.25 |     0.4     | float |
    INFO - 10:52:08:       | x_1[1]      |     0.75    |   1   |     1.25    | float |
    INFO - 10:52:08:       | x_2         |     0.75    |   1   |     1.25    | float |
    INFO - 10:52:08:       | x_3         |     0.1     |  0.5  |      1      | float |
    INFO - 10:52:08:       +-------------+-------------+-------+-------------+-------+
    INFO - 10:52:08: Solving optimization problem with algorithm L-BFGS-B:
    INFO - 10:52:08:     10%|█         | 1/10 [00:00<00:00,  9.23 it/sec, obj=-53.3]
    INFO - 10:52:08:     20%|██        | 2/10 [00:00<00:01,  6.53 it/sec, obj=-401]
    INFO - 10:52:08:     30%|███       | 3/10 [00:00<00:01,  6.11 it/sec, obj=103]
    INFO - 10:52:08:     40%|████      | 4/10 [00:00<00:01,  5.76 it/sec, obj=-488]
    INFO - 10:52:09:     50%|█████     | 5/10 [00:00<00:00,  5.55 it/sec, obj=-489]
    INFO - 10:52:09:     60%|██████    | 6/10 [00:01<00:00,  5.42 it/sec, obj=-489]
    INFO - 10:52:09:     70%|███████   | 7/10 [00:01<00:00,  5.36 it/sec, obj=-489]
    INFO - 10:52:09:     80%|████████  | 8/10 [00:01<00:00,  5.28 it/sec, obj=-489]
    INFO - 10:52:09:     90%|█████████ | 9/10 [00:01<00:00,  5.23 it/sec, obj=-489]
    INFO - 10:52:10:    100%|██████████| 10/10 [00:01<00:00,  5.20 it/sec, obj=-489]
    INFO - 10:52:10: Optimization result:
    INFO - 10:52:10:    Optimizer info:
    INFO - 10:52:10:       Status: None
    INFO - 10:52:10:       Message: Maximum number of iterations reached. GEMSEO Stopped the driver
    INFO - 10:52:10:       Number of calls to the objective function by the optimizer: 12
    INFO - 10:52:10:    Solution:
    INFO - 10:52:10:       Objective: -489.2416290389368
    INFO - 10:52:10:       Design space:
    INFO - 10:52:10:          +-------------+-------------+--------------------+-------------+-------+
    INFO - 10:52:10:          | Name        | Lower bound |       Value        | Upper bound | Type  |
    INFO - 10:52:10:          +-------------+-------------+--------------------+-------------+-------+
    INFO - 10:52:10:          | x_shared[0] |     0.01    |        0.09        |     0.09    | float |
    INFO - 10:52:10:          | x_shared[1] |    30000    |       60000        |    60000    | float |
    INFO - 10:52:10:          | x_shared[2] |     1.4     |        1.4         |     1.8     | float |
    INFO - 10:52:10:          | x_shared[3] |     2.5     |        2.5         |     8.5     | float |
    INFO - 10:52:10:          | x_shared[4] |      40     |         70         |      70     | float |
    INFO - 10:52:10:          | x_shared[5] |     500     |        1500        |     1500    | float |
    INFO - 10:52:10:          | x_1[0]      |     0.1     | 0.248653494277963  |     0.4     | float |
    INFO - 10:52:10:          | x_1[1]      |     0.75    |        0.75        |     1.25    | float |
    INFO - 10:52:10:          | x_2         |     0.75    |        0.75        |     1.25    | float |
    INFO - 10:52:10:          | x_3         |     0.1     | 0.2584061783719241 |      1      | float |
    INFO - 10:52:10:          +-------------+-------------+--------------------+-------------+-------+
    INFO - 10:52:10: *** End MDOScenario execution (time: 0:00:02.064560) ***

{'max_iter': 10, 'algo': 'L-BFGS-B'}

Post-processing options

To visualize the optimization history of the constraint violation one can use the BasicHistory:

scenario.post_process(
    "BasicHistory", variable_names=["g_1", "g_2", "g_3"], save=False, show=True
)
History plot
<gemseo.post.basic_history.BasicHistory object at 0x7efd5786afd0>

This solution is almost feasible. The solution can better approximate the original problem solution increasing the value

of objective_scale and scale_inequality parameters.

Step 4: Rerun the scenario with increased penalty and objective scaling.

design_space.set_current_value(x_0)
scenario_2 = create_scenario(
    disciplines,
    formulation="MDF",
    maximize_objective=True,
    objective_name="y_4",
    design_space=design_space,
)
for constraint in ["g_1", "g_2", "g_3"]:
    scenario_2.add_constraint(constraint, "ineq")
scenario_2.set_differentiation_method()
scenario_2.formulation.opt_problem.apply_exterior_penalty(
    objective_scale=1000.0, scale_inequality=1000.0
)
algo_args_2 = {"max_iter": 1000, "algo": "L-BFGS-B"}
scenario_2.execute(algo_args_2)
scenario_2.post_process("BasicHistory", variable_names=["-y_4"], save=False, show=True)
scenario_2.post_process(
    "BasicHistory", variable_names=["g_1", "g_2", "g_3"], save=False, show=True
)
  • History plot
  • History plot
    INFO - 10:52:10:
    INFO - 10:52:10: *** Start MDOScenario execution ***
    INFO - 10:52:10: MDOScenario
    INFO - 10:52:10:    Disciplines: SobieskiAerodynamics SobieskiMission SobieskiPropulsion SobieskiStructure
    INFO - 10:52:10:    MDO formulation: MDF
    INFO - 10:52:10: Optimization problem:
    INFO - 10:52:10:    minimize [[[[-y_4/1000.0]+pos_sum_g_1]+pos_sum_g_2]+pos_sum_g_3](x_1, x_2, x_3, x_shared) = -y_4(x_shared, x_1, x_2, x_3)/1000.0+sum(heaviside()***2)+sum(heaviside()***2)+sum(heaviside()***2)
    INFO - 10:52:10:    with respect to x_1, x_2, x_3, x_shared
    INFO - 10:52:10:    over the design space:
    INFO - 10:52:10:       +-------------+-------------+-------+-------------+-------+
    INFO - 10:52:10:       | Name        | Lower bound | Value | Upper bound | Type  |
    INFO - 10:52:10:       +-------------+-------------+-------+-------------+-------+
    INFO - 10:52:10:       | x_shared[0] |     0.01    |  0.05 |     0.09    | float |
    INFO - 10:52:10:       | x_shared[1] |    30000    | 45000 |    60000    | float |
    INFO - 10:52:10:       | x_shared[2] |     1.4     |  1.6  |     1.8     | float |
    INFO - 10:52:10:       | x_shared[3] |     2.5     |  5.5  |     8.5     | float |
    INFO - 10:52:10:       | x_shared[4] |      40     |   55  |      70     | float |
    INFO - 10:52:10:       | x_shared[5] |     500     |  1000 |     1500    | float |
    INFO - 10:52:10:       | x_1[0]      |     0.1     |  0.25 |     0.4     | float |
    INFO - 10:52:10:       | x_1[1]      |     0.75    |   1   |     1.25    | float |
    INFO - 10:52:10:       | x_2         |     0.75    |   1   |     1.25    | float |
    INFO - 10:52:10:       | x_3         |     0.1     |  0.5  |      1      | float |
    INFO - 10:52:10:       +-------------+-------------+-------+-------------+-------+
    INFO - 10:52:10: Solving optimization problem with algorithm L-BFGS-B:
    INFO - 10:52:11:      1%|          | 6/1000 [00:01<02:53,  5.73 it/sec, obj=-.428]
    INFO - 10:52:11:      1%|          | 7/1000 [00:01<02:53,  5.74 it/sec, obj=-.504]
    INFO - 10:52:12:      1%|          | 8/1000 [00:01<02:51,  5.77 it/sec, obj=-.413]
    INFO - 10:52:12:      1%|          | 9/1000 [00:01<02:50,  5.80 it/sec, obj=-.521]
    INFO - 10:52:12:      1%|          | 10/1000 [00:01<02:49,  5.83 it/sec, obj=-.537]
    INFO - 10:52:12:      1%|          | 11/1000 [00:01<02:48,  5.86 it/sec, obj=-.54]
    INFO - 10:52:12:      1%|          | 12/1000 [00:02<02:48,  5.86 it/sec, obj=-.541]
    INFO - 10:52:12:      1%|▏         | 13/1000 [00:02<02:48,  5.85 it/sec, obj=-.521]
    INFO - 10:52:13:      1%|▏         | 14/1000 [00:02<02:48,  5.84 it/sec, obj=-.541]
    INFO - 10:52:13:      2%|▏         | 15/1000 [00:02<02:48,  5.83 it/sec, obj=4.92]
    INFO - 10:52:13:      2%|▏         | 16/1000 [00:02<02:48,  5.84 it/sec, obj=-.542]
    INFO - 10:52:13:      2%|▏         | 17/1000 [00:02<02:47,  5.86 it/sec, obj=-.542]
    INFO - 10:52:13:      2%|▏         | 18/1000 [00:03<02:47,  5.87 it/sec, obj=0.751]
    INFO - 10:52:13:      2%|▏         | 19/1000 [00:03<02:46,  5.89 it/sec, obj=-.542]
    INFO - 10:52:14:      2%|▏         | 20/1000 [00:03<02:46,  5.90 it/sec, obj=-.589]
    INFO - 10:52:14:      2%|▏         | 21/1000 [00:03<02:46,  5.89 it/sec, obj=28.5]
    INFO - 10:52:14:      2%|▏         | 22/1000 [00:03<02:46,  5.88 it/sec, obj=-.601]
    INFO - 10:52:14:      2%|▏         | 23/1000 [00:03<02:46,  5.87 it/sec, obj=-.609]
    INFO - 10:52:14:      2%|▏         | 24/1000 [00:04<02:46,  5.87 it/sec, obj=2.4]
    INFO - 10:52:14:      2%|▎         | 25/1000 [00:04<02:46,  5.86 it/sec, obj=-.625]
    INFO - 10:52:15:      3%|▎         | 26/1000 [00:04<02:46,  5.85 it/sec, obj=-.639]
    INFO - 10:52:15:      3%|▎         | 27/1000 [00:04<02:46,  5.85 it/sec, obj=-.311]
    INFO - 10:52:15:      3%|▎         | 28/1000 [00:04<02:46,  5.85 it/sec, obj=-.645]
    INFO - 10:52:15:      3%|▎         | 29/1000 [00:04<02:45,  5.85 it/sec, obj=-.65]
    INFO - 10:52:15:      3%|▎         | 30/1000 [00:05<02:45,  5.86 it/sec, obj=-.611]
    INFO - 10:52:15:      3%|▎         | 31/1000 [00:05<02:45,  5.85 it/sec, obj=2.98]
    INFO - 10:52:16:      3%|▎         | 32/1000 [00:05<02:45,  5.86 it/sec, obj=-.651]
    INFO - 10:52:16:      3%|▎         | 33/1000 [00:05<02:45,  5.85 it/sec, obj=0.77]
    INFO - 10:52:16:      3%|▎         | 34/1000 [00:05<02:45,  5.85 it/sec, obj=-.652]
    INFO - 10:52:16:      4%|▎         | 35/1000 [00:05<02:45,  5.85 it/sec, obj=-.103]
    INFO - 10:52:16:      4%|▎         | 36/1000 [00:06<02:45,  5.84 it/sec, obj=-.654]
    INFO - 10:52:16:      4%|▎         | 37/1000 [00:06<02:44,  5.84 it/sec, obj=-.444]
    INFO - 10:52:17:      4%|▍         | 38/1000 [00:06<02:45,  5.83 it/sec, obj=-.655]
    INFO - 10:52:17:      4%|▍         | 39/1000 [00:06<02:44,  5.82 it/sec, obj=-.574]
    INFO - 10:52:17:      4%|▍         | 40/1000 [00:06<02:44,  5.83 it/sec, obj=-.656]
    INFO - 10:52:17:      4%|▍         | 41/1000 [00:07<02:44,  5.82 it/sec, obj=-.624]
    INFO - 10:52:17:      4%|▍         | 42/1000 [00:07<02:44,  5.82 it/sec, obj=-.657]
    INFO - 10:52:18:      4%|▍         | 43/1000 [00:07<02:44,  5.82 it/sec, obj=-.658]
    INFO - 10:52:18:      4%|▍         | 44/1000 [00:07<02:44,  5.82 it/sec, obj=-.669]
    INFO - 10:52:18:      4%|▍         | 45/1000 [00:07<02:44,  5.82 it/sec, obj=-.68]
    INFO - 10:52:18:      5%|▍         | 46/1000 [00:07<02:44,  5.82 it/sec, obj=-.686]
    INFO - 10:52:18:      5%|▍         | 47/1000 [00:08<02:43,  5.82 it/sec, obj=-.694]
    INFO - 10:52:18:      5%|▍         | 48/1000 [00:08<02:43,  5.81 it/sec, obj=-.774]
    INFO - 10:52:19:      5%|▍         | 49/1000 [00:08<02:44,  5.79 it/sec, obj=-1.19]
    INFO - 10:52:19:      5%|▌         | 50/1000 [00:08<02:44,  5.76 it/sec, obj=-1.69]
    INFO - 10:52:19:      5%|▌         | 51/1000 [00:08<02:45,  5.74 it/sec, obj=-1.7]
    INFO - 10:52:19:      5%|▌         | 52/1000 [00:09<02:46,  5.71 it/sec, obj=-1.71]
    INFO - 10:52:19:      5%|▌         | 53/1000 [00:09<02:46,  5.69 it/sec, obj=-1.75]
    INFO - 10:52:20:      5%|▌         | 54/1000 [00:09<02:46,  5.67 it/sec, obj=-1.93]
    INFO - 10:52:20:      6%|▌         | 55/1000 [00:09<02:46,  5.66 it/sec, obj=-2.17]
    INFO - 10:52:20:      6%|▌         | 56/1000 [00:09<02:47,  5.65 it/sec, obj=-2.19]
    INFO - 10:52:20:      6%|▌         | 57/1000 [00:10<02:47,  5.64 it/sec, obj=-2.28]
    INFO - 10:52:20:      6%|▌         | 58/1000 [00:10<02:47,  5.63 it/sec, obj=-2.29]
    INFO - 10:52:21:      6%|▌         | 59/1000 [00:10<02:47,  5.62 it/sec, obj=-2.3]
    INFO - 10:52:21:      6%|▌         | 60/1000 [00:10<02:47,  5.61 it/sec, obj=-2.35]
    INFO - 10:52:21:      6%|▌         | 61/1000 [00:10<02:47,  5.60 it/sec, obj=-2.1]
    INFO - 10:52:21:      6%|▌         | 62/1000 [00:11<02:47,  5.59 it/sec, obj=-2.4]
    INFO - 10:52:21:      6%|▋         | 63/1000 [00:11<02:47,  5.58 it/sec, obj=25.5]
    INFO - 10:52:22:      6%|▋         | 64/1000 [00:11<02:47,  5.58 it/sec, obj=-2.41]
    INFO - 10:52:22:      6%|▋         | 65/1000 [00:11<02:47,  5.57 it/sec, obj=3.96]
    INFO - 10:52:22:      7%|▋         | 66/1000 [00:11<02:47,  5.56 it/sec, obj=-2.42]
    INFO - 10:52:22:      7%|▋         | 67/1000 [00:12<02:47,  5.56 it/sec, obj=0.179]
    INFO - 10:52:22:      7%|▋         | 68/1000 [00:12<02:48,  5.55 it/sec, obj=-2.43]
    INFO - 10:52:23:      7%|▋         | 69/1000 [00:12<02:48,  5.54 it/sec, obj=-1.35]
    INFO - 10:52:23:      7%|▋         | 70/1000 [00:12<02:48,  5.53 it/sec, obj=-2.43]
    INFO - 10:52:23:      7%|▋         | 71/1000 [00:12<02:48,  5.53 it/sec, obj=-2.51]
    INFO - 10:52:23:      7%|▋         | 72/1000 [00:13<02:48,  5.52 it/sec, obj=-2.9]
    INFO - 10:52:23:      7%|▋         | 73/1000 [00:13<02:48,  5.52 it/sec, obj=-3.17]
    INFO - 10:52:24:      7%|▋         | 74/1000 [00:13<02:47,  5.51 it/sec, obj=-3.17]
    INFO - 10:52:24:      8%|▊         | 75/1000 [00:13<02:48,  5.51 it/sec, obj=-3.2]
    INFO - 10:52:24:      8%|▊         | 76/1000 [00:13<02:48,  5.50 it/sec, obj=-2.72]
    INFO - 10:52:24:      8%|▊         | 77/1000 [00:14<02:48,  5.49 it/sec, obj=-3.2]
    INFO - 10:52:24:      8%|▊         | 78/1000 [00:14<02:48,  5.48 it/sec, obj=-3.23]
    INFO - 10:52:25:      8%|▊         | 79/1000 [00:14<02:48,  5.48 it/sec, obj=-3.35]
    INFO - 10:52:25:      8%|▊         | 80/1000 [00:14<02:48,  5.47 it/sec, obj=-3.38]
    INFO - 10:52:25:      8%|▊         | 81/1000 [00:14<02:48,  5.46 it/sec, obj=-3.54]
    INFO - 10:52:25:      8%|▊         | 82/1000 [00:15<02:48,  5.46 it/sec, obj=-3.58]
    INFO - 10:52:25:      8%|▊         | 83/1000 [00:15<02:48,  5.45 it/sec, obj=-3.63]
    INFO - 10:52:26:      8%|▊         | 84/1000 [00:15<02:48,  5.45 it/sec, obj=-3.81]
    INFO - 10:52:26:      8%|▊         | 85/1000 [00:15<02:48,  5.44 it/sec, obj=-3.83]
    INFO - 10:52:26:      9%|▊         | 86/1000 [00:15<02:48,  5.43 it/sec, obj=-3.87]
    INFO - 10:52:26:      9%|▊         | 87/1000 [00:16<02:48,  5.42 it/sec, obj=-3.87]
    INFO - 10:52:26:      9%|▉         | 88/1000 [00:16<02:48,  5.42 it/sec, obj=-3.88]
    INFO - 10:52:27:      9%|▉         | 89/1000 [00:16<02:48,  5.41 it/sec, obj=-3.88]
    INFO - 10:52:27:      9%|▉         | 90/1000 [00:16<02:48,  5.41 it/sec, obj=-3.89]
    INFO - 10:52:27:      9%|▉         | 91/1000 [00:16<02:48,  5.40 it/sec, obj=-3.92]
    INFO - 10:52:27:      9%|▉         | 92/1000 [00:17<02:48,  5.40 it/sec, obj=-.827]
    INFO - 10:52:27:      9%|▉         | 93/1000 [00:17<02:48,  5.39 it/sec, obj=-3.93]
    INFO - 10:52:28:      9%|▉         | 94/1000 [00:17<02:48,  5.39 it/sec, obj=-3.24]
    INFO - 10:52:28:     10%|▉         | 95/1000 [00:17<02:48,  5.38 it/sec, obj=-3.93]
    INFO - 10:52:28:     10%|▉         | 96/1000 [00:17<02:47,  5.38 it/sec, obj=-3.65]
    INFO - 10:52:28:     10%|▉         | 97/1000 [00:18<02:48,  5.37 it/sec, obj=-3.93]
    INFO - 10:52:28:     10%|▉         | 98/1000 [00:18<02:48,  5.37 it/sec, obj=-3.82]
    INFO - 10:52:29:     10%|▉         | 99/1000 [00:18<02:48,  5.36 it/sec, obj=-3.93]
    INFO - 10:52:29:     10%|█         | 100/1000 [00:18<02:48,  5.36 it/sec, obj=-3.89]
    INFO - 10:52:29:     10%|█         | 101/1000 [00:18<02:48,  5.35 it/sec, obj=-3.93]
    INFO - 10:52:29:     10%|█         | 102/1000 [00:19<02:47,  5.35 it/sec, obj=-3.91]
    INFO - 10:52:29:     10%|█         | 103/1000 [00:19<02:48,  5.34 it/sec, obj=-3.93]
    INFO - 10:52:30:     10%|█         | 104/1000 [00:19<02:48,  5.33 it/sec, obj=-3.82]
    INFO - 10:52:30:     10%|█         | 105/1000 [00:19<02:48,  5.32 it/sec, obj=-3.93]
    INFO - 10:52:30:     11%|█         | 106/1000 [00:19<02:47,  5.32 it/sec, obj=-3.97]
    INFO - 10:52:30:     11%|█         | 107/1000 [00:20<02:47,  5.32 it/sec, obj=-3.98]
    INFO - 10:52:30:     11%|█         | 108/1000 [00:20<02:47,  5.32 it/sec, obj=-3.98]
    INFO - 10:52:31:     11%|█         | 109/1000 [00:20<02:47,  5.31 it/sec, obj=-3.98]
    INFO - 10:52:31:     11%|█         | 110/1000 [00:20<02:47,  5.31 it/sec, obj=-3.97]
    INFO - 10:52:31:     11%|█         | 111/1000 [00:20<02:47,  5.31 it/sec, obj=-3.98]
    INFO - 10:52:31:     11%|█         | 112/1000 [00:21<02:47,  5.31 it/sec, obj=-3.79]
    INFO - 10:52:31:     11%|█▏        | 113/1000 [00:21<02:47,  5.30 it/sec, obj=-3.98]
    INFO - 10:52:32:     11%|█▏        | 114/1000 [00:21<02:47,  5.30 it/sec, obj=-3.9]
    INFO - 10:52:32:     12%|█▏        | 115/1000 [00:21<02:47,  5.30 it/sec, obj=-3.98]
    INFO - 10:52:32:     12%|█▏        | 116/1000 [00:21<02:46,  5.30 it/sec, obj=-3.95]
    INFO - 10:52:32:     12%|█▏        | 117/1000 [00:22<02:46,  5.29 it/sec, obj=-3.98]
    INFO - 10:52:32:     12%|█▏        | 118/1000 [00:22<02:46,  5.29 it/sec, obj=-3.98]
    INFO - 10:52:33:     12%|█▏        | 119/1000 [00:22<02:46,  5.29 it/sec, obj=-3.98]
    INFO - 10:52:33:     12%|█▏        | 120/1000 [00:22<02:46,  5.29 it/sec, obj=-3.98]
    INFO - 10:52:33:     12%|█▏        | 121/1000 [00:22<02:46,  5.28 it/sec, obj=-3.98]
    INFO - 10:52:33:     12%|█▏        | 122/1000 [00:23<02:46,  5.28 it/sec, obj=-3.98]
    INFO - 10:52:33:     12%|█▏        | 123/1000 [00:23<02:46,  5.28 it/sec, obj=-3.98]
    INFO - 10:52:34:     12%|█▏        | 124/1000 [00:23<02:45,  5.28 it/sec, obj=-3.98]
    INFO - 10:52:34:     12%|█▎        | 125/1000 [00:23<02:45,  5.28 it/sec, obj=-3.98]
    INFO - 10:52:34:     13%|█▎        | 126/1000 [00:23<02:45,  5.27 it/sec, obj=-3.98]
    INFO - 10:52:34:     13%|█▎        | 127/1000 [00:24<02:45,  5.27 it/sec, obj=-3.98]
    INFO - 10:52:34:     13%|█▎        | 128/1000 [00:24<02:45,  5.27 it/sec, obj=-3.98]
    INFO - 10:52:35:     13%|█▎        | 129/1000 [00:24<02:45,  5.27 it/sec, obj=-3.98]
    INFO - 10:52:35:     13%|█▎        | 130/1000 [00:24<02:45,  5.27 it/sec, obj=-3.98]
    INFO - 10:52:35:     13%|█▎        | 131/1000 [00:24<02:45,  5.26 it/sec, obj=-3.98]
    INFO - 10:52:35:     13%|█▎        | 132/1000 [00:25<02:44,  5.26 it/sec, obj=-3.98]
    INFO - 10:52:35:     13%|█▎        | 133/1000 [00:25<02:44,  5.26 it/sec, obj=-3.98]
    INFO - 10:52:36:     13%|█▎        | 134/1000 [00:25<02:44,  5.26 it/sec, obj=-3.98]
    INFO - 10:52:36: Optimization result:
    INFO - 10:52:36:    Optimizer info:
    INFO - 10:52:36:       Status: 0
    INFO - 10:52:36:       Message: CONVERGENCE: NORM_OF_PROJECTED_GRADIENT_<=_PGTOL
    INFO - 10:52:36:       Number of calls to the objective function by the optimizer: 136
    INFO - 10:52:36:    Solution:
    INFO - 10:52:36:       Objective: -3.9803860964876963
    INFO - 10:52:36:       Design space:
    INFO - 10:52:36:          +-------------+-------------+---------------------+-------------+-------+
    INFO - 10:52:36:          | Name        | Lower bound |        Value        | Upper bound | Type  |
    INFO - 10:52:36:          +-------------+-------------+---------------------+-------------+-------+
    INFO - 10:52:36:          | x_shared[0] |     0.01    | 0.06101561365627294 |     0.09    | float |
    INFO - 10:52:36:          | x_shared[1] |    30000    |        60000        |    60000    | float |
    INFO - 10:52:36:          | x_shared[2] |     1.4     |         1.4         |     1.8     | float |
    INFO - 10:52:36:          | x_shared[3] |     2.5     |         2.5         |     8.5     | float |
    INFO - 10:52:36:          | x_shared[4] |      40     |          70         |      70     | float |
    INFO - 10:52:36:          | x_shared[5] |     500     |         1500        |     1500    | float |
    INFO - 10:52:36:          | x_1[0]      |     0.1     |         0.4         |     0.4     | float |
    INFO - 10:52:36:          | x_1[1]      |     0.75    |         0.75        |     1.25    | float |
    INFO - 10:52:36:          | x_2         |     0.75    |         0.75        |     1.25    | float |
    INFO - 10:52:36:          | x_3         |     0.1     |  0.1562913023426308 |      1      | float |
    INFO - 10:52:36:          +-------------+-------------+---------------------+-------------+-------+
    INFO - 10:52:36: *** End MDOScenario execution (time: 0:00:25.616566) ***

<gemseo.post.basic_history.BasicHistory object at 0x7efd47658880>

The solution feasibility was improved but this comes with a much higher number of iterations.

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

Gallery generated by Sphinx-Gallery