.Modelica_LinearSystems2.DiscreteStateSpace.Design.assignPolesMI

Information

Syntax

(K, S, po, nfp, nap, nup) = DiscreteStateSpace.Design.assignPolesMI(dss, gamma, np, tol, calculateEigenvectors)

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|
F - G*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 ore two complex conjugated eigenvalues stepwise until all assigned eigenvalues are placed. Therefore, at each step i always the (two) lower right eigenvalue(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.DiscreteStateSpace dss=Modelica_LinearSystems2.DiscreteStateSpace(
    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.DiscreteStateSpace.Analysis.observabilityMatrix(dss);
// 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 assignPolesMI
  import Modelica;
  import Modelica_LinearSystems2;
  import Modelica_LinearSystems2.Math.Complex;
  import Modelica_LinearSystems2.DiscreteStateSpace;
  import Modelica_LinearSystems2.TransferFunction;
  import Modelica_LinearSystems2.Math.Matrices;
  input DiscreteStateSpace dss "state space system";
  input Complex gamma[:] = fill(Complex(0), 0) "Designed Poles";
  input Real alpha = exp(-1e10) "maximum admissible value for the moduli of the eigenvalues of A which will not be modified by the eigenvalue assignment algorithm";
  input Real tolerance = Modelica.Math.Matrices.norm(dss.A, 1)*1e-12 "The tolerance to be used in determining the controllability of (A,B)";
  input Boolean calculateEigenvectors = false "Calculate the eigenvectors X of the closed loop system when true";
  output Real K[size(dss.B, 2), size(dss.A, 1)] "State feedback matrix assigning the desired poles";
  output Real S[:, :] "Closed loop System matrix";
  output Complex po[size(dss.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(dss.A, 1), size(dss.A, 1)] "eigenvectors of the closed loop system";
end assignPolesMI;

Revisions

Date Author Comment
2010-05-31 Marcus Baur, DLR-RM Realization

Generated at 2024-04-22T18:15:51Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos