.Modelica_LinearSystems2.StateSpace.Analysis.eigenValues

Information

Syntax

eigenvalues = StateSpace.Analysis.eigenValues(ss)

Description

Calculate the eigenvalues of a state space system, i.e. the eigenvalues of the system matrix A of a state space system. The output is a complex vector containing the eigenvalues.

Example

  Modelica_LinearSystems2.StateSpace ss=Modelica_LinearSystems2.StateSpace(
    A=[-1,1;-1,-1],
    B=[1;1],
    C=[1,1],
    D=[0]);

  Complex eigenvalues[2];

algorithm
  eigenvalues = Modelica_LinearSystems2.StateSpace.Analysis.eigenValues(ss);
// eigenvalues = {-1 + 1*j, -1 - 1*j}

Interface

encapsulated function eigenValues
  import Modelica_LinearSystems2;
  import Modelica_LinearSystems2.StateSpace;
  import Complex;
  input StateSpace ss "State space system";
  output Complex eigvalues[size(ss.A, 1)] = Modelica_LinearSystems2.ComplexMathAdds.eigenValues(ss.A) "Eigen values of the system";
end eigenValues;

Generated at 2024-11-22T19:25:38Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos