.Modelica_LinearSystems2.WorkInProgress.Tests.care.care2

Information

Example 2 from Benner benchmarks

Interface

function care2
  extends Modelica.Icons.Function;
  import MatricesMSL = Modelica.Math.Matrices;
  import Modelica_LinearSystems2.Math.Matrices;
  input String outputFile = "";
  output Real X1[2, 2] = Matrices.care(A, B, R, Q, false);
  output Real X2[2, 2] = Matrices.care(A, B, R, Q, true);
  output Real X3[2, 2] = [9*(1 + sqrt(2)), 6*(1 + sqrt(2)); 6*(1 + sqrt(2)), 4*(1 + sqrt(2))];
  output Real ku1 = Matrices.Internal.k_care_u(A, Q, G, X1);
  output Real ku2 = Matrices.Internal.k_care_u(A, Q, G, X2);
  output Real ku3 = Matrices.Internal.k_care_u(A, Q, G, X3);
end care2;

Generated at 2024-04-28T18:16:21Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos