eigenvalues = StateSpace.Analysis.eigenValues(ss)
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.
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}
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;