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

70

Upload: mio

Post on 10-Feb-2016

36 views

Category:

Documents


0 download

DESCRIPTION

دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC. کنترل پيش بين-دکتر توحيدخواه. Feasibility in MPC. Infeasibility implies that, for the current state, the constraints within the MPC algorithm cannot be satisfied. - PowerPoint PPT Presentation

TRANSCRIPT

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

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

Constraints in MPC

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

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

•Infeasibility implies that, for the current state, the constraints within the MPC algorithm cannot be satisfied.

•Without feasibility the MPC optimisation is ill posed and there is no assurance that the answer has any useful meaning.

•MPC looks at mechanisms for overcoming or avoiding this.

Feasibility in MPC

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

Hard constraintsHard constraints are constraints which must be satisfied.

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

Soft constraints

• Soft constraints are those which should be satisfied if possible. Soft constraints can be violated (ignored).

• Usually soft constraints are on outputs/states although they could also be applied to inputs. Such violations may have no effect on nominal stability results.

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

Terminal constraints

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

Summary: Constraints are a combination of hard, soft and terminal constraints.

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

Model uncertainty may cause infeasibility because the actual behaviour differs from the predicted behaviour. Hence, even though the nominal predictions could satisfy constraints over the entire future, a small change in the model will cause the actual behaviour to differ, and the associated predictions at the subsequent sampling instantcould then violate constraints.

Model uncertainty

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

One can form algorithms based on invariant sets (Section 11.11) to handle model uncertainty; however, the results are usually very conservative, as guarantees must allow for the worst case (which will arise with negligible probability).

A more pragmatic approach is to accept that guarantees cannot be given where there is significant uncertainty and make other contingencies for the rare occasions where infeasibility arises.

Model uncertainty (cont.)

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

•The stronger a guarantee you want, the more conservative your control law will be.

•In practise there must be a compromise between feasibility assurances and performance.

•Feasibility would usually be ensured by a systematic relaxation of soft constraints. This would be determined at a supervisory level.

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

•Using artificially tight constraints on future predictions automatically builds in some slack which can be used to retain feasibility in the presence of moderate uncertainty. The slack should be montonically increasing with the horizon.

Example: input limits:

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

Example 1. A mathematical model for an undamped oscillator is given by:

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

What happens if the control amplitude is limited to +/- 25 ?

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

closed-loop eigenvalues are at −0.1946, 0, 0.

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

Case A. Closed loop control without saturation

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

Case B- Closed-loop control with saturation

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

If we do not pay attention to the saturation of the control, then in the presence of constraints, the closed-loop control performance could severely deteriorate.

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

Example 2:

A common practice in dealing with saturation is to let the model know the difference in Δu(k) when saturation becomes effective.

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

over-shoot in the closed-loop response is significantly reduced.

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

Formulation of Constrained Control Problems

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

There are three major types of constraints frequently encountered in applications:

The first two types deal with constraints imposed on the control variables u(k),

and the third type of constraint deals with output y(k) or state variable x(k) constraints.

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

Constraints on the Amplitude of the Control Variable

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

:در بيهوشی بعنوان مثال

Constraints on the Control Variable Incremental Variation

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

Output Constraints

Output constraints are often implemented as ‘soft’ constraints in the way that a slack variable sv > 0 is added to the constraints

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

Constraints in a Multi-input and Multi-output Setting

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

Constraints as Part of the Optimal Solution

Page 30: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC
Page 31: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC
Page 32: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC
Page 33: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC
Page 34: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC

Numerical Solutions Using Quadratic Programming

E is assumed to be symmetric and positive definite.

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

Quadratic Programming for Equality Constraints

Example 4. Minimize

Solution. The global minimum, without constraint, is at

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

Illustration of constrained optimal solution

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

Lagrange Multipliers

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

Example 5. Minimize

subject to:

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

Solution:

Without the equality constraints, the optimal solution is:

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

Example 6. what happens to the constrained optimal solution when the linear constraints are dependent.

There is no feasible solution of x1 and x2

Matrix MTE−1M is not invertible

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

Solution:

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

Illustration of no feasible solution of the constrained optimization problem.Solid-line x1 + x2 = 1; darker-solid-line 2x1 +2x2 = 6

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

Example 7:

How the number of equality constraints is also an issue in the constrained optimal solution? (Ex. 5)

We add an extra constraint to the original constraints so that:

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

The only feasible solution:

In summary, the number of equality constraints is required to be less than or equal to the number of decision variables (i.e., x).

If the number of equality constraints equals the number of decision variables, the only feasible solution is the one that satisfies the constraints and there is no additional variable in x that can be used to optimize the original objective function.

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

Minimization with Inequality Constraints

In the minimization with inequality constraints, the number of constraints could be larger than the number of decision variables.

An inequality Mix ≤ γi is said to be active if Mix = γi and inactive if Mix < γi.

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

Kuhn-Tucker Conditions

Page 51: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC
Page 52: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC
Page 53: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC

Example 8.

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

Illustration of the constrained optimization problem with inequality constraints.Solid-line x1 + x2 = 1; darker-solid-line 3x1 +3x2 = 6

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

Active Set Method

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

Example 9

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

The third constraint is an inactive constraint and will be dropped from the constrained equation set.

The first two constraints as the active constraints, and solve the optimization problem as minimizing:

subject to:

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

From Example 5:

We drop the second constraint and solve the optimization problem as:

subject to:

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

1. In the case of equality constraints, the maximum number of equality constraints equals the number of decision variables. In this example, it is 3, and the only feasible solution x is to satisfy the equality constraints (see (2.50)). In contrast, in the case of inequality constraints, the number of inequality constraints is permitted to be larger than the number of decision variables, as long as they are not all active. In this example, only one constraint becomes active so it becomes an equality constraint. Once the optimal solution is found against this active constraint, the rest of the inequalities are automatically satisfied.

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

2. It is clear that an iterative procedure is required to solve the optimization problem with inequality constraints, because we did not know which constraints would become active constraints. If the active set could be identified in advance, then the iterative procedure would be shortened.

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

3. Note that the conditions for the inequality constraints are more relaxed than the case of imposing equality constraints. For instance, the number of constraints is permitted to be greater than the number of decision

variables, and the set of inequality constraints is permitted to be linearly dependent. However, these relaxations are only permitted to the point that the active constraints need to be linearly independent and the number of active constraints needs to be less than or equal to the number of decision variables.

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

Primal-Dual Method

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

Hildreth’s Quadratic Programming Procedure

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

Example 10. Minimize the cost function:

Page 67: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC
Page 68: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC
Page 69: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC
Page 70: دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي Constraints in MPC

Example 11