pysolver_view.optimization.problems.lorenz module#

class pysolver_view.optimization.problems.lorenz.LorentzEquationsOpt(sigma=1.0, beta=2.0, rho=3.0)[source]#

Bases: OptimizationProblem

Implementation of the Lorentz System of Nonlinear Equations as an optimization problem

This class implements the following system of algebraic nonlinear equations:

\[\begin{split}\begin{align} \dot{x} &= \sigma(y - x) = 0\\ \dot{y} &= x(\rho - z) - y = 0\\ \dot{z} &= xy - \beta z = 0 \end{align}\end{split}\]

Where:

  • \(\sigma\) is related to the Prandtl number

  • \(\rho\) is related to the Rayleigh number

  • \(\beta\) is a geometric factor

Attributes:
sigmafloat

The Prandtl number.

betafloat

The geometric factor.

rhofloat

The Rayleigh number.

Methods

evaluate_problem(vars)`:

Evaluate the Lorentz system at a given state.

References

  • Edward N. Lorenz. “Deterministic Nonperiodic Flow”. Journal of the Atmospheric Sciences, 20(2):130-141, 1963.

fitness(vars)[source]#

Evaluate the objective function and constraints for given decision variables.

Parameters:
xarray-like

Vector of independent variables (i.e., degrees of freedom).

Returns:
array_like

Vector containing the objective function, equality constraints, and inequality constraints.

get_bounds()[source]#

Get the bounds for each decision variable (Pygmo format)

Returns:
boundstuple of lists

A tuple of two items where the first item is the list of lower bounds and the second item of the list of upper bounds for the vector of decision variables. For example, ([-2 -1], [2, 1]) indicates that the first decision variable has bounds between -2 and 2, and the second has bounds between -1 and 1.

get_nec()[source]#

Return the number of equality constraints associated with the problem.

Returns:
neqint

Number of equality constraints.

get_nic()[source]#

Return the number of inequality constraints associated with the problem.

Returns:
nineqint

Number of inequality constraints.