Skip to main content

place_poles

Function place_poles 

Source
pub fn place_poles(
    a: &Array2<f64>,
    b: &Array2<f64>,
    poles: &[Complex<f64>],
) -> Result<PlacedPoles, ErrorsJSL>
Expand description

A state-feedback gain K that places the eigenvalues of A − B K at poles (SciPy’s place_poles). Complex poles must come in conjugate pairs, and no pole may be repeated more often than the rank of B.

Each closed-loop eigenvector xⱼ must lie in the subspace Sⱼ where U₁ᴴ (A − λⱼ I) x = 0, with B = [U₀ U₁] [Z; 0] the QR factorisation of B; then K = Z⁻¹ U₀ᴴ (A X − X Λ) X⁻¹. With one input each Sⱼ is a line and K is unique. With several, the vectors are chosen to make X as well conditioned as possible by the method of Kautsky, Nichols and Van Dooren (KNV0): each sweep replaces every xⱼ by the projection onto Sⱼ of the direction orthogonal to all the other columns.