Home > mpt > extras > auxiliary > mpt_dlqr.m

mpt_dlqr

PURPOSE ^

MPT_DLQR Linear-quadratic regulator design for discrete-time systems.

SYNOPSIS ^

function [K, P, E] = mpt_dlqr(A, B, Q, R)

DESCRIPTION ^

MPT_DLQR Linear-quadratic regulator design for discrete-time systems.

 ---------------------------------------------------------------------------
 DESCRIPTION
 ---------------------------------------------------------------------------
 Calculates the optimal gain matrix K such that the state-feedback law
 u = -K*x minimizes the cost function

           J = Sum {x'Qx + u'Ru}

 ---------------------------------------------------------------------------
 INPUT
 ---------------------------------------------------------------------------
 A, B     - Matrices defining the dynamics; x^+=A*x+B*u
 Q, R     - Weighting matrices

 ---------------------------------------------------------------------------
 OUTPUT                                                                                                    
 ---------------------------------------------------------------------------
 K        - Optimal state-feedback
 P        - Common quadratic Lyapunov function V(x)=x'Px for feedback law K
 E        - E = EIG(A - B*K)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Thu 30-Mar-2006 10:26:47 by m2html © 2003