Chapter 10 Optimal Control Homework 10 Consider again the control system as given before, described by Assuming the linear control law Determine the constants.

Slides:



Advertisements
Similar presentations
Lect.3 Modeling in The Time Domain Basil Hamed
Advertisements

Lect.7 Steady State Error Basil Hamed
Properties of State Variables
President UniversityErwin SitompulModern Control 11/1 Dr.-Ing. Erwin Sitompul President University Lecture 11 Modern Control

Slide# Ketter Hall, North Campus, Buffalo, NY Fax: Tel: x 2400 Control of Structural Vibrations.
EXAMPLES: Example 1: Consider the system Calculate the equilibrium points for the system. Plot the phase portrait of the system. Solution: The equilibrium.
Autumn 2008 EEE8013 Revision lecture 1 Ordinary Differential Equations.
FULL STATE FEEDBAK CONTROL:
1 Chapter 11 Compensator Design When the full state is not available for feedback, we utilize an observer. The observer design process is described and.
Motivation For analytical design of control systems,
State Observer (Estimator)
, Free vibration Eigenvalue equation EIGENVALUE EQUATION
دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي استاد درس دكتر فرزاد توحيدخواه بهمن 1389 کنترل پيش بين-دکتر توحيدخواه MPC Stability-2.
Lecture 14: Pole placement (Regulator Problem) 1.
(COEN507) LECTURE III SLIDES By M. Abdullahi
Topics 1 Specific topics to be covered are: Discrete-time signals Z-transforms Sampling and reconstruction Aliasing and anti-aliasing filters Sampled-data.
Ch 9.6: Liapunov’s Second Method In Section 9.3 we showed how the stability of a critical point of an almost linear system can usually be determined from.
Intelligent Robot Lab Pusan National University Intelligent Robot Lab Chapter 7. Forced Response Errors Pusan National University Intelligent Robot Laboratory.
Control Systems Lect.3 Steady State Error Basil Hamed.
Intelligent Robot Lab Pusan National University Intelligent Robot Lab Chapter 6. TRANSIENT RESPONSE -- STABILITY Pusan National University Intelligent.
President UniversityErwin SitompulSMI 10/1 Lecture 10 System Modeling and Identification Dr.-Ing. Erwin Sitompul President University
Eigenvalues, Zeros and Poles
1 Project seminar on - By:- Tejaswinee Darure. Contents: 1] Aircraft (Boing-737) modeling a] Longitudinal Dynamics b] State space representation of system.
Modern Control Systems (MCS) Dr. Imtiaz Hussain URL :
FULL STATE FEEDBACK CONTROL:
Chapter 12 Design via State Space <<<4.1>>>
Chapter 8 State Feedback and State Estimators State Estimator In previous section, we have discussed the state feedback, based on the assumption that all.
MESB374 System Modeling and Analysis Transfer Function Analysis
Modeling and Simulation Dr. Mohammad Kilani
Boyce/DiPrima 9th ed, Ch 9.6: Liapunov’s Second Method Elementary Differential Equations and Boundary Value Problems, 9th edition, by William E. Boyce.
Automatic Control Theory CSE 322
We will be looking for a solution to the system of linear differential equations with constant coefficients.
Effects of Zeros and Additional Poles
§7-4 Lyapunov Direct Method
ME375 Handouts - Fall 2002 MESB374 Chapter8 System Modeling and Analysis Time domain Analysis Transfer Function Analysis.
Control System Analysis and Design by the Frequency Response Method
Modern Control Systems (MCS)
Root-Locus Analysis (1)
Boyce/DiPrima 10th ed, Ch 7.5: Homogeneous Linear Systems with Constant Coefficients Elementary Differential Equations and Boundary Value Problems, 10th.
Modern Control Systems (MCS)
Multirate Output Feedback
Lial/Hungerford/Holcomb/Mullins: Mathematics with Applications 11e Finite Mathematics with Applications 11e Copyright ©2015 Pearson Education, Inc. All.
Compensators.
Digital and Non-Linear Control
8. Stability, controllability and observability
Homework 9 Refer to the last example.
Homework 1: Electrical System
دانشگاه صنعتي اميركبير
Stability of Closed-Loop Control Systems
Equivalent State Equations
Stability Analysis of Linear Systems
Chapter 8 State Feedback and State Estimators State Estimator In previous section, we have discussed the state feedback, based on the assumption that all.
Root Locus Techniques CH 8: Islamic University of Gaza
Homework 3: Transfer Function to State Space
Boyce/DiPrima 10th ed, Ch 7.6: Complex Eigenvalues Elementary Differential Equations and Boundary Value Problems, 10th edition, by William E. Boyce and.
7-5 Relative Stability.
Root-Locus Analysis (2)
Chapter 4. Time Response I may not have gone where I intended to go, but I think I have ended up where I needed to be. Pusan National University Intelligent.
EXAMPLES: Example 1: Consider the system
Root Locus Techniques CH 8: Islamic University of Gaza
Homework 3: Transfer Function to State Space
State Feedback.
Eigenvalues and Eigenvectors
Chapter 3 Modeling in the Time Domain
Chapter 6. STABILITY Good relationships nurture you. They help you find yourself and who you are. I don’t mean just relationships with boys or men. Relationships.
IntroductionLecture 1: Basic Ideas & Terminology
Chapter 7 Inverse Dynamics Control
Ch 7.5: Homogeneous Linear Systems with Constant Coefficients
The Frequency-Response Design Method
Presentation transcript:

