Algorithm to assign p (p = 1 or 2) eigenvalues
encapsulated function assignOneOrTwoPoles_alpha import Modelica; import Complex; import Modelica_LinearSystems2; import Modelica_LinearSystems2.Math.Vectors; input Real F[:, size(F, 1)] "System matrix of order p=1 or p=2"; input Real G[size(F, 1), :] "Control input matrix p rows"; input Complex gamma[size(F, 1)]; input Real tolerance = Modelica.Constants.eps; output Real K[:, size(F, 1)] "Feedback matrix p columns"; end assignOneOrTwoPoles_alpha;