.Modelica_LinearSystems2.WorkInProgress.Tests.care.care5

Information

Example 5 from Benner benchmarks

Interface

function care5
  extends Modelica.Icons.Function;
  import MatricesMSL = Modelica.Math.Matrices;
  import Modelica_LinearSystems2.Math.Matrices;
  input String outputFile = "";
  output Real X1[9, 9] = Matrices.care(A, B, R, Q, false);
  output Real X2[9, 9] = Matrices.care(A, B, R, Q, true);
  output Real X3[9, 9] = [1.8813417073612682e+000, 3.9350887811241636e-001, 3.0066821723622605e-001, -5.6646472831415537e-002, -1.3921476885988587e-001, -4.0430720912527553e-003, -2.0593909138650463e-004, -3.2846155476217977e-002, -2.5012667587779286e-002; 3.9350887811241636e-001, 2.4445142440433059e+000, 2.9761009646012448e-001, 1.1904010124814599e-001, -1.4000314732846808e-001, 8.6371528201907403e-003, 3.3855145579537928e-004, 7.6337899432566164e-002, 6.9126140585845194e-002; 3.0066821723622605e-001, 2.9761009646012448e-001, 2.5625289349920533e-001, 3.5608619331945784e-002, -7.0291882601897213e-002, -2.9479293666103855e-004, -2.7109320576564369e-005, -1.5876949090013865e-003, 6.6183235965156960e-004; -5.6646472831415537e-002, 1.1904010124814599e-001, 3.5608619331945784e-002, 1.2531244600262245e-001, -4.4098271439652045e-002, 2.8906009190787904e-004, 1.1585504034027231e-006, 3.3312522262940710e-003, 5.3504545840022469e-003; -1.3921476885988587e-001, -1.4000314732846808e-001, -7.0291882601897213e-002, -4.4098271439652045e-002, 5.0544674045016849e-002, 2.7384271164510657e-003, 5.1877285822234109e-004, 6.6383915326013159e-003, 5.1811830100945500e-003; -4.0430720912527553e-003, 8.6371528201907403e-003, -2.9479293666103855e-004, 2.8906009190787904e-004, 2.7384271164510657e-003, 4.4145119317543710e-003, 1.0990456156319732e-003, 3.6333616685830985e-003, 1.1417260453168568e-003; -2.0593909138650463e-004, 3.3855145579537928e-004, -2.7109320576564369e-005, 1.1585504034027231e-006, 5.1877285822234109e-004, 1.0990456156319732e-003, 3.3967389367722083e-003, 3.3327489291592403e-004, 5.9658514141889494e-005; -3.2846155476217977e-002, 7.6337899432566164e-002, -1.5876949090013865e-003, 3.3312522262940710e-003, 6.6383915326013159e-003, 3.6333616685830985e-003, 3.3327489291592403e-004, 2.8282052511283625e-002, 1.0661764834431937e-002; -2.5012667587779286e-002, 6.9126140585845194e-002, 6.6183235965156960e-004, 5.3504545840022469e-003, 5.1811830100945500e-003, 1.1417260453168568e-003, 5.9658514141889494e-005, 1.0661764834431937e-002, 2.1907727243964663e-002];
  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 care5;

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