Skip to main content

solve_discrete_are

Function solve_discrete_are 

Source
pub fn solve_discrete_are<T: Scalar, S1: Data<Elem = T>, S2: Data<Elem = T>, S3: Data<Elem = T>, S4: Data<Elem = T>>(
    a: &ArrayBase<S1, Ix2>,
    b: &ArrayBase<S2, Ix2>,
    q: &ArrayBase<S3, Ix2>,
    r: &ArrayBase<S4, Ix2>,
) -> Result<Array2<T>>
Expand description

Solves the discrete algebraic Riccati equation Aᴴ X A − X − Aᴴ X B (R + Bᴴ X B)⁻¹ Bᴴ X A + Q = 0 for the stabilising solution (SciPy’s linalg.solve_discrete_are, without its e and s options), for which A − B K with K = (R + Bᴴ X B)⁻¹ Bᴴ X A has all its eigenvalues inside the unit circle.

The structure-preserving doubling algorithm (Chu, Fan, Lin and Wang 2004) starts from A₀ = A, G₀ = B R⁻¹ Bᴴ, H₀ = Q and iterates A ← A (I + G H)⁻¹ A, G ← G + A (I + G H)⁻¹ G Aᴴ, H ← H + Aᴴ H (I + G H)⁻¹ A; H converges quadratically to X, which is then polished by Newton (Hewer) steps, each a discrete Lyapunov equation. Requires (A, B) stabilisable and no eigenvalues of the symplectic pencil on the unit circle; A need not be invertible.