.Modelica_LinearSystems2.StateSpace.Analysis.observabilityMatrix

Information

Syntax

Q = StateSpace.Analysis.observabilityMatrix(ss, method)

Description

This function calculates the observability matrix

Q = [C; C*A; ...; C*A^(n-1)]

of the system

der(x) = A*x + B*u;
    y  = C*x + D*u;

Example

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

  Real Q[3,3];

algorithm
  Q := Modelica_LinearSystems2.StateSpace.Analysis.observabilityMatrix(ss);
// Q = [0, 1, 0; 0, 1, 1; 1, 1, 2]

Interface

encapsulated function observabilityMatrix
  import Modelica;
  import Modelica_LinearSystems2;
  import Modelica_LinearSystems2.StateSpace;
  input StateSpace ss "State space system";
  output Real om[size(ss.A, 1)*size(ss.C, 1), size(ss.C, 2)] "Observability matrix";
end observabilityMatrix;

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