Realizations and equilibria from structured decouplings #
Cslib.LinearAlgebra.SparseDecouplingCert certifies an index-one decoupling in Schur form,
T E U = [[E₁₁, 0], [0, 0]], T F U = [[F₁₁, F₁₂], [F₂₁, F₂₂]], F₂₂ K = F₂₁, without ever
forming P and Q (DescriptorSystem.IndexOneDecoupling.ofSchur). This file adds the input
and output maps of the reduced system and a sparse equilibrium check, so that a structured
certificate gives the same proper realization ẋ = A x + B u, y - y₀ = C x + D u as a dense
Cslib.LinearAlgebra.DecouplingCert (DecouplingCert.realization_toDecoupling).
For the decoupling of ofSchur, the blocks of P and Q are
P₁ = E₁₁⁻¹ (T₁ - F₁₂ F₂₂⁻¹ T₂), P₂ = F₂₂⁻¹ T₂, Q₁ = U₁ - U₂ K, Q₂ = U₂,
with T₁, T₂ the first k and the last r rows of T and U₁, U₂ the first k and the
last r columns of U (DescriptorSystem.IndexOneDecoupling.P₁_ofSchur, P₂_ofSchur,
Q₁_ofSchur, Q₂_ofSchur, in CslibFrontier.Foundations.Analysis.ODE.Descriptor). The input
matrix B = P₁ G and the algebraic response P₂ G again involve inverses. A
Cslib.LinearAlgebra.SparseRealizationCert supplies them as sparse solutions instead,
W = P₂ G and B = P₁ G, and its checker SparseRealizationCert.check verifies, with sparse
rational products,
F₂₂ W = T₂ G and E₁₁ B = T₁ G - F₁₂ W,
which give P₂ G = W and P₁ G = B (DescriptorSystem.IndexOneDecoupling.P₂_G_B_ofSchur).
Given these, everything else is a product of checked sparse rows, computed rather than
supplied: for output rows H, the reconstruction z = z₀ + Q₁ x - (U₂ W) u with
Q₁ = U₁ - U₂ K (SparseDecouplingCert.stateRows, SparseRealizationCert.inputRows), the
output matrix C = H Q₁ and the direct feedthrough D = -H U₂ W
(SparseRealizationCert.realization_toDecoupling).
isEquilibriumSparse checks F z₀ + b = 0 for sparse rows of F with one sparse product
(isEquilibrium_of_isEquilibriumSparse), instead of the dense row products of
isEquilibriumRows.
Main definitions #
Cslib.LinearAlgebra.SparseRealizationCert,SparseRealizationCert.check.Cslib.LinearAlgebra.SparseDecouplingCert.stateRows,Cslib.LinearAlgebra.SparseRealizationCert.inputRows,outputRows,feedthroughRows.Cslib.LinearAlgebra.isEquilibriumSparse.
Main results #
Rows of the block transforms #
The first k rows of a split matrix, read from sparse rows.
The last r rows of a split matrix, read from sparse rows.
The first k columns of a split matrix, read from sparse rows.
The last r columns of a split matrix, read from sparse rows.
Realizations #
N × k: the sparse rows of Q₁ = U₁ - U₂ K, the unknowns from the differential
coordinates.
The unknowns of an accepted decoupling from its differential coordinates are
Q₁ = U₁ - U₂ K.
Whether e gives the input maps of the decoupling d for the input matrix G, given by
sparse rows with at most N rows.
N × m: the sparse rows of Q₂ P₂ G = U₂ W, the response of the unknowns to the input.
p × m: the direct feedthrough D = -H Q₂ P₂ G for output rows H.
The input maps of an accepted structured decoupling. Q₂ P₂ G is the matrix of
inputRows and the input matrix P₁ G of the reduced system is the matrix of e.B.
The checked proper realization of a structured decoupling. For an accepted structured
decoupling d with accepted input data e and output rows H, the realization
ẋ = A x + B u, y = C x + D u of DescriptorSystem.IndexOneDecoupling.realization has the
matrices of d.A, e.B, outputRows (C = H Q₁) and feedthroughRows (D = -H Q₂ P₂ G).
Equilibria #
Soundness of the sparse equilibrium check.