Skip to content

Commit

Permalink
Remove superfluous import od Complex
Browse files Browse the repository at this point in the history
  • Loading branch information
tobolar committed May 2, 2024
1 parent 80ede4c commit afd0478
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ protected

import Modelica.Utilities.Strings;
import Modelica.Utilities.Streams.print;
import Complex;

input Complex systemZeros[:];
input Integer nReal;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ function analysisInvariantZeros

import Modelica.Utilities.Streams.print;
import Modelica.ComplexMath.j;
import Complex;
import Modelica_LinearSystems2.StateSpace;
import Modelica_LinearSystems2.ZerosAndPoles;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ function conversionFromZerosAndPoles
import Modelica.ComplexMath.j;
import Modelica_LinearSystems2.StateSpace;
import Modelica_LinearSystems2.ZerosAndPoles;
import Complex;

protected
input ZerosAndPoles zp= ZerosAndPoles({2+0*j}, {1+0*j,2+3*j,2-3*j}, 4);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
within Modelica_LinearSystems2.Examples.StateSpace;
function designAssignPolesSISO "Example for pole placing using Ackermann's method"
extends Modelica.Icons.Function;
import Complex;

output Real k[2] "Gain vector";

Expand All @@ -11,9 +10,7 @@ function designAssignPolesSISO "Example for pole placing using Ackermann's metho
C=[1,0; 0,1],
D=[0; 0]);
protected
Complex p[2]={
Complex(-3,0),
Complex(-4,0)};
Complex p[2]={Complex(-3,0), Complex(-4,0)};
algorithm
k := Modelica_LinearSystems2.StateSpace.Design.assignPolesSI(sc, p);

Expand Down
1 change: 0 additions & 1 deletion Modelica_LinearSystems2/Internal/Eigenvalue.mo
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
within Modelica_LinearSystems2.Internal;
record Eigenvalue
"Record containing a eigen value or a pair of conjugated complex pair, respectively and additionally characteristics of the eigenvalue(s)"
// import Complex;
extends Modelica.Icons.Record;

Complex ev;
Expand Down
1 change: 0 additions & 1 deletion Modelica_LinearSystems2/Internal/PolesAndZeros.mo
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
within Modelica_LinearSystems2.Internal;
record PolesAndZeros
"Record containing poles and zeros of a system in two real vectors containing the real parts and the imaginary parts respctively"
//import Complex;
extends Modelica.Icons.Record;

Real p_real[:];
Expand Down
1 change: 0 additions & 1 deletion Modelica_LinearSystems2/Math/Matrices/Internal/carenls.mo
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ function carenls

import Modelica_LinearSystems2.Math.Matrices;
import Modelica_LinearSystems2.Math.Polynomial;
import Complex;

input Real A[:,size(A, 1)];
input Real B[size(A, 1),:];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ function findLocal_tk
extends Modelica.Icons.Function;

import Modelica.ComplexMath;
import Complex;
import Modelica_LinearSystems2.Math.Polynomial;

input Real Rk[:,size(Rk, 2)];
Expand Down
1 change: 0 additions & 1 deletion Modelica_LinearSystems2/Math/Matrices/care.mo
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ function care "Solution of continuous-time algebraic Riccati equations"
extends Modelica.Icons.Function;

import Modelica_LinearSystems2.Math.Matrices;
import Complex;

input Real A[:,size(A, 1)];
input Real B[size(A, 1),:];
Expand Down
1 change: 0 additions & 1 deletion Modelica_LinearSystems2/Math/Matrices/dare.mo
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ function dare "Solution of discrete-time algebraic Riccati equations"
import MatricesMSL = Modelica.Math.Matrices;
import Modelica.ComplexMath.j;
import Modelica_LinearSystems2.Math.Matrices;
import Complex;

input Real A[:,size(A, 1)];
input Real B[size(A, 1),:];
Expand Down

0 comments on commit afd0478

Please sign in to comment.