MDO formulations for a toy example in aerostructure

from __future__ import division, unicode_literals

from copy import deepcopy

from matplotlib import pyplot as plt

from gemseo.api import (
    configure_logger,
    create_discipline,
    create_scenario,
    generate_n2_plot,
)
from gemseo.problems.aerostructure.aerostructure_design_space import (
    AerostructureDesignSpace,
)

configure_logger()


algo_options = {
    "xtol_rel": 1e-8,
    "xtol_abs": 1e-8,
    "ftol_rel": 1e-8,
    "ftol_abs": 1e-8,
    "ineq_tolerance": 1e-5,
    "eq_tolerance": 1e-3,
}

Create discipline

First, we create disciplines (aero, structure, mission) with dummy formulas using the AnalyticDiscipline class.

aero_formulas = {
    "drag": "0.1*((sweep/360)**2 + 200 + "
    + "thick_airfoils**2-thick_airfoils -4*displ)",
    "forces": "10*sweep + 0.2*thick_airfoils-0.2*displ",
    "lift": "(sweep + 0.2*thick_airfoils-2.*displ)/3000.",
}
aerodynamics = create_discipline(
    "AnalyticDiscipline", name="Aerodynamics", expressions_dict=aero_formulas
)
struc_formulas = {
    "mass": "4000*(sweep/360)**3 + 200000 + " + "100*thick_panels +200.0*forces",
    "reserve_fact": "-3*sweep " + "-6*thick_panels+0.1*forces+55",
    "displ": "2*sweep + 3*thick_panels-2.*forces",
}
structure = create_discipline(
    "AnalyticDiscipline", name="Structure", expressions_dict=struc_formulas
)
mission_formulas = {"range": "8e11*lift/(mass*drag)"}
mission = create_discipline(
    "AnalyticDiscipline", name="Mission", expressions_dict=mission_formulas
)

disciplines = [aerodynamics, structure, mission]

We can see that structure and aerodynamics are strongly coupled:

generate_n2_plot(disciplines, save=False, show=True)
plot aerostructure

Create an MDO scenario with MDF formulation

Then, we create an MDO scenario based on the MDF formulation

design_space = AerostructureDesignSpace()
scenario = create_scenario(
    disciplines=disciplines,
    formulation="MDF",
    objective_name="range",
    design_space=design_space,
    maximize_objective=True,
)
scenario.add_constraint("reserve_fact", "ineq", value=0.5)
scenario.add_constraint("lift", "eq", value=0.5)
scenario.execute({"algo": "NLOPT_SLSQP", "max_iter": 10, "algo_options": algo_options})
scenario.post_process("OptHistoryView", save=False, show=True)

Out:

    INFO - 12:59:20:
    INFO - 12:59:20: *** Start MDO Scenario execution ***
    INFO - 12:59:20: MDOScenario
    INFO - 12:59:20:    Disciplines: Aerodynamics Structure Mission
    INFO - 12:59:20:    MDOFormulation: MDF
    INFO - 12:59:20:    Algorithm: NLOPT_SLSQP
    INFO - 12:59:20: Optimization problem:
    INFO - 12:59:20:    Minimize: -range(thick_airfoils, thick_panels, sweep)
    INFO - 12:59:20:    With respect to: thick_airfoils, thick_panels, sweep
    INFO - 12:59:20:    Subject to constraints:
    INFO - 12:59:20:       reserve_fact(thick_airfoils, thick_panels, sweep) <= 0.5
    INFO - 12:59:20:       lift(thick_airfoils, thick_panels, sweep) == 0.5
    INFO - 12:59:20: Design space:
    INFO - 12:59:20: +----------------+-------------+---------+-------------+-------+
    INFO - 12:59:20: | name           | lower_bound |  value  | upper_bound | type  |
    INFO - 12:59:20: +----------------+-------------+---------+-------------+-------+
    INFO - 12:59:20: | thick_airfoils |      5      | (15+0j) |      25     | float |
    INFO - 12:59:20: | thick_panels   |      1      |  (3+0j) |      20     | float |
    INFO - 12:59:20: | sweep          |      10     | (25+0j) |      35     | float |
    INFO - 12:59:20: +----------------+-------------+---------+-------------+-------+
    INFO - 12:59:20: Optimization:   0%|          | 0/10 [00:00<?, ?it]
/home/docs/checkouts/readthedocs.org/user_builds/gemseo/conda/3.2.1/lib/python3.8/site-packages/scipy/sparse/linalg/dsolve/linsolve.py:407: SparseEfficiencyWarning: splu requires CSC matrix format
  warn('splu requires CSC matrix format', SparseEfficiencyWarning)
/home/docs/checkouts/readthedocs.org/user_builds/gemseo/conda/3.2.1/lib/python3.8/site-packages/gemseo/algos/opt/lib_nlopt.py:278: ComplexWarning: Casting complex values to real discards the imaginary part
  grad[:] = obj_func.jac(xn_vect)
