.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "examples/post_process/plot_pareto_front_binhkorn.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note Click :ref:`here ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_examples_post_process_plot_pareto_front_binhkorn.py: Pareto front on Binh and Korn problem ===================================== In this example, we illustrate the use of the :class:`.ParetoFront` plot on the Binh and Korn multi-objective problem. .. GENERATED FROM PYTHON SOURCE LINES 28-34 .. code-block:: default from gemseo.algos.doe.doe_factory import DOEFactory from gemseo.api import configure_logger from gemseo.post.post_factory import PostFactory from gemseo.problems.analytical.binh_korn import BinhKorn from matplotlib import pyplot as plt .. GENERATED FROM PYTHON SOURCE LINES 35-39 Import ------ The first step is to import some functions from the API and a method to get the design space. .. GENERATED FROM PYTHON SOURCE LINES 39-43 .. code-block:: default configure_logger() .. rst-class:: sphx-glr-script-out Out: .. code-block:: none .. GENERATED FROM PYTHON SOURCE LINES 44-47 Import the optimization problem ------------------------------- Then, we instantiate the BinkKorn optimization problem. .. GENERATED FROM PYTHON SOURCE LINES 47-50 .. code-block:: default problem = BinhKorn() .. GENERATED FROM PYTHON SOURCE LINES 51-55 Create and execute scenario --------------------------- Then, we create a Design of Experiment factory, and we request the execution a a full-factorial DOE using 100 samples .. GENERATED FROM PYTHON SOURCE LINES 55-58 .. code-block:: default doe_factory = DOEFactory() doe_factory.execute(problem, algo_name="OT_OPT_LHS", n_samples=100) .. rst-class:: sphx-glr-script-out Out: .. code-block:: none INFO - 10:02:57: Optimization problem: INFO - 10:02:57: minimize compute_binhkorn(x, y) = (4*x**2+ 4*y**2, (x-5.)**2 + (y-5.)**2) INFO - 10:02:57: with respect to x, y INFO - 10:02:57: subject to constraints: INFO - 10:02:57: ineq1(x, y): (x-5.)**2 + y**2 <= 25. <= 0.0 INFO - 10:02:57: ineq2(x, y): (x-8.)**2 + (y+3)**2 >= 7.7 <= 0.0 INFO - 10:02:57: over the design space: INFO - 10:02:57: +------+-------------+-------+-------------+-------+ INFO - 10:02:57: | name | lower_bound | value | upper_bound | type | INFO - 10:02:57: +------+-------------+-------+-------------+-------+ INFO - 10:02:57: | x | 0 | 1 | 5 | float | INFO - 10:02:57: | y | 0 | 1 | 3 | float | INFO - 10:02:57: +------+-------------+-------+-------------+-------+ INFO - 10:02:57: Solving optimization problem with algorithm OT_OPT_LHS: INFO - 10:02:57: Generation of OT_OPT_LHS DOE with OpenTURNS INFO - 10:02:57: ... 0%| | 0/100 [00:00` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_pareto_front_binhkorn.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_