.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "examples/api/plot_mda.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_api_plot_mda.py: MDA === In this example, we will discover the different high-level functions related to MDAs, which are the |g|' objects dedicated to the feasibility of the multidisciplinary coupling. All classes implementing MDAs inherit from :class:`.BaseMDA` which is an abstract class. .. GENERATED FROM PYTHON SOURCE LINES 30-42 .. code-block:: Python from __future__ import annotations from gemseo import configure_logger from gemseo import create_discipline from gemseo import create_mda from gemseo import get_available_mdas from gemseo import get_mda_options_schema configure_logger() .. rst-class:: sphx-glr-script-out .. code-block:: none .. GENERATED FROM PYTHON SOURCE LINES 43-48 Get available MDA ----------------- The :func:`.get_available_mdas` function returns the list of MDAs available in |g| or in external modules .. GENERATED FROM PYTHON SOURCE LINES 48-50 .. code-block:: Python get_available_mdas() .. rst-class:: sphx-glr-script-out .. code-block:: none ['MDAChain', 'MDAGSNewton', 'MDAGaussSeidel', 'MDAJacobi', 'MDANewtonRaphson', 'MDAQuasiNewton', 'MDASequential'] .. GENERATED FROM PYTHON SOURCE LINES 51-55 Get MDA options schema ---------------------- For a given MDA algorithm, e.g. ``"MDAGaussSeidel"``, we can get the options; e.g. .. GENERATED FROM PYTHON SOURCE LINES 55-57 .. code-block:: Python get_mda_options_schema("MDAGaussSeidel") .. rst-class:: sphx-glr-script-out .. code-block:: none {'$schema': 'http://json-schema.org/schema#', 'type': 'object', 'properties': {'name': {'description': 'The name to be given to the MDA. If ``None``, use the name of the class.', 'type': 'null'}, 'max_mda_iter': {'description': 'The maximum iterations number for the MDA algorithm.', 'type': 'integer'}, 'grammar_type': {'description': 'The type of the input and output grammars.', 'type': 'string'}, 'tolerance': {'description': 'The tolerance of the iterative direct coupling solver; the norm of the current residuals divided by initial residuals norm shall be lower than the tolerance to stop iterating.', 'type': 'number'}, 'linear_solver_tolerance': {'description': 'The tolerance of the linear solver in the adjoint equation.', 'type': 'number'}, 'warm_start': {'description': 'Whether the second iteration and ongoing start from the previous coupling solution.', 'type': 'boolean'}, 'use_lu_fact': {'description': 'Whether to store a LU factorization of the matrix when using adjoint/forward differentiation. to solve faster multiple RHS problem.', 'type': 'boolean'}, 'over_relax_factor': {'description': 'Deprecated, please consider using :attr:`MDA.over_relaxation_factor` instead. The relaxation coefficient, used to make the method more robust, if ``0` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_mda.py ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_