gemseo / core

analytic_discipline module

Analytic MDODiscipline based on symbolic expressions

class gemseo.core.analytic_discipline.AnalyticDiscipline(name=None, expressions_dict=None)[source]

Bases: gemseo.core.discipline.MDODiscipline

Discipline based on analytic expressions list, using the symbolic calculation sympy engine.

Automatically differentiates the expressions to obtain the Jacobian matrices.

See also

gemseo.core.discipline.MDODiscipline

abstract class defining the key concept of discipline

Constructor

Parameters
  • name – name of the discipline.

  • expressions_dict – dictionary of outputs and their expressions for instance : { ‘y_1’:’2*x**2’, ‘y_2’:’4*x**2+5+z**3’} will create a discipline with outputs y_1, y_2 and inputs x, and z.