LQROutput - MapleSim Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

ControlDesign

  

LQROutput

  

design linear quadratic state feedback regulator (LQR) with output weighting

 

Calling Sequence

Parameters

Options

Solvability Conditions

Description

Examples

Calling Sequence

LQROutput(sys, Q, R, opts)

Parameters

sys

-

System; system object

Q

-

Matrix; output weighting matrix

R

-

Matrix; input weighting matrix

opts

-

(optional) equation(s) of the form option = value; specify options for the LQROutput command

Options

• 

N = Matrix or Vector

Weighting on the output-input multiplication term in the cost function. If omitted, a zero matrix with appropriate dimensions will be considered.   

• 

poles  = true or false True means the eigenvalues of A-BK are returned. See LQR for details. The default value is false.    

• 

riccati  =  true or false True means the solution of the associated Riccati equation is returned. The default value is false.

• 

return_Kr  =  true or false True means the direct gain Kr is returned. The default value is false.

• 

parameters = {list, set}(name = complexcons)

  

Specifies numeric values for the parameters of sys. These values override any parameters previously specified for sys. The numeric value on the right-hand side of each equation is substituted for the name on the left-hand side in the sys equations. The default is the value of sys given by DynamicSystems:-SystemOptions(parameters).

Solvability Conditions

• 

The data  must satisfy the solvability conditions of the standard LQR problem described in the LQR help page.

Description

• 

The LQROutput command calculates the LQR state feedback gain for a system with output weighting.

• 

The system sys is a continuous or discrete-time linear system object created using the DynamicSystems package. The system object must be in state-space (SS) form.

• 

In continuous-time domain, the optimal state feedback gain, , is calculated such that the quadratic cost-function

 

is minimized by the feedback law u = -Kx subject to the following state-space

• 

In discrete-time domain, the optimal state feedback gain, , is calculated such that the quadratic cost-function

is minimized by the feedback law u[n] = -Kx[n] subject to the following state-space

• 

Q and R are expected to be symmetric. If the input Q and/or R are not symmetric, their symmetric part will be considered since their antisymmetric (skew-symmetric) part has no role in the quadratic cost function.

• 

In LQR with output weighting, the weighting matrix Q acts on the outputs rather than the states as in the standard LQR. Also, the weighing matrix N acts on the inner product of the outputs and inputs (creating a bilinear form) rather than the inner product of the states and inputs.  

• 

In addition to the state feedback gain, depending on the corresponding option values, the command returns the closed-loop eigenvalues and the solution of the associated Riccati equation.

• 

The output weighting LQR problem is equivalent to the standard LQR problem with the following weighting matrices:

     

• 

The direct gain Kr is computed as follows:

 (discrete time)

• 

If sys contains structured uncontrollable or unobservable states, they are removed using ReduceSystem before computing the LQR state feedback.  The resulting gain  is then filled with zeros at positions corresponding to the removed states; however, the other outputs are not filled and, consequently, they may have lower dimensions as expected.

Examples

(1)

(2)

(3)

(4)

(5)

(6)

(7)

We can also use LQROuput with discrete models:

(8)

(9)

(10)

(11)

(12)

(13)

See Also

ControlDesign

ControlDesign[LQR]

ControlDesign[LQRContinuous]

ControlDesign[LQRDiscrete]

ControlDesign[StateFeedback][Ackermann]

ControlDesign[StateFeedback][PolePlacement]

 


Download Help Document