Differences From Artifact [519bc8a390]:
- File mttroot/mtt/lib/control/PPP/ppp_qp.m — part of check-in [6ec2f31f7f] at 2002-08-26 10:12:55 on branch origin/master — Updated to use qp_mu (Adrian Wills/Will Heath) (user: gawthrop@users.sourceforge.net, size: 1698) [annotate] [blame] [check-ins using] [more...]
To Artifact [3e26f7769e]:
- File mttroot/mtt/lib/control/PPP/ppp_qp.m — part of check-in [63e8024414] at 2002-08-27 17:34:36 on branch origin/master — Updated for new ppp_qp (using qp_mu from Will Heath/Adrian Wills (user: gawthrop@users.sourceforge.net, size: 1718) [annotate] [blame] [check-ins using] [more...]
︙ | |||
43 44 45 46 47 48 49 50 51 52 53 54 55 56 | 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | + | [U,iterations] = qp_mu(J_uu,(J_ux*x - J_uw*W),Gamma,gamma,mu); # QP solution for weights U ##U = qp(J_uu,(J_ux*x - J_uw*W),Gamma,gamma); # QP solution for weights U ##U = pd_lcp04(J_uu,(J_ux*x - J_uw*W),Gamma,gamma); # QP solution for weights U u = Us0*U; # Control signal else # Do the unconstrained solution ## Compute the open-loop gains iterations = 0; K_w = J_uu\J_uw; K_x = J_uu\J_ux; ## Closed-loop control U = K_w*W - K_x*x; # Basis functions weights - U(t) u = Us0*U; # Control u(t) endif |
︙ |