دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in...

46

description

دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC-2. کنترل پيش بين-دکتر توحيدخواه. Hildreth’s Quadratic Programming Procedure. - PowerPoint PPT Presentation

Transcript of دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in...

Page 1: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC-2
Page 2: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC-2

دانشگاه صنعتي اميركبيردانشكده مهندسي پزشكي

Constraints in MPC-2

بين-دکتر کنترل پيشتوحيدخواه

Page 3: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC-2

Hildreth’s Quadratic Programming Procedure

Page 4: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC-2

•If the active constraints are linearly independent and their number is less than or equal to the number of decision variables, then the dual variables will converge.

•However, if one or both of these requirements are violated, then the dual variables will not converge to a set of fixed values.

•The algorithm will give a compromised, near-optimal solution with constraints if the situation of conflict constraints arises. This isone of the key strengths of using this approach in real-time applications.

•When the conditions are satisfied, the one-dimensional search technique in Hildreth’s quadratic programming procedure converges to the set of λ∗, where λ∗ contains zeros for inactive constraints and the positive components (λ*

act) corresponding to the active constraints.

Page 5: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC-2

Example 10. Minimize the cost function:

Page 6: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC-2
Page 7: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC-2
Page 8: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC-2
Page 9: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC-2

Example 11

Solve a quadratic programming problem where the constraints are defined by 0 ≤ x1 ≤ 1 and 0 ≤ x2 ≤ 1 and the objective function is defined by:

Page 10: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC-2

The inequalities can be written as:

The objective function can be written as:

Page 11: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC-2

The global optimal solution is:

Page 12: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC-2
Page 13: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC-2
Page 14: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC-2

Predictive Control with Constraints on Input Variables

Page 15: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC-2

Predictive Control with Constraints on Input Variables

Page 16: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC-2

Constraints on Rate of Change

Example 14. A continuous-time plant is described by a transfer function model:

Sampling time:

Page 17: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC-2

•For this example, we only consider the case of imposing the constraints on the first element of ∆U

•we first obtain the discrete-time state space model, then augment the model with an integrator. With the program presented in Tutorial 1.2, we obtain the objective function:

Page 18: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC-2

For simplicity, we assume that the observer poles are selected at 0, 0, 0. The closed-loop system without constraints has its eigenvalues located at 0.6851, 0.9109±0.1070j, and 0, 0, 0.

The constraints are translated to the two linear inequalities as:

Page 19: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC-2
Page 20: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC-2
Page 21: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC-2

Example 15. This example will investigate the scenario where the constraints are imposed for all elements in U, which is the case often referred to in the predictive control literature. The nominal design of predictive control remains the same as in Example 14.

when the constraints are fully imposed on all the components in U, they are translated to the six linear inequalities as:

Page 22: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC-2

First two cycles of the computation:

Page 23: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC-2
Page 24: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC-2
Page 25: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC-2

Constraints on Amplitude of the Control

Page 26: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC-2

Example 2.16. We will consider the same system given in Example 14 with identical design specification, except that the constraints are changed to:

Page 27: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC-2
Page 28: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC-2
Page 29: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC-2
Page 30: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC-2
Page 31: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC-2
Page 32: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC-2

Constraints on Amplitude and Rate of Change

Page 33: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC-2

Example 18. We consider the same system as in Example 14 with constraints on:

Page 34: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC-2
Page 35: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC-2

Example 19. In this example, we consider the case:

Page 36: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC-2
Page 37: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC-2
Page 38: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC-2
Page 39: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC-2

Constraints on the Output Variable

Page 40: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC-2

Example 20. Assume that a discrete-time system is described by the z transfer function

Page 41: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC-2
Page 42: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC-2
Page 43: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC-2
Page 44: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC-2

At sampling time k = 13 and k = 23, the constraints are active, where we notice two separate sharp drops occurring in the control. The first is due to the slight over-shoot in the set-point change, and the second is due to the input disturbance. By comparing the control signals with and without constraints, we also notice that there are sharp changes on the u(k) as well as on the control signal u(k) in order to satisfy the constraints on the output. These two sharp changes on both control and increment of control at the same time instant could cause violation of constraints if constraints on the control signal are imposed.

Page 45: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC-2
Page 46: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC-2

It is seen from the plots that the output constraints are satisfied. However, the constraints on both the amplitude and increment of the control are violated when the sharp adjustment of control is generated in order to satisfy the constraint on the output. The active constraints on input and output at the same sampling instant become linearly dependent. Therefore, something has to give. Here, without any interferring, Hildreth’s programming algorithm chose a solution that satisfies the output constraint and relaxed the input constraints.