/home/docs/checkouts/readthedocs.org/user_builds/gemseo/conda/3.2.1/lib/python3.8/site-packages/gemseo/algos/opt/lib_nlopt.py:319: ComplexWarning: Casting complex values to real discards the imaginary part
  grad[:] = atleast_2d(cstr_jac)[
    INFO - 12:59:20: Optimization:  40%|████      | 4/10 [00:00<00:00, 91.53 it/sec]
    INFO - 12:59:20: Optimization:  40%|████      | 4/10 [00:00<00:00, 90.93 it/sec]
    INFO - 12:59:20: Optimization result:
    INFO - 12:59:20: Objective value = 4509.5054469281
    INFO - 12:59:20: The result is feasible.
    INFO - 12:59:20: Status: None
    INFO - 12:59:20: Optimizer message: Successive iterates of the objective function are closer than ftol_rel or ftol_abs. GEMSEO Stopped the driver
    INFO - 12:59:20: Number of calls to the objective function by the optimizer: 4
    INFO - 12:59:20: Constraints values:
    INFO - 12:59:20:    lift - 0.5 = 1.196277521486877e-10
    INFO - 12:59:20:    reserve_fact - 0.5 = 2.1966985030985597e-07
    INFO - 12:59:20: Design space:
    INFO - 12:59:20: +----------------+-------------+-------------------------+-------------+-------+
    INFO - 12:59:20: | name           | lower_bound |          value          | upper_bound | type  |
    INFO - 12:59:20: +----------------+-------------+-------------------------+-------------+-------+
    INFO - 12:59:20: | thick_airfoils |      5      |          (5+0j)         |      25     | float |
    INFO - 12:59:20: | thick_panels   |      1      | (3.2255891895822506+0j) |      20     | float |
    INFO - 12:59:20: | sweep          |      10     | (24.993265993246517+0j) |      35     | float |
    INFO - 12:59:20: +----------------+-------------+-------------------------+-------------+-------+
    INFO - 12:59:20: *** MDO Scenario run terminated in 0:00:00.117524 ***

<gemseo.post.opt_history_view.OptHistoryView object at 0x7fb7469f7190>

Create an MDO scenario with bilevel formulation

Then, we create an MDO scenario based on the bilevel formulation

sub_scenario_options = {
    "max_iter": 5,
    "algo": "NLOPT_SLSQP",
    "algo_options": algo_options,
}
design_space_ref = AerostructureDesignSpace()

Create the aeronautics sub-scenario

For this purpose, we create a first sub-scenario to maximize the range with respect to the thick airfoils, based on the aerodynamics discipline.

design_space_aero = deepcopy(design_space_ref).filter(["thick_airfoils"])
aero_scenario = create_scenario(
    disciplines=[aerodynamics, mission],
    formulation="DisciplinaryOpt",
    objective_name="range",
    design_space=design_space_aero,
    maximize_objective=True,
)
aero_scenario.default_inputs = sub_scenario_options

Create the structure sub-scenario

We create a second sub-scenario to maximize the range with respect to the thick panels, based on the structure discipline.

design_space_struct = deepcopy(design_space_ref).filter(["thick_panels"])
struct_scenario = create_scenario(
    disciplines=[structure, mission],
    formulation="DisciplinaryOpt",
    objective_name="range",
    design_space=design_space_struct,
    maximize_objective=True,
)
struct_scenario.default_inputs = sub_scenario_options

Create the system scenario

Lastly, we build a system scenario to maximize the range with respect to the sweep, which is a shared variable, based on the previous sub-scenarios.

design_space_system = deepcopy(design_space_ref).filter(["sweep"])
system_scenario = create_scenario(
    disciplines=[aero_scenario, struct_scenario, mission],
    formulation="BiLevel",
    objective_name="range",
    design_space=design_space_system,
    maximize_objective=True,
    mda_name="MDAJacobi",
    tolerance=1e-8,
)
system_scenario.add_constraint("reserve_fact", "ineq", value=0.5)
system_scenario.add_constraint("lift", "eq", value=0.5)
system_scenario.execute(
    {"algo": "NLOPT_COBYLA", "max_iter": 7, "algo_options": algo_options}
)
system_scenario.post_process("OptHistoryView", save=False, show=False)
# Workaround for HTML rendering, instead of ``show=True``
plt.show()
  • Evolution of the optimization variables
  • Evolution of the objective value
  • Distance to the optimum
  • Evolution of the inequality constraints
  • Evolution of the equality constraints

Out:

    INFO - 12:59:20:
    INFO - 12:59:20: *** Start MDO Scenario execution ***
    INFO - 12:59:20: MDOScenario
    INFO - 12:59:20:    Disciplines: MDOScenario MDOScenario Mission
    INFO - 12:59:20:    MDOFormulation: BiLevel
    INFO - 12:59:20:    Algorithm: NLOPT_COBYLA
    INFO - 12:59:20: Optimization problem:
    INFO - 12:59:20:    Minimize: -range(sweep)
    INFO - 12:59:20:    With respect to: sweep
    INFO - 12:59:20:    Subject to constraints:
    INFO - 12:59:20:       reserve_fact(sweep) <= 0.5
    INFO - 12:59:20:       lift(sweep) == 0.5
    INFO - 12:59:20: Design space:
    INFO - 12:59:20: +-------+-------------+---------+-------------+-------+
    INFO - 12:59:20: | name  | lower_bound |  value  | upper_bound | type  |
    INFO - 12:59:20: +-------+-------------+---------+-------------+-------+
    INFO - 12:59:20: | sweep |      10     | (25+0j) |      35     | float |
    INFO - 12:59:20: +-------+-------------+---------+-------------+-------+
    INFO - 12:59:20: Optimization:   0%|          | 0/7 [00:00<?, ?it]
    INFO - 12:59:20:
    INFO - 12:59:20: *** Start MDO Scenario execution ***
    INFO - 12:59:20: MDOScenario
    INFO - 12:59:20:    Disciplines: Aerodynamics Mission
    INFO - 12:59:20:    MDOFormulation: DisciplinaryOpt
    INFO - 12:59:20:    Algorithm: NLOPT_SLSQP
    INFO - 12:59:20: Optimization problem:
    INFO - 12:59:20:    Minimize: -range(thick_airfoils)
    INFO - 12:59:20:    With respect to: thick_airfoils
    INFO - 12:59:20:    Subject to constraints:
    INFO - 12:59:20:       lift(thick_airfoils) == 0.5
    INFO - 12:59:20: Design space:
    INFO - 12:59:20: +----------------+-------------+---------+-------------+-------+
    INFO - 12:59:20: | name           | lower_bound |  value  | upper_bound | type  |
    INFO - 12:59:20: +----------------+-------------+---------+-------------+-------+
    INFO - 12:59:20: | thick_airfoils |      5      | (15+0j) |      25     | float |
    INFO - 12:59:20: +----------------+-------------+---------+-------------+-------+
    INFO - 12:59:20: Optimization:   0%|          | 0/5 [00:00<?, ?it]
    INFO - 12:59:20: 
/home/docs/checkouts/readthedocs.org/user_builds/gemseo/conda/3.2.1/lib/python3.8/site-packages/gemseo/algos/opt/lib_nlopt.py:278: ComplexWarning: Casting complex values to real discards the imaginary part
  grad[:] = obj_func.jac(xn_vect)
/home/docs/checkouts/readthedocs.org/user_builds/gemseo/conda/3.2.1/lib/python3.8/site-packages/gemseo/algos/opt/lib_nlopt.py:319: ComplexWarning: Casting complex values to real discards the imaginary part
  grad[:] = atleast_2d(cstr_jac)[
 WARNING - 12:59:20: Optimization found no feasible point !  The least infeasible point is selected.
    INFO - 12:59:20: Optimization:  40%|████      | 2/5 [00:00<00:00, 585.42 it/sec]
    INFO - 12:59:20: Optimization result:
    INFO - 12:59:20: Objective value = 4500.624867974909
    INFO - 12:59:20: The result is not feasible.
    INFO - 12:59:20: Status: 5
    INFO - 12:59:20: Optimizer message: NLOPT_MAXEVAL_REACHED: Optimization stopped because maxeval (above) was reached
    INFO - 12:59:20: Number of calls to the objective function by the optimizer: 8
    INFO - 12:59:20: Constraints values:
    INFO - 12:59:20:    lift - 0.5 = 0.005333333333333523
    INFO - 12:59:20: Design space:
    INFO - 12:59:20: +----------------+-------------+--------+-------------+-------+
    INFO - 12:59:20: | name           | lower_bound | value  | upper_bound | type  |
    INFO - 12:59:20: +----------------+-------------+--------+-------------+-------+
    INFO - 12:59:20: | thick_airfoils |      5      | (5+0j) |      25     | float |
    INFO - 12:59:20: +----------------+-------------+--------+-------------+-------+
    INFO - 12:59:20: *** MDO Scenario run terminated in 0:00:00.014313 ***
    INFO - 12:59:20:
    INFO - 12:59:20: *** Start MDO Scenario execution ***
    INFO - 12:59:20: MDOScenario
    INFO - 12:59:20:    Disciplines: Structure Mission
    INFO - 12:59:20:    MDOFormulation: DisciplinaryOpt
    INFO - 12:59:20:    Algorithm: NLOPT_SLSQP
    INFO - 12:59:20: Optimization problem:
    INFO - 12:59:20:    Minimize: -range(thick_panels)
    INFO - 12:59:20:    With respect to: thick_panels
    INFO - 12:59:20:    Subject to constraints:
    INFO - 12:59:20:       reserve_fact(thick_panels) <= 0.5
    INFO - 12:59:20: Design space:
    INFO - 12:59:20: +--------------+-------------+--------+-------------+-------+
    INFO - 12:59:20: | name         | lower_bound | value  | upper_bound | type  |
    INFO - 12:59:20: +--------------+-------------+--------+-------------+-------+
    INFO - 12:59:20: | thick_panels |      1      | (3+0j) |      20     | float |
    INFO - 12:59:20: +--------------+-------------+--------+-------------+-------+
    INFO - 12:59:20: Optimization:   0%|          | 0/5 [00:00<?, ?it]
    INFO - 12:59:20: 
    INFO - 12:59:20: Optimization:  80%|████████  | 4/5 [00:00<00:00, 479.96 it/sec, obj=4.51e+3]
    INFO - 12:59:20: Optimization result:
    INFO - 12:59:20: Objective value = 4506.645473559234
    INFO - 12:59:20: The result is feasible.
    INFO - 12:59:20: Status: None
    INFO - 12:59:20: Optimizer message: Successive iterates of the objective function are closer than ftol_rel or ftol_abs. GEMSEO Stopped the driver
    INFO - 12:59:20: Number of calls to the objective function by the optimizer: 5
    INFO - 12:59:20: Constraints values:
    INFO - 12:59:20:    reserve_fact - 0.5 = 1.1943299682570796e-09
    INFO - 12:59:20: Design space:
    INFO - 12:59:20: +--------------+-------------+------------------------+-------------+-------+
    INFO - 12:59:20: | name         | lower_bound |         value          | upper_bound | type  |
    INFO - 12:59:20: +--------------+-------------+------------------------+-------------+-------+
    INFO - 12:59:20: | thick_panels |      1      | (3.249999999800945+0j) |      20     | float |
    INFO - 12:59:20: +--------------+-------------+------------------------+-------------+-------+
    INFO - 12:59:20: *** MDO Scenario run terminated in 0:00:00.016182 ***
    INFO - 12:59:20:
    INFO - 12:59:20: *** Start MDO Scenario execution ***
    INFO - 12:59:20: MDOScenario
    INFO - 12:59:20:    Disciplines: Aerodynamics Mission
    INFO - 12:59:20:    MDOFormulation: DisciplinaryOpt
    INFO - 12:59:20:    Algorithm: NLOPT_SLSQP
    INFO - 12:59:20: Optimization problem:
    INFO - 12:59:20:    Minimize: -range(thick_airfoils)
    INFO - 12:59:20:    With respect to: thick_airfoils
    INFO - 12:59:20:    Subject to constraints:
    INFO - 12:59:20:       lift(thick_airfoils) == 0.5
    INFO - 12:59:20: Design space:
    INFO - 12:59:20: +----------------+-------------+--------+-------------+-------+
    INFO - 12:59:20: | name           | lower_bound | value  | upper_bound | type  |
    INFO - 12:59:20: +----------------+-------------+--------+-------------+-------+
    INFO - 12:59:20: | thick_airfoils |      5      | (5+0j) |      25     | float |
    INFO - 12:59:20: +----------------+-------------+--------+-------------+-------+
    INFO - 12:59:20: Optimization:   0%|          | 0/5 [00:00<?, ?it]
    INFO - 12:59:20: 
 WARNING - 12:59:20: Optimization found no feasible point !  The least infeasible point is selected.
    INFO - 12:59:20: Optimization:  20%|██        | 1/5 [00:00<00:00, 1337.81 it/sec]
    INFO - 12:59:20: Optimization result:
    INFO - 12:59:20: Objective value = 4267.901616337711
    INFO - 12:59:20: The result is not feasible.
    INFO - 12:59:20: Status: 5
    INFO - 12:59:20: Optimizer message: NLOPT_MAXEVAL_REACHED: Optimization stopped because maxeval (above) was reached
    INFO - 12:59:20: Number of calls to the objective function by the optimizer: 8
    INFO - 12:59:20: Constraints values:
    INFO - 12:59:20:    lift - 0.5 = 0.1271388888895526
    INFO - 12:59:20: Design space:
    INFO - 12:59:20: +----------------+-------------+--------+-------------+-------+
    INFO - 12:59:20: | name           | lower_bound | value  | upper_bound | type  |
    INFO - 12:59:20: +----------------+-------------+--------+-------------+-------+
    INFO - 12:59:20: | thick_airfoils |      5      | (5+0j) |      25     | float |
    INFO - 12:59:20: +----------------+-------------+--------+-------------+-------+
    INFO - 12:59:20: *** MDO Scenario run terminated in 0:00:00.009007 ***
    INFO - 12:59:20:
    INFO - 12:59:20: *** Start MDO Scenario execution ***
    INFO - 12:59:20: MDOScenario
    INFO - 12:59:20:    Disciplines: Structure Mission
    INFO - 12:59:20:    MDOFormulation: DisciplinaryOpt
    INFO - 12:59:20:    Algorithm: NLOPT_SLSQP
    INFO - 12:59:20: Optimization problem:
    INFO - 12:59:20:    Minimize: -range(thick_panels)
    INFO - 12:59:20:    With respect to: thick_panels
    INFO - 12:59:20:    Subject to constraints:
    INFO - 12:59:20:       reserve_fact(thick_panels) <= 0.5
    INFO - 12:59:20: Design space:
    INFO - 12:59:20: +--------------+-------------+------------------------+-------------+-------+
    INFO - 12:59:20: | name         | lower_bound |         value          | upper_bound | type  |
    INFO - 12:59:20: +--------------+-------------+------------------------+-------------+-------+
    INFO - 12:59:20: | thick_panels |      1      | (3.249999999800945+0j) |      20     | float |
    INFO - 12:59:20: +--------------+-------------+------------------------+-------------+-------+
    INFO - 12:59:20: Optimization:   0%|          | 0/5 [00:00<?, ?it]
    INFO - 12:59:20: 
    INFO - 12:59:20: Optimization:  80%|████████  | 4/5 [00:00<00:00, 644.21 it/sec, obj=4.27e+3]
    INFO - 12:59:20: Optimization result:
    INFO - 12:59:20: Objective value = 4270.014801163452
    INFO - 12:59:20: The result is feasible.
    INFO - 12:59:20: Status: None
    INFO - 12:59:20: Optimizer message: Successive iterates of the objective function are closer than ftol_rel or ftol_abs. GEMSEO Stopped the driver
    INFO - 12:59:20: Number of calls to the objective function by the optimizer: 5
    INFO - 12:59:20: Constraints values:
    INFO - 12:59:20:    reserve_fact - 0.5 = 2.0847750192842796e-09
    INFO - 12:59:20: Design space:
    INFO - 12:59:20: +--------------+-------------+-------------------------+-------------+-------+
    INFO - 12:59:20: | name         | lower_bound |          value          | upper_bound | type  |
    INFO - 12:59:20: +--------------+-------------+-------------------------+-------------+-------+
    INFO - 12:59:20: | thick_panels |      1      | (1.7652777774336332+0j) |      20     | float |
    INFO - 12:59:20: +--------------+-------------+-------------------------+-------------+-------+
    INFO - 12:59:20: *** MDO Scenario run terminated in 0:00:00.012934 ***
    INFO - 12:59:20:
    INFO - 12:59:20: *** Start MDO Scenario execution ***
    INFO - 12:59:20: MDOScenario
    INFO - 12:59:20:    Disciplines: Aerodynamics Mission
    INFO - 12:59:20:    MDOFormulation: DisciplinaryOpt
    INFO - 12:59:20:    Algorithm: NLOPT_SLSQP
    INFO - 12:59:20: Optimization problem:
    INFO - 12:59:20:    Minimize: -range(thick_airfoils)
    INFO - 12:59:20:    With respect to: thick_airfoils
    INFO - 12:59:20:    Subject to constraints:
    INFO - 12:59:20:       lift(thick_airfoils) == 0.5
    INFO - 12:59:20: Design space:
    INFO - 12:59:20: +----------------+-------------+--------+-------------+-------+
    INFO - 12:59:20: | name           | lower_bound | value  | upper_bound | type  |
    INFO - 12:59:20: +----------------+-------------+--------+-------------+-------+
    INFO - 12:59:20: | thick_airfoils |      5      | (5+0j) |      25     | float |
    INFO - 12:59:20: +----------------+-------------+--------+-------------+-------+
    INFO - 12:59:20: Optimization:   0%|          | 0/5 [00:00<?, ?it]
    INFO - 12:59:20: 
 WARNING - 12:59:20: Optimization found no feasible point !  The least infeasible point is selected.
    INFO - 12:59:20: Optimization: 100%|██████████| 5/5 [00:00<00:00, 628.83 it/sec, obj=4.51e+3]
    INFO - 12:59:20: Optimization result:
    INFO - 12:59:20: Objective value = 3831.8061828224563
    INFO - 12:59:20: The result is not feasible.
    INFO - 12:59:20: Status: None
    INFO - 12:59:20: Optimizer message: Maximum number of iterations reached. GEMSEO Stopped the driver
    INFO - 12:59:20: Number of calls to the objective function by the optimizer: 7
    INFO - 12:59:20: Constraints values:
    INFO - 12:59:20:    lift - 0.5 = -0.002338332392893716
    INFO - 12:59:20: Design space:
    INFO - 12:59:20: +----------------+-------------+---------+-------------+-------+
    INFO - 12:59:20: | name           | lower_bound |  value  | upper_bound | type  |
    INFO - 12:59:20: +----------------+-------------+---------+-------------+-------+
    INFO - 12:59:20: | thick_airfoils |      5      | (25+0j) |      25     | float |
    INFO - 12:59:20: +----------------+-------------+---------+-------------+-------+
    INFO - 12:59:20: *** MDO Scenario run terminated in 0:00:00.013343 ***
    INFO - 12:59:20:
    INFO - 12:59:20: *** Start MDO Scenario execution ***
    INFO - 12:59:20: MDOScenario
    INFO - 12:59:20:    Disciplines: Structure Mission
    INFO - 12:59:20:    MDOFormulation: DisciplinaryOpt
    INFO - 12:59:20:    Algorithm: NLOPT_SLSQP
    INFO - 12:59:20: Optimization problem:
    INFO - 12:59:20:    Minimize: -range(thick_panels)
    INFO - 12:59:20:    With respect to: thick_panels
    INFO - 12:59:20:    Subject to constraints:
    INFO - 12:59:20:       reserve_fact(thick_panels) <= 0.5
    INFO - 12:59:20: Design space:
    INFO - 12:59:20: +--------------+-------------+-------------------------+-------------+-------+
    INFO - 12:59:20: | name         | lower_bound |          value          | upper_bound | type  |
    INFO - 12:59:20: +--------------+-------------+-------------------------+-------------+-------+
    INFO - 12:59:20: | thick_panels |      1      | (1.7652777774336332+0j) |      20     | float |
    INFO - 12:59:20: +--------------+-------------+-------------------------+-------------+-------+
    INFO - 12:59:20: Optimization:   0%|          | 0/5 [00:00<?, ?it]
    INFO - 12:59:20: 
   ERROR - 12:59:20: NLopt run failed: NLopt roundoff-limited, RoundoffLimited
    INFO - 12:59:20: Optimization:  60%|██████    | 3/5 [00:00<00:00, 716.66 it/sec]
    INFO - 12:59:20: Optimization result:
    INFO - 12:59:20: Objective value = 3818.589637887974
    INFO - 12:59:20: The result is feasible.
    INFO - 12:59:20: Status: None
    INFO - 12:59:20: Optimizer message:  GEMSEO Stopped the driver
    INFO - 12:59:20: Number of calls to the objective function by the optimizer: 4
    INFO - 12:59:20: Constraints values:
    INFO - 12:59:20:    reserve_fact - 0.5 = -1.332978172285948e-10
    INFO - 12:59:20: Design space:
    INFO - 12:59:20: +--------------+-------------+-------------------------+-------------+-------+
    INFO - 12:59:20: | name         | lower_bound |          value          | upper_bound | type  |
    INFO - 12:59:20: +--------------+-------------+-------------------------+-------------+-------+
    INFO - 12:59:20: | thick_panels |      1      | (3.4145871932564784+0j) |      20     | float |
    INFO - 12:59:20: +--------------+-------------+-------------------------+-------------+-------+
    INFO - 12:59:20: *** MDO Scenario run terminated in 0:00:00.012135 ***
    INFO - 12:59:20: Optimization:  43%|████▎     | 3/7 [00:00<00:00, 54.27 it/sec, obj=3.82e+3]
    INFO - 12:59:20:
    INFO - 12:59:20: *** Start MDO Scenario execution ***
    INFO - 12:59:20: MDOScenario
    INFO - 12:59:20:    Disciplines: Aerodynamics Mission
    INFO - 12:59:20:    MDOFormulation: DisciplinaryOpt
    INFO - 12:59:20:    Algorithm: NLOPT_SLSQP
    INFO - 12:59:20: Optimization problem:
    INFO - 12:59:20:    Minimize: -range(thick_airfoils)
    INFO - 12:59:20:    With respect to: thick_airfoils
    INFO - 12:59:20:    Subject to constraints:
    INFO - 12:59:20:       lift(thick_airfoils) == 0.5
    INFO - 12:59:20: Design space:
    INFO - 12:59:20: +----------------+-------------+---------+-------------+-------+
    INFO - 12:59:20: | name           | lower_bound |  value  | upper_bound | type  |
    INFO - 12:59:20: +----------------+-------------+---------+-------------+-------+
    INFO - 12:59:20: | thick_airfoils |      5      | (25+0j) |      25     | float |
    INFO - 12:59:20: +----------------+-------------+---------+-------------+-------+
    INFO - 12:59:20: Optimization:   0%|          | 0/5 [00:00<?, ?it]
    INFO - 12:59:20: 
 WARNING - 12:59:20: Optimization found no feasible point !  The least infeasible point is selected.
    INFO - 12:59:20: Optimization:  40%|████      | 2/5 [00:00<00:00, 911.33 it/sec]
    INFO - 12:59:20: Optimization result:
    INFO - 12:59:20: Objective value = 4490.5401741987625
    INFO - 12:59:20: The result is not feasible.
    INFO - 12:59:20: Status: 5
    INFO - 12:59:20: Optimizer message: NLOPT_MAXEVAL_REACHED: Optimization stopped because maxeval (above) was reached
    INFO - 12:59:20: Number of calls to the objective function by the optimizer: 8
    INFO - 12:59:20: Constraints values:
    INFO - 12:59:20:    lift - 0.5 = 0.009181047336962123
    INFO - 12:59:20: Design space:
    INFO - 12:59:20: +----------------+-------------+--------+-------------+-------+
    INFO - 12:59:20: | name           | lower_bound | value  | upper_bound | type  |
    INFO - 12:59:20: +----------------+-------------+--------+-------------+-------+
    INFO - 12:59:20: | thick_airfoils |      5      | (5+0j) |      25     | float |
    INFO - 12:59:20: +----------------+-------------+--------+-------------+-------+
    INFO - 12:59:20: *** MDO Scenario run terminated in 0:00:00.010725 ***
    INFO - 12:59:20:
    INFO - 12:59:20: *** Start MDO Scenario execution ***
    INFO - 12:59:20: MDOScenario
    INFO - 12:59:20:    Disciplines: Structure Mission
    INFO - 12:59:20:    MDOFormulation: DisciplinaryOpt
    INFO - 12:59:20:    Algorithm: NLOPT_SLSQP
    INFO - 12:59:20: Optimization problem:
    INFO - 12:59:20:    Minimize: -range(thick_panels)
    INFO - 12:59:20:    With respect to: thick_panels
    INFO - 12:59:20:    Subject to constraints:
    INFO - 12:59:20:       reserve_fact(thick_panels) <= 0.5
    INFO - 12:59:20: Design space:
    INFO - 12:59:20: +--------------+-------------+-------------------------+-------------+-------+
    INFO - 12:59:20: | name         | lower_bound |          value          | upper_bound | type  |
    INFO - 12:59:20: +--------------+-------------+-------------------------+-------------+-------+
    INFO - 12:59:20: | thick_panels |      1      | (3.4145871932564784+0j) |      20     | float |
    INFO - 12:59:20: +--------------+-------------+-------------------------+-------------+-------+
    INFO - 12:59:20: Optimization:   0%|          | 0/5 [00:00<?, ?it]
    INFO - 12:59:20: 
   ERROR - 12:59:20: NLopt run failed: NLopt roundoff-limited, RoundoffLimited
    INFO - 12:59:20: Optimization:  60%|██████    | 3/5 [00:00<00:00, 723.33 it/sec]
    INFO - 12:59:20: Optimization result:
    INFO - 12:59:20: Objective value = 4503.59456876238
    INFO - 12:59:20: The result is feasible.
    INFO - 12:59:20: Status: None
    INFO - 12:59:20: Optimizer message:  GEMSEO Stopped the driver
    INFO - 12:59:20: Number of calls to the objective function by the optimizer: 4
    INFO - 12:59:20: Constraints values:
    INFO - 12:59:20:    reserve_fact - 0.5 = -2.689262146304827e-10
    INFO - 12:59:20: Design space:
    INFO - 12:59:20: +--------------+-------------+-------------------------+-------------+-------+
    INFO - 12:59:20: | name         | lower_bound |          value          | upper_bound | type  |
    INFO - 12:59:20: +--------------+-------------+-------------------------+-------------+-------+
    INFO - 12:59:20: | thick_panels |      1      | (3.2563016355647765+0j) |      20     | float |
    INFO - 12:59:20: +--------------+-------------+-------------------------+-------------+-------+
    INFO - 12:59:20: *** MDO Scenario run terminated in 0:00:00.012118 ***
    INFO - 12:59:20:
    INFO - 12:59:20: *** Start MDO Scenario execution ***
    INFO - 12:59:20: MDOScenario
    INFO - 12:59:20:    Disciplines: Aerodynamics Mission
    INFO - 12:59:20:    MDOFormulation: DisciplinaryOpt
    INFO - 12:59:20:    Algorithm: NLOPT_SLSQP
    INFO - 12:59:20: Optimization problem:
    INFO - 12:59:20:    Minimize: -range(thick_airfoils)
    INFO - 12:59:20:    With respect to: thick_airfoils
    INFO - 12:59:20:    Subject to constraints:
    INFO - 12:59:20:       lift(thick_airfoils) == 0.5
    INFO - 12:59:20: Design space:
    INFO - 12:59:20: +----------------+-------------+--------+-------------+-------+
    INFO - 12:59:20: | name           | lower_bound | value  | upper_bound | type  |
    INFO - 12:59:20: +----------------+-------------+--------+-------------+-------+
    INFO - 12:59:20: | thick_airfoils |      5      | (5+0j) |      25     | float |
    INFO - 12:59:20: +----------------+-------------+--------+-------------+-------+
    INFO - 12:59:20: Optimization:   0%|          | 0/5 [00:00<?, ?it]
    INFO - 12:59:20: 
    INFO - 12:59:20: Optimization: 100%|██████████| 5/5 [00:00<00:00, 521.24 it/sec, obj=4.51e+3]
    INFO - 12:59:20: Optimization result:
    INFO - 12:59:20: Objective value = 3854.081803199325
    INFO - 12:59:20: The result is feasible.
    INFO - 12:59:20: Status: None
    INFO - 12:59:20: Optimizer message: Maximum number of iterations reached. GEMSEO Stopped the driver
    INFO - 12:59:20: Number of calls to the objective function by the optimizer: 7
    INFO - 12:59:20: Constraints values:
    INFO - 12:59:20:    lift - 0.5 = 0.0
    INFO - 12:59:20: Design space:
    INFO - 12:59:20: +----------------+-------------+------------------------+-------------+-------+
    INFO - 12:59:20: | name           | lower_bound |         value          | upper_bound | type  |
    INFO - 12:59:20: +----------------+-------------+------------------------+-------------+-------+
    INFO - 12:59:20: | thick_airfoils |      5      | (24.35677419636821+0j) |      25     | float |
    INFO - 12:59:20: +----------------+-------------+------------------------+-------------+-------+
    INFO - 12:59:20: *** MDO Scenario run terminated in 0:00:00.015097 ***
    INFO - 12:59:20:
    INFO - 12:59:20: *** Start MDO Scenario execution ***
    INFO - 12:59:20: MDOScenario
    INFO - 12:59:20:    Disciplines: Structure Mission
    INFO - 12:59:20:    MDOFormulation: DisciplinaryOpt
    INFO - 12:59:20:    Algorithm: NLOPT_SLSQP
    INFO - 12:59:20: Optimization problem:
    INFO - 12:59:20:    Minimize: -range(thick_panels)
    INFO - 12:59:20:    With respect to: thick_panels
    INFO - 12:59:20:    Subject to constraints:
    INFO - 12:59:20:       reserve_fact(thick_panels) <= 0.5
    INFO - 12:59:20: Design space:
    INFO - 12:59:20: +--------------+-------------+-------------------------+-------------+-------+
    INFO - 12:59:20: | name         | lower_bound |          value          | upper_bound | type  |
    INFO - 12:59:20: +--------------+-------------+-------------------------+-------------+-------+
    INFO - 12:59:20: | thick_panels |      1      | (3.2563016355647765+0j) |      20     | float |
    INFO - 12:59:20: +--------------+-------------+-------------------------+-------------+-------+
    INFO - 12:59:20: Optimization:   0%|          | 0/5 [00:00<?, ?it]
    INFO - 12:59:20: 
   ERROR - 12:59:21: NLopt run failed: NLopt roundoff-limited, RoundoffLimited
    INFO - 12:59:21: Optimization:  40%|████      | 2/5 [00:00<00:00, 1084.53 it/sec]
    INFO - 12:59:21: Optimization result:
    INFO - 12:59:21: Objective value = 3843.3818343295015
    INFO - 12:59:21: The result is feasible.
    INFO - 12:59:21: Status: None
    INFO - 12:59:21: Optimizer message:  GEMSEO Stopped the driver
    INFO - 12:59:21: Number of calls to the objective function by the optimizer: 3
    INFO - 12:59:21: Constraints values:
    INFO - 12:59:21:    reserve_fact - 0.5 = 8.733991307963151e-11
    INFO - 12:59:21: Design space:
    INFO - 12:59:21: +--------------+-------------+------------------------+-------------+-------+
    INFO - 12:59:21: | name         | lower_bound |         value          | upper_bound | type  |
    INFO - 12:59:21: +--------------+-------------+------------------------+-------------+-------+
    INFO - 12:59:21: | thick_panels |      1      | (3.303233602225065+0j) |      20     | float |
    INFO - 12:59:21: +--------------+-------------+------------------------+-------------+-------+
    INFO - 12:59:21: *** MDO Scenario run terminated in 0:00:00.009784 ***
    INFO - 12:59:21:
    INFO - 12:59:21: *** Start MDO Scenario execution ***
    INFO - 12:59:21: MDOScenario
    INFO - 12:59:21:    Disciplines: Aerodynamics Mission
    INFO - 12:59:21:    MDOFormulation: DisciplinaryOpt
    INFO - 12:59:21:    Algorithm: NLOPT_SLSQP
    INFO - 12:59:21: Optimization problem:
    INFO - 12:59:21:    Minimize: -range(thick_airfoils)
    INFO - 12:59:21:    With respect to: thick_airfoils
    INFO - 12:59:21:    Subject to constraints:
    INFO - 12:59:21:       lift(thick_airfoils) == 0.5
    INFO - 12:59:21: Design space:
    INFO - 12:59:21: +----------------+-------------+------------------------+-------------+-------+
    INFO - 12:59:21: | name           | lower_bound |         value          | upper_bound | type  |
    INFO - 12:59:21: +----------------+-------------+------------------------+-------------+-------+
    INFO - 12:59:21: | thick_airfoils |      5      | (24.35677419636821+0j) |      25     | float |
    INFO - 12:59:21: +----------------+-------------+------------------------+-------------+-------+
    INFO - 12:59:21: Optimization:   0%|          | 0/5 [00:00<?, ?it]
    INFO - 12:59:21: 
 WARNING - 12:59:21: Optimization found no feasible point !  The least infeasible point is selected.
    INFO - 12:59:21: Optimization:  40%|████      | 2/5 [00:00<00:00, 893.85 it/sec]
    INFO - 12:59:21: Optimization result:
    INFO - 12:59:21: Objective value = 4492.389203681739
    INFO - 12:59:21: The result is not feasible.
    INFO - 12:59:21: Status: 5
    INFO - 12:59:21: Optimizer message: NLOPT_MAXEVAL_REACHED: Optimization stopped because maxeval (above) was reached
    INFO - 12:59:21: Number of calls to the objective function by the optimizer: 8
    INFO - 12:59:21: Constraints values:
    INFO - 12:59:21:    lift - 0.5 = 0.008585874885500111
    INFO - 12:59:21: Design space:
    INFO - 12:59:21: +----------------+-------------+--------+-------------+-------+
    INFO - 12:59:21: | name           | lower_bound | value  | upper_bound | type  |
    INFO - 12:59:21: +----------------+-------------+--------+-------------+-------+
    INFO - 12:59:21: | thick_airfoils |      5      | (5+0j) |      25     | float |
    INFO - 12:59:21: +----------------+-------------+--------+-------------+-------+
    INFO - 12:59:21: *** MDO Scenario run terminated in 0:00:00.010945 ***
    INFO - 12:59:21:
    INFO - 12:59:21: *** Start MDO Scenario execution ***
    INFO - 12:59:21: MDOScenario
    INFO - 12:59:21:    Disciplines: Structure Mission
    INFO - 12:59:21:    MDOFormulation: DisciplinaryOpt
    INFO - 12:59:21:    Algorithm: NLOPT_SLSQP
    INFO - 12:59:21: Optimization problem:
    INFO - 12:59:21:    Minimize: -range(thick_panels)
    INFO - 12:59:21:    With respect to: thick_panels
    INFO - 12:59:21:    Subject to constraints:
    INFO - 12:59:21:       reserve_fact(thick_panels) <= 0.5
    INFO - 12:59:21: Design space:
    INFO - 12:59:21: +--------------+-------------+------------------------+-------------+-------+
    INFO - 12:59:21: | name         | lower_bound |         value          | upper_bound | type  |
    INFO - 12:59:21: +--------------+-------------+------------------------+-------------+-------+
    INFO - 12:59:21: | thick_panels |      1      | (3.303233602225065+0j) |      20     | float |
    INFO - 12:59:21: +--------------+-------------+------------------------+-------------+-------+
    INFO - 12:59:21: Optimization:   0%|          | 0/5 [00:00<?, ?it]
    INFO - 12:59:21: 
    INFO - 12:59:21: Optimization:  80%|████████  | 4/5 [00:00<00:00, 640.59 it/sec, obj=4.5e+3]
    INFO - 12:59:21: Optimization result:
    INFO - 12:59:21: Objective value = 4504.850157627395
    INFO - 12:59:21: The result is feasible.
    INFO - 12:59:21: Status: None
    INFO - 12:59:21: Optimizer message: Successive iterates of the objective function are closer than ftol_rel or ftol_abs. GEMSEO Stopped the driver
    INFO - 12:59:21: Number of calls to the objective function by the optimizer: 5
    INFO - 12:59:21: Constraints values:
    INFO - 12:59:21:    reserve_fact - 0.5 = 1.6281845205412537e-08
    INFO - 12:59:21: Design space:
    INFO - 12:59:21: +--------------+-------------+-------------------------+-------------+-------+
    INFO - 12:59:21: | name         | lower_bound |          value          | upper_bound | type  |
    INFO - 12:59:21: +--------------+-------------+-------------------------+-------------+-------+
    INFO - 12:59:21: | thick_panels |      1      | (3.2645368413367506+0j) |      20     | float |
    INFO - 12:59:21: +--------------+-------------+-------------------------+-------------+-------+
    INFO - 12:59:21: *** MDO Scenario run terminated in 0:00:00.013046 ***
    INFO - 12:59:21: Optimization:  86%|████████▌ | 6/7 [00:00<00:00, 29.55 it/sec, obj=4.51e+3]
    INFO - 12:59:21:
    INFO - 12:59:21: *** Start MDO Scenario execution ***
    INFO - 12:59:21: MDOScenario
    INFO - 12:59:21:    Disciplines: Aerodynamics Mission
    INFO - 12:59:21:    MDOFormulation: DisciplinaryOpt
    INFO - 12:59:21:    Algorithm: NLOPT_SLSQP
    INFO - 12:59:21: Optimization problem:
    INFO - 12:59:21:    Minimize: -range(thick_airfoils)
    INFO - 12:59:21:    With respect to: thick_airfoils
    INFO - 12:59:21:    Subject to constraints:
    INFO - 12:59:21:       lift(thick_airfoils) == 0.5
    INFO - 12:59:21: Design space:
    INFO - 12:59:21: +----------------+-------------+--------+-------------+-------+
    INFO - 12:59:21: | name           | lower_bound | value  | upper_bound | type  |
    INFO - 12:59:21: +----------------+-------------+--------+-------------+-------+
    INFO - 12:59:21: | thick_airfoils |      5      | (5+0j) |      25     | float |
    INFO - 12:59:21: +----------------+-------------+--------+-------------+-------+
    INFO - 12:59:21: Optimization:   0%|          | 0/5 [00:00<?, ?it]
    INFO - 12:59:21: 
    INFO - 12:59:21: Optimization: 100%|██████████| 5/5 [00:00<00:00, 509.12 it/sec, obj=4.51e+3]
    INFO - 12:59:21: Optimization result:
    INFO - 12:59:21: Objective value = 4509.5196419107815
    INFO - 12:59:21: The result is feasible.
    INFO - 12:59:21: Status: None
    INFO - 12:59:21: Optimizer message: Maximum number of iterations reached. GEMSEO Stopped the driver
    INFO - 12:59:21: Number of calls to the objective function by the optimizer: 7
    INFO - 12:59:21: Constraints values:
    INFO - 12:59:21:    lift - 0.5 = -0.00013691254268788366
    INFO - 12:59:21: Design space:
    INFO - 12:59:21: +----------------+-------------+--------+-------------+-------+
    INFO - 12:59:21: | name           | lower_bound | value  | upper_bound | type  |
    INFO - 12:59:21: +----------------+-------------+--------+-------------+-------+
    INFO - 12:59:21: | thick_airfoils |      5      | (5+0j) |      25     | float |
    INFO - 12:59:21: +----------------+-------------+--------+-------------+-------+
    INFO - 12:59:21: *** MDO Scenario run terminated in 0:00:00.015321 ***
    INFO - 12:59:21:
    INFO - 12:59:21: *** Start MDO Scenario execution ***
    INFO - 12:59:21: MDOScenario
    INFO - 12:59:21:    Disciplines: Structure Mission
    INFO - 12:59:21:    MDOFormulation: DisciplinaryOpt
    INFO - 12:59:21:    Algorithm: NLOPT_SLSQP
    INFO - 12:59:21: Optimization problem:
    INFO - 12:59:21:    Minimize: -range(thick_panels)
    INFO - 12:59:21:    With respect to: thick_panels
    INFO - 12:59:21:    Subject to constraints:
    INFO - 12:59:21:       reserve_fact(thick_panels) <= 0.5
    INFO - 12:59:21: Design space:
    INFO - 12:59:21: +--------------+-------------+-------------------------+-------------+-------+
    INFO - 12:59:21: | name         | lower_bound |          value          | upper_bound | type  |
    INFO - 12:59:21: +--------------+-------------+-------------------------+-------------+-------+
    INFO - 12:59:21: | thick_panels |      1      | (3.2645368413367506+0j) |      20     | float |
    INFO - 12:59:21: +--------------+-------------+-------------------------+-------------+-------+
    INFO - 12:59:21: Optimization:   0%|          | 0/5 [00:00<?, ?it]
    INFO - 12:59:21: 
    INFO - 12:59:21: Optimization:  80%|████████  | 4/5 [00:00<00:00, 645.85 it/sec, obj=4.51e+3]
    INFO - 12:59:21: Optimization result:
    INFO - 12:59:21: Objective value = 4509.58328735659
    INFO - 12:59:21: The result is feasible.
    INFO - 12:59:21: Status: None
    INFO - 12:59:21: Optimizer message: Successive iterates of the objective function are closer than ftol_rel or ftol_abs. GEMSEO Stopped the driver
    INFO - 12:59:21: Number of calls to the objective function by the optimizer: 5
    INFO - 12:59:21: Constraints values:
    INFO - 12:59:21:    reserve_fact - 0.5 = 6.781846195735852e-10
    INFO - 12:59:21: Design space:
    INFO - 12:59:21: +--------------+-------------+-------------------------+-------------+-------+
    INFO - 12:59:21: | name         | lower_bound |          value          | upper_bound | type  |
    INFO - 12:59:21: +--------------+-------------+-------------------------+-------------+-------+
    INFO - 12:59:21: | thick_panels |      1      | (3.2250214265766473+0j) |      20     | float |
    INFO - 12:59:21: +--------------+-------------+-------------------------+-------------+-------+
    INFO - 12:59:21: *** MDO Scenario run terminated in 0:00:00.012974 ***
    INFO - 12:59:21: Optimization: 100%|██████████| 7/7 [00:00<00:00, 25.14 it/sec, obj=4.51e+3]
    INFO - 12:59:21: Optimization result:
    INFO - 12:59:21: Objective value = 4509.243436170918
    INFO - 12:59:21: The result is feasible.
    INFO - 12:59:21: Status: None
    INFO - 12:59:21: Optimizer message: Maximum number of iterations reached. GEMSEO Stopped the driver
    INFO - 12:59:21: Number of calls to the objective function by the optimizer: 9
    INFO - 12:59:21: Constraints values:
    INFO - 12:59:21:    lift - 0.5 = 5.555555621938879e-05
    INFO - 12:59:21:    reserve_fact - 0.5 = -0.1583333321544771
    INFO - 12:59:21: Design space:
    INFO - 12:59:21: +-------+-------------+---------+-------------+-------+
    INFO - 12:59:21: | name  | lower_bound |  value  | upper_bound | type  |
    INFO - 12:59:21: +-------+-------------+---------+-------------+-------+
    INFO - 12:59:21: | sweep |      10     | (25+0j) |      35     | float |
    INFO - 12:59:21: +-------+-------------+---------+-------------+-------+
    INFO - 12:59:21: *** MDO Scenario run terminated in 0:00:00.284659 ***

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

Gallery generated by Sphinx-Gallery