Function laypunov computes the solution X of the continuous-time Lyapunov equation
XA + A'*X = C.
using the Schur method for Lyapunov equations proposed by Bartels and Stewart [1].
function lyapunov extends Modelica.Icons.Function; import MatricesMSL = Modelica.Math.Matrices; input Real A[:, size(A, 1)]; input Real C[size(A, 1), size(A, 2)]; input Real eps = MatricesMSL.norm(A, 1)*10*Modelica.Constants.eps; output Real X[size(A, 1), size(A, 2)] "solution of the Lyapunov equation"; end lyapunov;
Date | Author | Comment |
---|---|---|
2010-05-31 | Marcus Baur, DLR-RM | Realization |