Chapter 10 Optimal Control Homework 10 Consider again the control system as given before, described by Assuming the linear control law Determine the constants k1 and k2 so that the following performance index is minimized Consider only the case where the initial condition is x(0)=[c 0]T and the undamped natural frequency (ωn) is chosen to be 2 rad/s. Calculate the transfer function of the system if compensated with k Determine the value of corresponding k (k1 or k2?) to obtain ωn as requested

Chapter 10 Optimal Control Solution of Homework 10 Substituting the state feedback and finding the transfer function,

Chapter 10 Optimal Control Solution of Homework 10

Algebraic Riccati Equation Chapter 10 Optimal Control Algebraic Riccati Equation Consider again the n-dimensional state space equations: but now with the following performance index to be minimized: : symmetric, positive semidefinite The control objective is to construct a stabilizing linear state feedback controller of the form u(t) = –K x(t) that at the same time minimizes the performance index J. The state feedback equation u(t) = –K x(t) is also called the “control law.”

Algebraic Riccati Equation Chapter 10 Optimal Control Algebraic Riccati Equation First, assume that there exists a linear state feedback optimal controller, such that the optimal closed-loop system: is asymptotically stable. Then, there exists a Lyapunov Function V = xT(t)P x(t) with a positive definite matrix P, such that dV/dt evaluated on the trajectories of the closed-loop system is negative definite. The synthesis of optimal control law involves the finding of an appropriate Lyapunov Function, or equivalently, the matrix P.

Algebraic Riccati Equation Chapter 10 Optimal Control Algebraic Riccati Equation The appropriate matrix P is found by minimizing: For unconstrained minimization, Optimal Solution If u(t) = –K x(t) is so chosen that min{f(u(t)) = dV/dt + xT(t)Q x(t) + uT(t)R u(t)} = 0 for some V = xT(t)P x(t), Then the controller using u(t) as control law is an optimal controller.

Algebraic Riccati Equation Chapter 10 Optimal Control Algebraic Riccati Equation The differentiation yields: if P symmetric

Algebraic Riccati Equation: Control Law Chapter 10 Optimal Control Algebraic Riccati Equation: Control Law Hence, incorporating the fact that P and R are symmetric, the optimal control law can be written as: or

Algebraic Riccati Equation: Minimum Test Chapter 10 Optimal Control Algebraic Riccati Equation: Minimum Test We now need to perform the “Second Derivative Test” to find out whether u*(t) is a solution that minimizes f(u(t)). Second Derivative Test If f’(x) = 0 and f”(x) > 0 then f has a local minimum at x If f’(x) = 0 and f”(x) < 0 then f has a local maximum at x If f’(x) = 0 and f”(x) = 0 then no conclusion can be drawn Performing the “Second Derivative Test”, If the weight matrix R is chosen to be a positive definite matrix, then the optimal solution u*(t) is indeed a solution that minimizes f(u(t)).

