.Modelica_LinearSystems2.WorkInProgress.StateSpace.Design.assignPolesMI2

Information

Syntax

(K, S, po, nfp, nap, nup) = StateSpace.Design.assignPolesMI(ss, gamma, np, alpha, tol)

Description

The purpose of this function is to determine the state feedback matrix K for a given time invariant multi input state system (A,B) such that the closed-loop state matrix A-B*K has specified eigenvalues. The feedback matrix K is calculated by factorization following [1]. The algorithm modifies the eigenvalues sequentially and also allows partial eigenvalue assignment.

At the beginning of the algorithm, the feedback matrix K is set to zero (K = 0) and the matrix A is reduced to an ordered real Schur form by separating its spectrum in two parts

| F1 F3 |
F = Q*A*Q' = | |
| 0 F2 |

in such a way, that F1 contains the eigenvalues that will be retained and F3 contains the eigenvalues going to be modified. On the suggestion of [1] the eigenvalues evr to be retained are chosen as

evr = {s in C: Re(s) < -alpha, alpha > =0}

but other specification are conceivable of course.

Let

G = [G1;G2] = Q*B

with an appropriate partition according to F2. (F2, G2) has to be controllable.

If the feedback matrix K is taken in a form

K = [0, K2]

the special structure of F and K results in a closed loop state matrix

| F1 F3 − G1*K2 |
FG*K = | |
| 0 F2 − G2*K2 |

with only the eigenvalues of F2 are modified. This approach to modify separated eigenvalues is used to sequentially shift one real eigenvalue or two complex conjugated eigenvalues stepwise until all assigned eigenvalues are placed. Therefore, at each step i always the (two) lower right eingenvalue(s) are modified by an appropriate feedback matrix Ki. The matrix F - G*Ki remains in real Schur form. The assigned eigenvalue(s) is (are) then moved to another diagonal position of the real Schur form using reordering techniques F < -- Qi*F*Qi' and a new block is transferred to the lower right diagonal position. The transformations are accumulated in Qi and are also applicated to the matrices

G < - Qi*G Q < - Qi*Q

The eigenvalue(s) to be assigned at each step is (are) chosen such that the norm of each Ki is minimized [1].

Example

  Modelica_LinearSystems2.StateSpace ss=Modelica_LinearSystems2.StateSpace(
    A=[-1, 1, 1;0, 1, 1;0, 0, 1],
    B=[0; 0; 1],
    C=[0, 1, 0],
    D=[0]);

  Real Q[3,3];

algorithm
  Q := Modelica_LinearSystems2.StateSpace.Analysis.observabilityMatrix(ss);
// Q = [0, 1, 0; 0, 1, 1; 1, 1, 2]

References

 [1] Varga A. (1981):
A Schur method for pole assignment. IEEE Trans. Autom. Control, Vol. AC-26, pp. 517-519.
 

Interface

encapsulated function assignPolesMI2
  import Modelica;
  import Modelica.Utilities.Streams.print;
  import MatricesMSL = Modelica.Math.Matrices;
  import Complex;
  import Modelica_LinearSystems2;
  import Modelica_LinearSystems2.ComplexMathAdds;
  import Modelica_LinearSystems2.StateSpace;
  import Modelica_LinearSystems2.TransferFunction;
  import Modelica_LinearSystems2.Math.Matrices;
  input StateSpace ss "state space system";
  input Complex gamma[:] = fill(Complex(0), size(ss.A, 1)) "Designed Poles";
  input Integer np = size(gamma, 1) "number of given eigenvalues to assign";
  input Boolean giveEigenvalues = false "Boolean parameter to display the order of the eigenvalues";
  input Real alpha = -1e10 "maximum admissible value for real parts(continuous) or for moduli (discrete) of the eigenvalues of A which will not be modified by the eigenvalue assignment algorithm";
  input Real tolerance = MatricesMSL.norm(ss.A, 1)*1e-12 "The tolerance to be used in determining the controllability of (A,B)";
  output Real K[size(ss.B, 2), size(ss.A, 1)] "State feedback matrix assigning the desired poles";
  output Real S[:, :] "Closed loop System matrix";
  output Complex po[size(ss.A, 1)] "poles of the closed loop system";
  output Integer nfp "number of eigenvalues that are not modified with respect to alpha";
  output Integer nap "number of assigned eigenvalues";
  output Integer nup "number of uncontrollable eigenvalues";
  output Complex X[size(ss.A, 1), size(ss.A, 1)] "eigenvectors of the closed loop system";
end assignPolesMI2;

Generated at 2024-11-21T19:25:40Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos