.Modelica_LinearSystems2.WorkInProgress.Tests.care.care3

Information

Example 3 from Benner benchmarks

Interface

function care3
  extends Modelica.Icons.Function;
  import MatricesMSL = Modelica.Math.Matrices;
  import Modelica_LinearSystems2.Math.Matrices;
  input String outputFile = "";
  output Real X1[4, 4] = Matrices.care(A, B, R, Q, false);
  output Real X2[4, 4] = Matrices.care(A, B, R, Q, true);
  output Real X3[4, 4] = [1.3238595718183990, 9.0153284952164081e-001, 5.4663403916715425e-001, -1.7672385587639674; 9.0153284952164081e-001, 9.6068122262991273e-001, 4.3342816873410484e-001, -1.1989126854651069; 5.4663403916715425e-001, 4.3342816873410484e-001, 4.6054882548934967e-001, -1.3632873589876660; -1.7672385587639674, -1.1989126854651069, -1.3632873589876660, 4.4611816254580852];
  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 care3;

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