Algebraic Riccati Equation: Finding P Chapter 10 Optimal Control Algebraic Riccati Equation: Finding P Now, the appropriate matrix P must be found, in order to obtain the optimal closed-loop system in the form of: The optimal controller with matrix P minimizes the cost function f(u(t)), and will yield:  After some substitutions of x(t) and later u*(t),

Algebraic Riccati Equation (ARE) Chapter 10 Optimal Control Algebraic Riccati Equation: Finding P After regrouping, we will obtain: The equation above should hold for any x(t), which implies that: Algebraic Riccati Equation (ARE) After solving the ARE for P, the optimal control law given by: can be applied to the linear system of The solution of ARE does not depend on initial conditions

Solving Optimal Control Problem in Matlab Chapter 10 Optimal Control Solving Optimal Control Problem in Matlab The solution of the ARE can be calculated easily in Matlab. The command to be used is: [K,P,E] = lqr(A,B,Q,R,N) The performance index to be minimized is: For the inputs: A and B are the system matrices, while Q, R, and N are the weight matrices. In our case, N is set to zero. For the outputs, K is the optimal gain, P is the solution matrix of the ARE, while E is the eigenvalues of the optimal system.

Example 1: Optimal Control Chapter 10 Optimal Control Example 1: Optimal Control Consider the following model: along with the performance index: Find the optimal control law for the system. The matrices are: The ARE is solved as:

Example 1: Optimal Control Chapter 10 Optimal Control Example 1: Optimal Control The control law is: The optimal closed-loop system is described by: Some conclusions: The system is a 1st order system with 2 inputs The optimal location of the system’s pole is at s = –4/ 2r Control effort u lightly weighted  r<<  pole location more to the left  system faster  energy expense increases Control effort u heavily weighted  r>>  pole location more to the right  system slower  energy expense decreases

Give weight to x1(t) No restriction for x2(t) Chapter 10 Optimal Control Example 2: Optimal Control Consider the following continuous-time system: Design an optimal controller that minimizes with Give weight to x1(t) No restriction for x2(t)

Example 2: Optimal Control Chapter 10 Optimal Control Example 2: Optimal Control P is found by solving the ARE:

Example 2: Optimal Control Chapter 10 Optimal Control Example 2: Optimal Control Three equations can be obtained: Thus, the optimal gain is given by: The requested control law is: Some conclusions: …

Example 2: Validation of Answer Chapter 10 Optimal Control Example 2: Validation of Answer From the previous example, let us now set a = 1: Taking the positive out of both plus-minus signs, P2 and P3 can be obtained. The solution of P will thus be:

Example 2: Validation of Answer Chapter 10 Optimal Control Example 2: Validation of Answer The optimal feedback gain will be: with: The optimal closed-loop matrix is given by:

Example 2: Validation of Answer Chapter 10 Optimal Control Example 2: Validation of Answer For r = 0.25, for example Location of optimal poles

Example 2: Optimal State Feedback Chapter 10 Optimal Control Example 2: Optimal State Feedback Changing the control effort weight r will change the optimal gain K and the location of the optimal poles E.

Example 2: Optimal State Feedback Using x0 = [2;–1], the response of the system with 3 different weights r will now be compared. Why x1, not x2? Smaller r results in larger magnitude of u, since control effort is weighted less Smaller r results in smaller magnitude of state x1, and faster convergence rate : r = 1.4 : r = 0.05 : r = 0.25

Chapter 10 Optimal Control Homework 11 The regulator shown in the figure below contains a plant that is described by and has a performance index Determine The Riccati matrix P The state feedback matrix k The closed-loop eigenvalues

Homework 11A Consider the system described by the equations Chapter 10 Optimal Control Homework 11A Consider the system described by the equations (a) Determine the optimal control law u*(t) which minimizes the following performance index. (Hint: Use Algebraic Riccati Equation) (b) Use ρ = 0.1·StID and calculate the numerical result of K. Verify your answer using Matlab. (Hint: Learn more about command “lqr”) Deadline: 3 December 2014.