.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "examples/scenario/plot_doe_scenario.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_examples_scenario_plot_doe_scenario.py: Create a DOE Scenario ===================== .. GENERATED FROM PYTHON SOURCE LINES 26-35 .. code-block:: Python from __future__ import annotations from gemseo import create_design_space from gemseo import create_discipline from gemseo import create_scenario from gemseo import get_available_doe_algorithms from gemseo import get_available_post_processings .. GENERATED FROM PYTHON SOURCE LINES 36-57 Let :math:`(P)` be a simple optimization problem: .. math:: (P) = \left\{ \begin{aligned} & \underset{x\in\mathbb{N}^2}{\text{minimize}} & & f(x) = x_1 + x_2 \\ & \text{subject to} & & -5 \leq x \leq 5 \end{aligned} \right. In this example, we will see how to use |g| to solve this problem :math:`(P)` by means of a Design Of Experiments (DOE) Define the discipline --------------------- Firstly, by means of the :func:`.create_discipline` API function, we create an :class:`.Discipline` of :class:`.AnalyticDiscipline` type from a Python function: .. GENERATED FROM PYTHON SOURCE LINES 58-62 .. code-block:: Python expressions = {"y": "x1+x2"} discipline = create_discipline("AnalyticDiscipline", expressions=expressions) .. GENERATED FROM PYTHON SOURCE LINES 63-71 Now, we want to minimize this :class:`.Discipline` over a design of experiments (DOE). Define the design space ----------------------- For that, by means of the :func:`.create_design_space` API function, we define the :class:`.DesignSpace` :math:`[-5, 5]\times[-5, 5]` by using its :meth:`.DesignSpace.add_variable` method. .. GENERATED FROM PYTHON SOURCE LINES 71-76 .. code-block:: Python design_space = create_design_space() design_space.add_variable("x1", lower_bound=-5, upper_bound=5, type_="integer") design_space.add_variable("x2", lower_bound=-5, upper_bound=5, type_="integer") .. GENERATED FROM PYTHON SOURCE LINES 77-82 Define the DOE scenario ----------------------- Then, by means of the :func:`.create_scenario` API function, we define a :class:`.DOEScenario` from the :class:`.Discipline` and the :class:`.DesignSpace` defined above: .. GENERATED FROM PYTHON SOURCE LINES 82-91 .. code-block:: Python scenario = create_scenario( discipline, "y", design_space, scenario_type="DOE", formulation_name="DisciplinaryOpt", ) .. GENERATED FROM PYTHON SOURCE LINES 92-94 Note that the formulation settings passed to :func:`.create_scenario` can be provided via a Pydantic model. For more information, see :ref:`formulation_settings`. .. GENERATED FROM PYTHON SOURCE LINES 96-103 Execute the DOE scenario ------------------------ Lastly, we solve the :class:`.OptimizationProblem` included in the :class:`.DOEScenario` defined above by minimizing the objective function over a design of experiments included in the :class:`.DesignSpace`. Precisely, we choose a `full factorial design `_ of size :math:`11^2`: .. GENERATED FROM PYTHON SOURCE LINES 103-106 .. code-block:: Python scenario.execute(algo_name="PYDOE_FULLFACT", n_samples=11**2) .. rst-class:: sphx-glr-script-out .. code-block:: none INFO - 16:25:11: *** Start DOEScenario execution *** INFO - 16:25:11: DOEScenario INFO - 16:25:11: Disciplines: AnalyticDiscipline INFO - 16:25:11: MDO formulation: DisciplinaryOpt INFO - 16:25:11: Optimization problem: INFO - 16:25:11: minimize y(x1, x2) INFO - 16:25:11: with respect to x1, x2 INFO - 16:25:11: over the design space: INFO - 16:25:11: +------+-------------+-------+-------------+---------+ INFO - 16:25:11: | Name | Lower bound | Value | Upper bound | Type | INFO - 16:25:11: +------+-------------+-------+-------------+---------+ INFO - 16:25:11: | x1 | -5 | None | 5 | integer | INFO - 16:25:11: | x2 | -5 | None | 5 | integer | INFO - 16:25:11: +------+-------------+-------+-------------+---------+ INFO - 16:25:11: Solving optimization problem with algorithm PYDOE_FULLFACT: INFO - 16:25:11: 1%| | 1/121 [00:00<00:00, 545.07 it/sec, feas=True, obj=-10] INFO - 16:25:11: 2%|▏ | 2/121 [00:00<00:00, 926.00 it/sec, feas=True, obj=-9] INFO - 16:25:11: 2%|▏ | 3/121 [00:00<00:00, 1240.06 it/sec, feas=True, obj=-8] INFO - 16:25:11: 3%|▎ | 4/121 [00:00<00:00, 1492.37 it/sec, feas=True, obj=-7] INFO - 16:25:11: 4%|▍ | 5/121 [00:00<00:00, 1709.45 it/sec, feas=True, obj=-6] INFO - 16:25:11: 5%|▍ | 6/121 [00:00<00:00, 1901.17 it/sec, feas=True, obj=-5] INFO - 16:25:11: 6%|▌ | 7/121 [00:00<00:00, 2074.33 it/sec, feas=True, obj=-4] INFO - 16:25:11: 7%|▋ | 8/121 [00:00<00:00, 2216.72 it/sec, feas=True, obj=-3] INFO - 16:25:11: 7%|▋ | 9/121 [00:00<00:00, 2343.33 it/sec, feas=True, obj=-2] INFO - 16:25:11: 8%|▊ | 10/121 [00:00<00:00, 2466.22 it/sec, feas=True, obj=-1] INFO - 16:25:11: 9%|▉ | 11/121 [00:00<00:00, 2579.23 it/sec, feas=True, obj=0] INFO - 16:25:11: 10%|▉ | 12/121 [00:00<00:00, 2681.78 it/sec, feas=True, obj=-9] INFO - 16:25:11: 11%|█ | 13/121 [00:00<00:00, 2760.67 it/sec, feas=True, obj=-8] INFO - 16:25:11: 12%|█▏ | 14/121 [00:00<00:00, 2842.22 it/sec, feas=True, obj=-7] INFO - 16:25:11: 12%|█▏ | 15/121 [00:00<00:00, 2916.76 it/sec, feas=True, obj=-6] INFO - 16:25:11: 13%|█▎ | 16/121 [00:00<00:00, 2987.66 it/sec, feas=True, obj=-5] INFO - 16:25:11: 14%|█▍ | 17/121 [00:00<00:00, 3053.02 it/sec, feas=True, obj=-4] INFO - 16:25:11: 15%|█▍ | 18/121 [00:00<00:00, 3102.17 it/sec, feas=True, obj=-3] INFO - 16:25:11: 16%|█▌ | 19/121 [00:00<00:00, 3159.61 it/sec, feas=True, obj=-2] INFO - 16:25:11: 17%|█▋ | 20/121 [00:00<00:00, 3215.63 it/sec, feas=True, obj=-1] INFO - 16:25:11: 17%|█▋ | 21/121 [00:00<00:00, 3269.62 it/sec, feas=True, obj=0] INFO - 16:25:11: 18%|█▊ | 22/121 [00:00<00:00, 3308.40 it/sec, feas=True, obj=1] INFO - 16:25:11: 19%|█▉ | 23/121 [00:00<00:00, 3351.83 it/sec, feas=True, obj=-8] INFO - 16:25:11: 20%|█▉ | 24/121 [00:00<00:00, 3397.92 it/sec, feas=True, obj=-7] INFO - 16:25:11: 21%|██ | 25/121 [00:00<00:00, 3438.63 it/sec, feas=True, obj=-6] INFO - 16:25:11: 21%|██▏ | 26/121 [00:00<00:00, 3479.20 it/sec, feas=True, obj=-5] INFO - 16:25:11: 22%|██▏ | 27/121 [00:00<00:00, 3509.33 it/sec, feas=True, obj=-4] INFO - 16:25:11: 23%|██▎ | 28/121 [00:00<00:00, 3533.64 it/sec, feas=True, obj=-3] INFO - 16:25:11: 24%|██▍ | 29/121 [00:00<00:00, 3565.02 it/sec, feas=True, obj=-2] INFO - 16:25:11: 25%|██▍ | 30/121 [00:00<00:00, 3596.56 it/sec, feas=True, obj=-1] INFO - 16:25:11: 26%|██▌ | 31/121 [00:00<00:00, 3627.89 it/sec, feas=True, obj=0] INFO - 16:25:11: 26%|██▋ | 32/121 [00:00<00:00, 3648.41 it/sec, feas=True, obj=1] INFO - 16:25:11: 27%|██▋ | 33/121 [00:00<00:00, 3676.38 it/sec, feas=True, obj=2] INFO - 16:25:11: 28%|██▊ | 34/121 [00:00<00:00, 3699.54 it/sec, feas=True, obj=-7] INFO - 16:25:11: 29%|██▉ | 35/121 [00:00<00:00, 3724.86 it/sec, feas=True, obj=-6] INFO - 16:25:11: 30%|██▉ | 36/121 [00:00<00:00, 3743.34 it/sec, feas=True, obj=-5] INFO - 16:25:11: 31%|███ | 37/121 [00:00<00:00, 3764.17 it/sec, feas=True, obj=-4] INFO - 16:25:11: 31%|███▏ | 38/121 [00:00<00:00, 3785.20 it/sec, feas=True, obj=-3] INFO - 16:25:11: 32%|███▏ | 39/121 [00:00<00:00, 3805.82 it/sec, feas=True, obj=-2] INFO - 16:25:11: 33%|███▎ | 40/121 [00:00<00:00, 3825.87 it/sec, feas=True, obj=-1] INFO - 16:25:11: 34%|███▍ | 41/121 [00:00<00:00, 3838.11 it/sec, feas=True, obj=0] INFO - 16:25:11: 35%|███▍ | 42/121 [00:00<00:00, 3855.06 it/sec, feas=True, obj=1] INFO - 16:25:11: 36%|███▌ | 43/121 [00:00<00:00, 3872.69 it/sec, feas=True, obj=2] INFO - 16:25:11: 36%|███▋ | 44/121 [00:00<00:00, 3891.56 it/sec, feas=True, obj=3] INFO - 16:25:11: 37%|███▋ | 45/121 [00:00<00:00, 3909.92 it/sec, feas=True, obj=-6] INFO - 16:25:11: 38%|███▊ | 46/121 [00:00<00:00, 3920.07 it/sec, feas=True, obj=-5] INFO - 16:25:11: 39%|███▉ | 47/121 [00:00<00:00, 3935.40 it/sec, feas=True, obj=-4] INFO - 16:25:11: 40%|███▉ | 48/121 [00:00<00:00, 3952.00 it/sec, feas=True, obj=-3] INFO - 16:25:11: 40%|████ | 49/121 [00:00<00:00, 3968.27 it/sec, feas=True, obj=-2] INFO - 16:25:11: 41%|████▏ | 50/121 [00:00<00:00, 3983.95 it/sec, feas=True, obj=-1] INFO - 16:25:11: 42%|████▏ | 51/121 [00:00<00:00, 3992.34 it/sec, feas=True, obj=0] INFO - 16:25:11: 43%|████▎ | 52/121 [00:00<00:00, 4006.02 it/sec, feas=True, obj=1] INFO - 16:25:11: 44%|████▍ | 53/121 [00:00<00:00, 4016.23 it/sec, feas=True, obj=2] INFO - 16:25:11: 45%|████▍ | 54/121 [00:00<00:00, 4030.76 it/sec, feas=True, obj=3] INFO - 16:25:11: 45%|████▌ | 55/121 [00:00<00:00, 4041.04 it/sec, feas=True, obj=4] INFO - 16:25:11: 46%|████▋ | 56/121 [00:00<00:00, 4052.75 it/sec, feas=True, obj=-5] INFO - 16:25:11: 47%|████▋ | 57/121 [00:00<00:00, 4065.49 it/sec, feas=True, obj=-4] INFO - 16:25:11: 48%|████▊ | 58/121 [00:00<00:00, 4078.76 it/sec, feas=True, obj=-3] INFO - 16:25:11: 49%|████▉ | 59/121 [00:00<00:00, 4090.99 it/sec, feas=True, obj=-2] INFO - 16:25:11: 50%|████▉ | 60/121 [00:00<00:00, 4071.35 it/sec, feas=True, obj=-1] INFO - 16:25:11: 50%|█████ | 61/121 [00:00<00:00, 4077.53 it/sec, feas=True, obj=0] INFO - 16:25:11: 51%|█████ | 62/121 [00:00<00:00, 4086.60 it/sec, feas=True, obj=1] INFO - 16:25:11: 52%|█████▏ | 63/121 [00:00<00:00, 4097.27 it/sec, feas=True, obj=2] INFO - 16:25:11: 53%|█████▎ | 64/121 [00:00<00:00, 4107.78 it/sec, feas=True, obj=3] INFO - 16:25:11: 54%|█████▎ | 65/121 [00:00<00:00, 4110.64 it/sec, feas=True, obj=4] INFO - 16:25:11: 55%|█████▍ | 66/121 [00:00<00:00, 4119.28 it/sec, feas=True, obj=5] INFO - 16:25:11: 55%|█████▌ | 67/121 [00:00<00:00, 4128.25 it/sec, feas=True, obj=-4] INFO - 16:25:11: 56%|█████▌ | 68/121 [00:00<00:00, 4138.68 it/sec, feas=True, obj=-3] INFO - 16:25:11: 57%|█████▋ | 69/121 [00:00<00:00, 4143.15 it/sec, feas=True, obj=-2] INFO - 16:25:11: 58%|█████▊ | 70/121 [00:00<00:00, 4132.14 it/sec, feas=True, obj=-1] INFO - 16:25:11: 59%|█████▊ | 71/121 [00:00<00:00, 4135.65 it/sec, feas=True, obj=0] INFO - 16:25:11: 60%|█████▉ | 72/121 [00:00<00:00, 4143.32 it/sec, feas=True, obj=1] INFO - 16:25:11: 60%|██████ | 73/121 [00:00<00:00, 4152.27 it/sec, feas=True, obj=2] INFO - 16:25:11: 61%|██████ | 74/121 [00:00<00:00, 4155.39 it/sec, feas=True, obj=3] INFO - 16:25:11: 62%|██████▏ | 75/121 [00:00<00:00, 4163.94 it/sec, feas=True, obj=4] INFO - 16:25:11: 63%|██████▎ | 76/121 [00:00<00:00, 4173.27 it/sec, feas=True, obj=5] INFO - 16:25:11: 64%|██████▎ | 77/121 [00:00<00:00, 4181.81 it/sec, feas=True, obj=6] INFO - 16:25:11: 64%|██████▍ | 78/121 [00:00<00:00, 4186.95 it/sec, feas=True, obj=-3] INFO - 16:25:11: 65%|██████▌ | 79/121 [00:00<00:00, 4194.25 it/sec, feas=True, obj=-2] INFO - 16:25:11: 66%|██████▌ | 80/121 [00:00<00:00, 4202.92 it/sec, feas=True, obj=-1] INFO - 16:25:11: 67%|██████▋ | 81/121 [00:00<00:00, 4210.42 it/sec, feas=True, obj=0] INFO - 16:25:11: 68%|██████▊ | 82/121 [00:00<00:00, 4218.69 it/sec, feas=True, obj=1] INFO - 16:25:11: 69%|██████▊ | 83/121 [00:00<00:00, 4223.31 it/sec, feas=True, obj=2] INFO - 16:25:11: 69%|██████▉ | 84/121 [00:00<00:00, 4230.26 it/sec, feas=True, obj=3] INFO - 16:25:11: 70%|███████ | 85/121 [00:00<00:00, 4237.63 it/sec, feas=True, obj=4] INFO - 16:25:11: 71%|███████ | 86/121 [00:00<00:00, 4244.80 it/sec, feas=True, obj=5] INFO - 16:25:11: 72%|███████▏ | 87/121 [00:00<00:00, 4251.78 it/sec, feas=True, obj=6] INFO - 16:25:11: 73%|███████▎ | 88/121 [00:00<00:00, 4254.94 it/sec, feas=True, obj=7] INFO - 16:25:11: 74%|███████▎ | 89/121 [00:00<00:00, 4261.14 it/sec, feas=True, obj=-2] INFO - 16:25:11: 74%|███████▍ | 90/121 [00:00<00:00, 4268.09 it/sec, feas=True, obj=-1] INFO - 16:25:11: 75%|███████▌ | 91/121 [00:00<00:00, 4273.48 it/sec, feas=True, obj=0] INFO - 16:25:11: 76%|███████▌ | 92/121 [00:00<00:00, 4280.71 it/sec, feas=True, obj=1] INFO - 16:25:11: 77%|███████▋ | 93/121 [00:00<00:00, 4283.99 it/sec, feas=True, obj=2] INFO - 16:25:11: 78%|███████▊ | 94/121 [00:00<00:00, 4290.19 it/sec, feas=True, obj=3] INFO - 16:25:11: 79%|███████▊ | 95/121 [00:00<00:00, 4297.03 it/sec, feas=True, obj=4] INFO - 16:25:11: 79%|███████▉ | 96/121 [00:00<00:00, 4303.87 it/sec, feas=True, obj=5] INFO - 16:25:11: 80%|████████ | 97/121 [00:00<00:00, 4310.28 it/sec, feas=True, obj=6] INFO - 16:25:11: 81%|████████ | 98/121 [00:00<00:00, 4313.23 it/sec, feas=True, obj=7] INFO - 16:25:11: 82%|████████▏ | 99/121 [00:00<00:00, 4319.30 it/sec, feas=True, obj=8] INFO - 16:25:11: 83%|████████▎ | 100/121 [00:00<00:00, 4325.18 it/sec, feas=True, obj=-1] INFO - 16:25:11: 83%|████████▎ | 101/121 [00:00<00:00, 4330.17 it/sec, feas=True, obj=0] INFO - 16:25:11: 84%|████████▍ | 102/121 [00:00<00:00, 4336.78 it/sec, feas=True, obj=1] INFO - 16:25:11: 85%|████████▌ | 103/121 [00:00<00:00, 4338.88 it/sec, feas=True, obj=2] INFO - 16:25:11: 86%|████████▌ | 104/121 [00:00<00:00, 4344.31 it/sec, feas=True, obj=3] INFO - 16:25:11: 87%|████████▋ | 105/121 [00:00<00:00, 4350.25 it/sec, feas=True, obj=4] INFO - 16:25:11: 88%|████████▊ | 106/121 [00:00<00:00, 4356.27 it/sec, feas=True, obj=5] INFO - 16:25:11: 88%|████████▊ | 107/121 [00:00<00:00, 4362.27 it/sec, feas=True, obj=6] INFO - 16:25:11: 89%|████████▉ | 108/121 [00:00<00:00, 4363.51 it/sec, feas=True, obj=7] INFO - 16:25:11: 90%|█████████ | 109/121 [00:00<00:00, 4368.06 it/sec, feas=True, obj=8] INFO - 16:25:11: 91%|█████████ | 110/121 [00:00<00:00, 4372.13 it/sec, feas=True, obj=9] INFO - 16:25:11: 92%|█████████▏| 111/121 [00:00<00:00, 4376.87 it/sec, feas=True, obj=0] INFO - 16:25:11: 93%|█████████▎| 112/121 [00:00<00:00, 4382.23 it/sec, feas=True, obj=1] INFO - 16:25:11: 93%|█████████▎| 113/121 [00:00<00:00, 4383.13 it/sec, feas=True, obj=2] INFO - 16:25:11: 94%|█████████▍| 114/121 [00:00<00:00, 4387.87 it/sec, feas=True, obj=3] INFO - 16:25:11: 95%|█████████▌| 115/121 [00:00<00:00, 4392.06 it/sec, feas=True, obj=4] INFO - 16:25:11: 96%|█████████▌| 116/121 [00:00<00:00, 4396.43 it/sec, feas=True, obj=5] INFO - 16:25:11: 97%|█████████▋| 117/121 [00:00<00:00, 4401.00 it/sec, feas=True, obj=6] INFO - 16:25:11: 98%|█████████▊| 118/121 [00:00<00:00, 4401.78 it/sec, feas=True, obj=7] INFO - 16:25:11: 98%|█████████▊| 119/121 [00:00<00:00, 4405.82 it/sec, feas=True, obj=8] INFO - 16:25:11: 99%|█████████▉| 120/121 [00:00<00:00, 4410.22 it/sec, feas=True, obj=9] INFO - 16:25:11: 100%|██████████| 121/121 [00:00<00:00, 4370.95 it/sec, feas=True, obj=10] INFO - 16:25:11: Optimization result: INFO - 16:25:11: Optimizer info: INFO - 16:25:11: Status: None INFO - 16:25:11: Message: None INFO - 16:25:11: Solution: INFO - 16:25:11: Objective: -10.0 INFO - 16:25:11: Design space: INFO - 16:25:11: +------+-------------+-------+-------------+---------+ INFO - 16:25:11: | Name | Lower bound | Value | Upper bound | Type | INFO - 16:25:11: +------+-------------+-------+-------------+---------+ INFO - 16:25:11: | x1 | -5 | -5 | 5 | integer | INFO - 16:25:11: | x2 | -5 | -5 | 5 | integer | INFO - 16:25:11: +------+-------------+-------+-------------+---------+ INFO - 16:25:11: *** End DOEScenario execution *** .. GENERATED FROM PYTHON SOURCE LINES 107-109 Note that the algorithm settings passed to :meth:`~.BaseDriverLibrary.execute` can be provided via a Pydantic model. For more information, see :ref:`algorithm_settings`. .. GENERATED FROM PYTHON SOURCE LINES 111-113 The optimum results can be found in the execution log. It is also possible to access them with :attr:`.Scenario.optimization_result`: .. GENERATED FROM PYTHON SOURCE LINES 113-117 .. code-block:: Python optimization_result = scenario.optimization_result f"The solution of P is (x*, f(x*)) = ({optimization_result.x_opt}, {optimization_result.f_opt})" .. rst-class:: sphx-glr-script-out .. code-block:: none 'The solution of P is (x*, f(x*)) = ([-5. -5.], -10.0)' .. GENERATED FROM PYTHON SOURCE LINES 118-121 Available DOE algorithms ------------------------ In order to get the list of available DOE algorithms, use: .. GENERATED FROM PYTHON SOURCE LINES 121-123 .. code-block:: Python get_available_doe_algorithms() .. rst-class:: sphx-glr-script-out .. code-block:: none ['CustomDOE', 'DiagonalDOE', 'MorrisDOE', 'OATDOE', 'OT_SOBOL', 'OT_RANDOM', 'OT_HASELGROVE', 'OT_REVERSE_HALTON', 'OT_HALTON', 'OT_FAURE', 'OT_MONTE_CARLO', 'OT_FACTORIAL', 'OT_COMPOSITE', 'OT_AXIAL', 'OT_OPT_LHS', 'OT_LHS', 'OT_LHSC', 'OT_FULLFACT', 'OT_SOBOL_INDICES', 'PYDOE_BBDESIGN', 'PYDOE_CCDESIGN', 'PYDOE_FF2N', 'PYDOE_FULLFACT', 'PYDOE_LHS', 'PYDOE_PBDESIGN', 'Halton', 'LHS', 'MC', 'PoissonDisk', 'Sobol'] .. GENERATED FROM PYTHON SOURCE LINES 124-127 Available post-processing ------------------------- In order to get the list of available post-processing algorithms, use: .. GENERATED FROM PYTHON SOURCE LINES 127-129 .. code-block:: Python get_available_post_processings() .. rst-class:: sphx-glr-script-out .. code-block:: none ['Animation', 'BasicHistory', 'ConstraintsHistory', 'Correlations', 'DataVersusModel', 'GradientSensitivity', 'HessianHistory', 'ObjConstrHist', 'OptHistoryView', 'ParallelCoordinates', 'ParetoFront', 'QuadApprox', 'RadarChart', 'Robustness', 'SOM', 'ScatterPlotMatrix', 'TopologyView', 'VariableInfluence'] .. GENERATED FROM PYTHON SOURCE LINES 130-136 You can also look at the examples: .. raw:: html
Examples
.. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.036 seconds) .. _sphx_glr_download_examples_scenario_plot_doe_scenario.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_doe_scenario.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_doe_scenario.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_doe_scenario.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_