.Modelica_LinearSystems2.WorkInProgress.Tests.care.care1

Information

Example 1 from Benner benchmarks

Interface

function care1
  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] = [2.0, 1.0; 1.0, 2.0];
  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 care1;

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