Artifact b791777adb7e458d64b9f9e94df22925b057efc523868aac29929842ba13fa67:
- File mttroot/mtt/lib/control/PPP/ppp_lin_quad.m — part of check-in [19c0c38dde] at 2003-10-21 09:30:24 on branch origin/master — Revised to work with LQ on alnalogue circuit example with integration (user: gawthrop@users.sourceforge.net, size: 483) [annotate] [blame] [check-ins using] [more...]
function [k_x,k_w,K_x,K_w,Us0,J_uu,J_ux,J_uw,J_xx,J_xw,J_ww,A_u] = \ ppp_lin_quad (A,B,C,D,tau,Q,R) ## usage:[k_x,k_w,K_x,K_w,Us0,J_uu,J_ux,J_uw,J_xx,J_xw,J_ww,A_u] = ## ppp_lin_quad (A,B,C,D,tau,Q,R) ## ## ## Steady-state Linear Quadratic solution ## using Algebraic Riccati equation (ARE) [P,A_u,A_w] = ppp_are (A,B,C,D,Q,R); ## PPP solution [k_x,k_w,K_x,K_w,Us0,J_uu,J_ux,J_uw,J_xx,J_xw,J_ww] = \ ppp_lin(A,B,C,D,A_u,A_w,tau,Q,R,P); endfunction