You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# The reference cited in MatrixEquations.ared, W.F. Arnold, III and A.J. Laub, Generalized Eigenproblem Algorithms and Software for Algebraic Riccati Equations
196
197
# defines the cost function as x'Q1x + u'Q2u + 2x'Su.
197
198
# The Δu term expands to u+'Q2u + u'Q2u - 2u Q3 u+, so the factor 2 is already accounted for
198
199
Pd =add_input_differentiator(P)
199
200
S =zeros(Pd.nx, P.nu)
200
201
S[P.nx+1:end, :] =-Q3
201
202
X, _, L = MatrixEquations.ared(Pd.A, Pd.B, Q2+Q3, cat(Q1, Q3, dims=(1,2)), S) # ME has cost matrices reversed
0 commit comments