diff --git a/index.html b/index.html index 78d6453..888f011 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + A brief and practical introduction to \(\mathcal{H}_\infty\) Control @@ -30,66 +30,69 @@

Table of Contents

+
+

This document is also available as a pdf.

+
-
-

Introduction

-
+
+

Introduction

+

The purpose of this document is to give a practical introduction to the wonderful world of \(\mathcal{H}_\infty\) Control.

@@ -104,40 +107,39 @@ Therefore, for more advanced discussion, please have a look at the recommended r When possible, Matlab scripts used for the example/exercises are provided such that you can easily test them on your computer.

-

The general structure of this document is as follows:

    -
  • A short introduction to model based control is given in Section 1
  • -
  • Classical open loop shaping method is presented in Section 2. +
  • A short introduction to model based control is given in Section 1
  • +
  • Classical open loop shaping method is presented in Section 2. It is also shown that \(\mathcal{H}_\infty\) synthesis can be used for open loop shaping
  • -
  • Important concepts indispensable for \(\mathcal{H}_\infty\) control such as the \(\mathcal{H}_\infty\) norm and the generalized plant are introduced in Section 3
  • -
  • A very important step in \(\mathcal{H}_\infty\) control is to express the control specifications (performances, robustness, etc.) as an \(\mathcal{H}_\infty\) optimization problem. Such procedure is described in Section 4
  • +
  • Important concepts indispensable for \(\mathcal{H}_\infty\) control such as the \(\mathcal{H}_\infty\) norm and the generalized plant are introduced in Section 3
  • +
  • A very important step in \(\mathcal{H}_\infty\) control is to express the control specifications (performances, robustness, etc.) as an \(\mathcal{H}_\infty\) optimization problem. Such procedure is described in Section 4
  • One of the most useful use of the \(\mathcal{H}_\infty\) control is the shaping of closed-loop transfer functions. -Such technique is presented in Section 5
  • -
  • Finally, complete examples of the use of \(\mathcal{H}_\infty\) Control for practical problems are provided in Section 6
  • +Such technique is presented in Section 5 +
  • Finally, complete examples of the use of \(\mathcal{H}_\infty\) Control for practical problems are provided in Section 6
-
-

1 Introduction to Model Based Control

+
+

1 Introduction to Model Based Control

- +

-
-

1.1 Model Based Control - Methodology

+
+

1.1 Model Based Control - Methodology

- +

-The typical methodology for Model Based Control techniques is schematically shown in Figure 1. +The typical methodology for Model Based Control techniques is schematically shown in Figure 1.

@@ -154,7 +156,7 @@ It consists of three steps: -

+

control-procedure.png

Figure 1: Typical Methodoly for Model Based Control

@@ -166,20 +168,20 @@ In this document, we will suppose a model of the plant is available (step 1 alre

-In Section 2, steps 2 and 3 will be described for a control techniques called classical (open-)loop shaping. +In Section 2, steps 2 and 3 will be described for a control techniques called classical (open-)loop shaping.

-Then, steps 2 and 3 for the \(\mathcal{H}_\infty\) Loop Shaping of closed-loop transfer functions will be discussed in Sections 4, 5 and 6. +Then, steps 2 and 3 for the \(\mathcal{H}_\infty\) Loop Shaping of closed-loop transfer functions will be discussed in Sections 4, 5 and 6.

-
-

1.2 From Classical Control to Robust Control

+
+

1.2 From Classical Control to Robust Control

- +

@@ -211,7 +213,7 @@ This robust control theory is the subject of this document.

-The three presented control methods are compared in Table 1. +The three presented control methods are compared in Table 1.

@@ -219,7 +221,7 @@ Note that in parallel, there have been numerous other developments, including no

- +
@@ -353,11 +355,11 @@ Note that in parallel, there have been numerous other developments, including no -
-

1.3 Example System

+
+

1.3 Example System

- +

@@ -366,24 +368,24 @@ Most of them will be applied on a physical system presented in this section.

-This system is shown in Figure 2. +This system is shown in Figure 2. It could represent an active suspension stage supporting a payload. The inertial motion of the payload is measured using an inertial sensor and this is feedback to a force actuator. Such system could be used to actively isolate the payload (disturbance rejection problem) or to make it follow a trajectory (tracking problem).

-The notations used on Figure 2 are listed and described in Table 2. +The notations used on Figure 2 are listed and described in Table 2.

-
+

mech_sys_1dof_inertial_contr.png

Figure 2: Test System consisting of a payload with a mass \(m\) on top of an active system with a stiffness \(k\), damping \(c\) and an actuator. A feedback controller \(K(s)\) is added to position / isolate the payload.

-
Table 1: Table summurazing the main differences between classical, modern and robust control
+
@@ -424,7 +426,8 @@ The notations used on Figure 2 are listed and describe - + + @@ -459,7 +462,8 @@ The notations used on Figure 2 are listed and describe - + + @@ -469,7 +473,7 @@ The notations used on Figure 2 are listed and describe
Table 2: Example system variables
\(400\) [N/(m/s)]
\(y\) Payload absolute displacement (measured by an inertial sensor)  [m]
\(K\) Feedback controller
-
+

Derive the following open-loop transfer functions:

@@ -502,14 +506,14 @@ You can follow this generic procedure:

-Having obtained \(G(s)\) and \(G_d(s)\), we can transform the system shown in Figure 2 into a classical feedback architecture as shown in Figure 6. +Having obtained \(G(s)\) and \(G_d(s)\), we can transform the system shown in Figure 2 into a classical feedback architecture as shown in Figure 6.

-
+

classical_feedback_test_system.png

-

Figure 3: Block diagram corresponding to the example system of Figure 2

+

Figure 3: Block diagram corresponding to the example system of Figure 2

@@ -533,18 +537,18 @@ And now the system dynamics \(G(s)\) and \(G_d(s)\).

-The Bode plots of \(G(s)\) and \(G_d(s)\) are shown in Figures 4 and 5. +The Bode plots of \(G(s)\) and \(G_d(s)\) are shown in Figures 4 and 5.

-
+

bode_plot_example_afm.png

Figure 4: Bode plot of the plant \(G(s)\)

-
+

bode_plot_example_Gd.png

Figure 5: Magnitude of the disturbance transfer function \(G_d(s)\)

@@ -553,40 +557,40 @@ The Bode plots of \(G(s)\) and \(G_d(s)\) are shown in Figures -

2 Classical Open Loop Shaping

+
+

2 Classical Open Loop Shaping

- +

-After an introduction to classical Loop Shaping in Section 2.1, a practical example is given in Section 2.2. +After an introduction to classical Loop Shaping in Section 2.1, a practical example is given in Section 2.2. Such Loop Shaping is usually performed manually with tools coming from the classical control theory.

However, the \(\mathcal{H}_\infty\) synthesis can be used to automate the Loop Shaping process. -This is presented in Section 2.3 and applied on the same example in Section 2.4. +This is presented in Section 2.3 and applied on the same example in Section 2.4.

-
-

2.1 Introduction to Loop Shaping

+
+

2.1 Introduction to Loop Shaping

- +

-
+

Loop Shaping refers to a control design procedure that involves explicitly shaping the magnitude of the Loop Transfer Function \(L(s)\).

-
+

-The Loop Gain (or Loop transfer function) \(L(s)\) usually refers to as the product of the controller and the plant (see Figure 6): +The Loop Gain (or Loop transfer function) \(L(s)\) usually refers to as the product of the controller and the plant (see Figure 6):

\begin{equation} L(s) = G(s) \cdot K(s) \label{eq:loop_gain} @@ -597,7 +601,7 @@ Its name comes from the fact that this is actually the “gain around the lo

-
+

open_loop_shaping.png

Figure 6: Classical Feedback Architecture

@@ -621,12 +625,12 @@ It is widely used and generally successful as many characteristics of the closed

The shaping of the Loop Gain is done manually by combining several leads, lags, notches… This process is very much simplified by the fact that the loop gain \(L(s)\) depends linearly on \(K(s)\) \eqref{eq:loop_gain}. -A typical wanted Loop Shape is shown in Figure 7. +A typical wanted Loop Shape is shown in Figure 7. Another interesting Loop shape called “Bode Step” is described in [1].

-
+

open_loop_shaping_shape.png

Figure 7: Typical Wanted Shape for the Loop Gain \(L(s)\)

@@ -635,21 +639,21 @@ Another interesting Loop shape called “Bode Step” is described in The shaping of closed-loop transfer functions is obviously not as simple as they don’t depend linearly on \(K(s)\). But this is were the \(\mathcal{H}_\infty\) Synthesis will be useful! -More details on that in Sections 4 and 5. +More details on that in Sections 4 and 5.

-
-

2.2 Example of Manual Open Loop Shaping

+
+

2.2 Example of Manual Open Loop Shaping

- +

-
+

-Let’s take our example system described in Section 1.3 and design a controller using the Open-Loop shaping synthesis approach. +Let’s take our example system described in Section 1.3 and design a controller using the Open-Loop shaping synthesis approach. The specifications are:

    @@ -661,7 +665,7 @@ The specifications are:
-
+

Using SISOTOOL, design a controller that fulfills the specifications.

@@ -700,7 +704,7 @@ Let’s say we came up with the following controller.

-The bode plot of the Loop Gain is shown in Figure 8 and we can verify that we have the wanted stability margins using the margin command: +The bode plot of the Loop Gain is shown in Figure 8 and we can verify that we have the wanted stability margins using the margin command:

[Gm, Pm, ~, Wc] = margin(G*K)
@@ -740,7 +744,7 @@ The bode plot of the Loop Gain is shown in Figure 8 an
 
 
 
-
+

loop_gain_manual_afm.png

Figure 8: Bode Plot of the obtained Loop Gain \(L(s) = G(s) K(s)\)

@@ -748,11 +752,11 @@ The bode plot of the Loop Gain is shown in Figure 8 an
-
-

2.3 \(\mathcal{H}_\infty\) Loop Shaping Synthesis

+
+

2.3 \(\mathcal{H}_\infty\) Loop Shaping Synthesis

- +

@@ -775,7 +779,7 @@ where:

  • K is the synthesize controller
  • -
    +

    Matlab documentation of loopsyn (link).

    @@ -792,23 +796,23 @@ Even though we will not go into details and explain how such synthesis is workin
    -
    -

    2.4 Example of the \(\mathcal{H}_\infty\) Loop Shaping Synthesis

    +
    +

    2.4 Example of the \(\mathcal{H}_\infty\) Loop Shaping Synthesis

    - +

    To apply the \(\mathcal{H}_\infty\) Loop Shaping Synthesis, the wanted shape of the loop gain should be determined from the specifications. -This is summarized in Table 3. +This is summarized in Table 3.

    -Such shape corresponds to the typical wanted Loop gain Shape shown in Figure 7. +Such shape corresponds to the typical wanted Loop gain Shape shown in Figure 7.

    - +
    @@ -877,18 +881,18 @@ The \(\mathcal{H}_\infty\) open loop shaping synthesis is then performed using t

    -The obtained Loop Gain is shown in Figure 9 and matches the specified one by a factor \(\gamma \approx 2\). +The obtained Loop Gain is shown in Figure 9 and matches the specified one by a factor \(\gamma \approx 2\).

    -
    +

    open_loop_shaping_hinf_L.png

    Figure 9: Obtained Open Loop Gain \(L(s) = G(s) K(s)\) and comparison with the wanted Loop gain \(L_w\)

    -
    +

    When using the \(\mathcal{H}_\infty\) Synthesis, it is usually recommended to analyze the obtained controller.

    @@ -900,7 +904,7 @@ This is usually done by breaking down the controller into simple elements such a

    -Let’s briefly analyze the obtained controller which bode plot is shown in Figure 10: +Let’s briefly analyze the obtained controller which bode plot is shown in Figure 10:

    • two integrators are used at low frequency to have the wanted low frequency high gain
    • @@ -909,7 +913,7 @@ Let’s briefly analyze the obtained controller which bode plot is shown in
    -
    +

    open_loop_shaping_hinf_K.png

    Figure 10: Obtained controller \(K\) using the open-loop \(\mathcal{H}_\infty\) shaping

    @@ -917,10 +921,10 @@ Let’s briefly analyze the obtained controller which bode plot is shown in

    -Let’s finally compare the obtained stability margins of the \(\mathcal{H}_\infty\) controller and of the manually developed controller in Table 4. +Let’s finally compare the obtained stability margins of the \(\mathcal{H}_\infty\) controller and of the manually developed controller in Table 4.

    -
    Table 3: Wanted Loop Shape corresponding to each specification
    +
    @@ -961,38 +965,38 @@ Let’s finally compare the obtained stability margins of the \(\mathcal{H}_ -
    -

    3 A first Step into the \(\mathcal{H}_\infty\) world

    +
    +

    3 A first Step into the \(\mathcal{H}_\infty\) world

    - +

    In this section, the \(\mathcal{H}_\infty\) Synthesis method, which is based on the optimization of the \(\mathcal{H}_\infty\) norm of transfer functions, is introduced.

    -After the \(\mathcal{H}_\infty\) norm is defined in Section 3.1, the \(\mathcal{H}_\infty\) synthesis procedure is described in Section 3.2 . +After the \(\mathcal{H}_\infty\) norm is defined in Section 3.1, the \(\mathcal{H}_\infty\) synthesis procedure is described in Section 3.2 .

    -The generalized plant, a very useful tool to describe a control problem, is presented in Section 3.3. -The \(\mathcal{H}_\infty\) is then applied to this generalized plant in Section 3.4. +The generalized plant, a very useful tool to describe a control problem, is presented in Section 3.3. +The \(\mathcal{H}_\infty\) is then applied to this generalized plant in Section 3.4.

    -Finally, an example showing how to convert a typical feedback control architecture into a generalized plant is given in Section 3.5. +Finally, an example showing how to convert a typical feedback control architecture into a generalized plant is given in Section 3.5.

    -
    -

    3.1 The \(\mathcal{H}_\infty\) Norm

    +
    +

    3.1 The \(\mathcal{H}_\infty\) Norm

    - +

    -
    +

    The \(\mathcal{H}_\infty\) norm of a multi-input multi-output system \(G(s)\) is defined as the peak of the maximum singular value of its frequency response

    @@ -1009,7 +1013,7 @@ For a single-input single-output system \(G(s)\), it is simply the peak value of
    -
    +

    Let’s compute the \(\mathcal{H}_\infty\) norm of our test plant \(G(s)\) using the hinfnorm function:

    @@ -1024,11 +1028,11 @@ Let’s compute the \(\mathcal{H}_\infty\) norm of our test plant \(G(s)\) u

    -We can see in Figure 11 that indeed, the \(\mathcal{H}_\infty\) norm of \(G(s)\) does corresponds to the peak value of \(|G(j\omega)|\). +We can see in Figure 11 that indeed, the \(\mathcal{H}_\infty\) norm of \(G(s)\) does corresponds to the peak value of \(|G(j\omega)|\).

    -
    +

    hinfinity_norm_siso_bode.png

    Figure 11: Example of the \(\mathcal{H}_\infty\) norm of a SISO system

    @@ -1038,14 +1042,14 @@ We can see in Figure 11 that indeed, the \(\mathcal{H}
    -
    -

    3.2 \(\mathcal{H}_\infty\) Synthesis

    +
    +

    3.2 \(\mathcal{H}_\infty\) Synthesis

    - +

    -
    +

    The \(\mathcal{H}_\infty\) synthesis is a method that uses an algorithm (LMI optimization, Riccati equation) to find a controller that stabilizes the system and that minimizes the \(\mathcal{H}_\infty\) norms of defined transfer functions.

    @@ -1053,16 +1057,16 @@ The \(\mathcal{H}_\infty\) synthesis is a method that uses an algorithm (

    -Why optimizing the \(\mathcal{H}_\infty\) norm of transfer functions is a pertinent choice will become clear when we will translate the typical control specifications into the \(\mathcal{H}_\infty\) norm of transfer functions in Section 4. +Why optimizing the \(\mathcal{H}_\infty\) norm of transfer functions is a pertinent choice will become clear when we will translate the typical control specifications into the \(\mathcal{H}_\infty\) norm of transfer functions in Section 4.

    -
    +

    Then applying the \(\mathcal{H}_\infty\) synthesis to a plant, the engineer work usually consists of the following steps:

    1. Write the problem as standard \(\mathcal{H}_\infty\) problem using the generalized plant (described in the next section)
    2. -
    3. Translate the specifications as \(\mathcal{H}_\infty\) norms of transfer functions (Section 4)
    4. +
    5. Translate the specifications as \(\mathcal{H}_\infty\) norms of transfer functions (Section 4)
    6. Make the synthesis and analyze the obtained controller
    @@ -1085,11 +1089,11 @@ Note that there are many ways to use the \(\mathcal{H}_\infty\) Synthesis:
    -
    -

    3.3 The Generalized Plant

    +
    +

    3.3 The Generalized Plant

    - +

    @@ -1098,7 +1102,7 @@ This consist of deriving the Generalized Plant for the current problem.

    -The generalized plant, usually noted \(P(s)\), is shown in Figure 12. +The generalized plant, usually noted \(P(s)\), is shown in Figure 12. It has two sets of inputs \([w,\,u]\) and two sets of outputs \([z\,v]\) such that:

    \begin{equation} @@ -1106,22 +1110,22 @@ It has two sets of inputs \([w,\,u]\) and two sets of outputs \([z \end{equation}

    -The meaning of these inputs and outputs are summarized in Table 5. +The meaning of these inputs and outputs are summarized in Table 5.

    -A practical example about how to derive the generalized plant for a classical control problem is given in Section 3.5. +A practical example about how to derive the generalized plant for a classical control problem is given in Section 3.5.

    -
    +
    -
    +

    general_plant.png

    Figure 12: Inputs and Outputs of the generalized Plant

    -
    Table 4: Comparison of the characteristics obtained with the two methods
    +
    @@ -1167,18 +1171,18 @@ A practical example about how to derive the generalized plant for a classical co -
    -

    3.4 The \(\mathcal{H}_\infty\) Synthesis applied on the Generalized plant

    +
    +

    3.4 The \(\mathcal{H}_\infty\) Synthesis applied on the Generalized plant

    - +

    Once the generalized plant is obtained, the \(\mathcal{H}_\infty\) synthesis problem can be stated as follows:

    -
    +
    \(\mathcal{H}_\infty\) Synthesis applied on the generalized plant
    @@ -1191,11 +1195,11 @@ After \(K\) is found, the system is robustified by adjusting the response

    -The obtained controller \(K\) and the generalized plant are connected as shown in Figure 13. +The obtained controller \(K\) and the generalized plant are connected as shown in Figure 13.

    -
    +

    general_control_names.png

    Figure 13: General Control Configuration

    @@ -1221,29 +1225,29 @@ where:

    -Note that the general control configure of Figure 13, as its name implies, is quite general and can represent feedback control as well as feedforward control architectures. +Note that the general control configure of Figure 13, as its name implies, is quite general and can represent feedback control as well as feedforward control architectures.

    -
    -

    3.5 From a Classical Feedback Architecture to a Generalized Plant

    +
    +

    3.5 From a Classical Feedback Architecture to a Generalized Plant

    - +

    -The procedure to convert a typical control architecture as the one shown in Figure 14 to a generalized Plant is as follows: +The procedure to convert a typical control architecture as the one shown in Figure 14 to a generalized Plant is as follows:

    1. Define signals of the generalized plant: \(w\), \(z\), \(u\) and \(v\)
    2. -
    3. Remove \(K\) and rearrange the inputs and outputs to match the generalized configuration shown in Figure 12
    4. +
    5. Remove \(K\) and rearrange the inputs and outputs to match the generalized configuration shown in Figure 12
    -
    +

    -Consider the feedback control architecture shown in Figure 14. +Consider the feedback control architecture shown in Figure 14. Suppose we want to design \(K\) using the general \(\mathcal{H}_\infty\) synthesis, and suppose the signals to be minimized are the control input \(u\) and the tracking error \(\epsilon\).

      @@ -1252,7 +1256,7 @@ Suppose we want to design \(K\) using the general \(\mathcal{H}_\infty\) synthes
    -
    +

    classical_feedback_tracking.png

    Figure 14: Classical Feedback Control Architecture (Tracking)

    @@ -1271,17 +1275,17 @@ Usually, we want to minimize the tracking errors \(\epsilon\) and the control si

    -Then, Remove \(K\) and rearrange the inputs and outputs as in Figure 12. +Then, Remove \(K\) and rearrange the inputs and outputs as in Figure 12.

    Answer

    -The obtained generalized plant shown in Figure 15. +The obtained generalized plant shown in Figure 15.

    -
    +

    mixed_sensitivity_ref_tracking.png

    Figure 15: Generalized plant of the Classical Feedback Control Architecture (Tracking)

    @@ -1305,14 +1309,14 @@ P.OutputName = {'e', 'u
    -
    -

    4 Modern Interpretation of Control Specifications

    +
    +

    4 Modern Interpretation of Control Specifications

    - +

    -As shown in Section 2, the loop gain \(L(s) = G(s) K(s)\) is a useful and easy tool when manually designing controllers. +As shown in Section 2, the loop gain \(L(s) = G(s) K(s)\) is a useful and easy tool when manually designing controllers. This is mainly due to the fact that \(L(s)\) is very easy to shape as it depends linearly on \(K(s)\). Moreover, important quantities such as the stability margins and the control bandwidth can be estimated from the shape/phase of \(L(s)\).

    @@ -1320,40 +1324,40 @@ Moreover, important quantities such as the stability margins and the control ban

    However, the loop gain \(L(s)\) does not directly give the performances of the closed-loop system. As a matter of fact, the behavior of the closed-loop system by the closed-loop transfer functions. -These are derived of a typical feedback architecture functions in Section 4.1. +These are derived of a typical feedback architecture functions in Section 4.1.

    The modern interpretation of control specifications then consists of determining the required shape of the closed-loop transfer functions such that the system behavior corresponds to the requirements. Once this is done, the \(\mathcal{H}_\infty\) synthesis can be used to generate a controller that will shape the closed-loop transfer function as specified.. -This method is presented in Section 5. +This method is presented in Section 5.

    One of the most important closed-loop transfer function is called the sensitivity function. -Its link with the closed-loop behavior of the feedback system is studied in Section 4.2. +Its link with the closed-loop behavior of the feedback system is studied in Section 4.2.

    -The robustness (stability margins) of the system can also be linked to the shape of the sensitivity function with the use of the module margin (Section 4.3). +The robustness (stability margins) of the system can also be linked to the shape of the sensitivity function with the use of the module margin (Section 4.3).

    -Links between typical control specifications and shapes of the closed-loop transfer functions are summarized in Section 4.4. +Links between typical control specifications and shapes of the closed-loop transfer functions are summarized in Section 4.4.

    -
    -

    4.1 Closed Loop Transfer Functions and the Gang of Four

    +
    +

    4.1 Closed Loop Transfer Functions and the Gang of Four

    - +

    -Consider the typical feedback system shown in Figure 16. +Consider the typical feedback system shown in Figure 16.

    @@ -1362,17 +1366,17 @@ The behavior (performances) of this feedback system is determined by the closed-

    Depending on the specification, different closed-loop transfer functions do matter. -These are summarized in Table 6. +These are summarized in Table 6.

    -
    +

    gang_of_four_feedback.png

    Figure 16: Simple Feedback Architecture with \(r\) the reference signal, \(\epsilon\) the tracking error, \(d\) a disturbance acting at the plant input \(u\), \(y\) is the output signal and \(n\) the measurement noise

    -
    Table 5: Notations for the general configuration
    +
    @@ -1414,14 +1418,14 @@ These are summarized in Table 6. - +
    Table 6: Typical Specification and associated closed-loop transfer function
    Robustness (stability margins)Module margin (see Section 4.3)Module margin (see Section 4.3)
    -
    +

    -For the feedback system in Figure 16, write the output signals \([\epsilon, u, y]\) as a function of the systems \(K(s), G(s)\) and the input signals \([r, d, n]\). +For the feedback system in Figure 16, write the output signals \([\epsilon, u, y]\) as a function of the systems \(K(s), G(s)\) and the input signals \([r, d, n]\).

    Hint @@ -1458,9 +1462,9 @@ The following equations should be obtained:
    -
    +

    -We can see that they are 4 different closed-loop transfer functions describing the behavior of the feedback system in Figure 16. +We can see that they are 4 different closed-loop transfer functions describing the behavior of the feedback system in Figure 16. These called the Gang of Four:

    \begin{align} @@ -1472,7 +1476,7 @@ These called the Gang of Four:
    -
    +

    If a feedforward controller is included, a Gang of Six transfer functions can be defined. More on that in this short video. @@ -1481,7 +1485,7 @@ More on that in this short

    -The behavior of the feedback system in Figure 16 is fully described by the following set of equations: +The behavior of the feedback system in Figure 16 is fully described by the following set of equations:

    \begin{align} \epsilon &= S r - GS d - GS n \\ @@ -1496,11 +1500,11 @@ Similarly, to reduce the effect of measurement noise \(n\) on the output \(y\),
    -
    -

    4.2 The Sensitivity Function

    +
    +

    4.2 The Sensitivity Function

    - +

    @@ -1511,14 +1515,14 @@ In this section, we will see how the shape of the sensitivity function will impa

    Suppose we have developed a “reference” controller \(K_r(s)\) and made three small changes to obtained three controllers \(K_1(s)\), \(K_2(s)\) and \(K_3(s)\). -The obtained sensitivity functions for these four controllers are shown in Figure 17 and the corresponding step responses are shown in Figure 18. +The obtained sensitivity functions for these four controllers are shown in Figure 17 and the corresponding step responses are shown in Figure 18.

    -The comparison of the sensitivity functions shapes and their effect on the step response is summarized in Table 7. +The comparison of the sensitivity functions shapes and their effect on the step response is summarized in Table 7.

    - +
    @@ -1557,20 +1561,20 @@ The comparison of the sensitivity functions shapes and their effect on the step
    Table 7: Comparison of the sensitivity function shape and the corresponding step response for the three controller variations
    -
    +

    sensitivity_shape_effect.png

    Figure 17: Sensitivity function magnitude \(|S(j\omega)|\) corresponding to the reference controller \(K_r(s)\) and the three modified controllers \(K_i(s)\)

    -
    +

    sensitivity_shape_effect_step.png

    Figure 18: Step response (response from \(r\) to \(y\)) for the different controllers

    -
    +
    Closed-Loop Bandwidth

    The closed-loop bandwidth \(\omega_b\) is the frequency where \(|S(j\omega)|\) first crosses \(1/\sqrt{2} = -3dB\) from below. @@ -1583,9 +1587,9 @@ In general, a large bandwidth corresponds to a faster rise time.

    -
    +

    -From the simple analysis above, we can draw a first estimation of the wanted shape for the sensitivity function (Figure 19): +From the simple analysis above, we can draw a first estimation of the wanted shape for the sensitivity function (Figure 19):

    • A small magnitude at low frequency to make the static errors small
    • @@ -1596,7 +1600,7 @@ This will become clear in the next section about the module margin.
    -
    +

    h-infinity-spec-S.png

    Figure 19: Typical wanted shape of the Sensitivity transfer function

    @@ -1606,11 +1610,11 @@ This will become clear in the next section about the module margin.
    -
    -

    4.3 Robustness: Module Margin

    +
    +

    4.3 Robustness: Module Margin

    - +

    @@ -1618,7 +1622,7 @@ Let’s start this section by an example demonstrating why the phase and gai Will follow a discussion about the module margin, a robustness indicator that can be linked to the \(\mathcal{H}_\infty\) norm of \(S\) and that will prove to be very useful.

    -
    +

    Consider the following plant \(G_t(s)\):

    @@ -1632,7 +1636,7 @@ Gt = 1/k*(s

    -Let’s say we have designed a controller \(K_t(s)\) that gives the loop gain shown in Figure 20. +Let’s say we have designed a controller \(K_t(s)\) that gives the loop gain shown in Figure 20.

    @@ -1641,7 +1645,7 @@ Let’s say we have designed a controller \(K_t(s)\) that gives the loop gai

    -The following characteristics can be determined from the Loop gain in Figure 20: +The following characteristics can be determined from the Loop gain in Figure 20:

    • Control bandwidth of \(\approx 10\, \text{Hz}\)
    • @@ -1655,7 +1659,7 @@ Or does it? Let’s find out.

      -
      +

      phase_gain_margin_model_plant.png

      Figure 20: Bode plot of the obtained Loop Gain \(L(s)\)

      @@ -1670,7 +1674,7 @@ Now let’s suppose the controller is implemented in practice, and the &ldqu

      -The obtained “real” loop gain is shown in Figure 21. +The obtained “real” loop gain is shown in Figure 21. At a frequency little bit above 100Hz, the phase of the loop gain reaches -180 degrees while its magnitude is more than one which indicates instability.

      @@ -1688,7 +1692,7 @@ It is confirmed by checking the stability of the closed loop system: -
      +

      phase_gain_margin_real_plant.png

      Figure 21: Bode plots of \(L(s)\) (loop gain corresponding the nominal plant) and \(L_r(s)\) (loop gain corresponding to the real plant)

      @@ -1708,7 +1712,7 @@ This is due to the fact that the gain and phase margin are robustness indicators Let’s now determine a new robustness indicator based on the Nyquist Stability Criteria.

      -
      +
      Nyquist Stability Criteria (for stable systems)
      If the open-loop transfer function \(L(s)\) is stable, then the closed-loop system will be unstable for any encirclement of the point \(-1\) on the Nyquist plot.
      @@ -1717,7 +1721,7 @@ Let’s now determine a new robustness indicator based on the Nyquist Stabil
      -
      +

      For more information about the general Nyquist Stability Criteria, you may want to look at this video.

      @@ -1729,21 +1733,21 @@ From the Nyquist stability criteria, it is clear that we want \(L(j\omega)\) to This minimum distance is called the module margin.

      -
      +
      Module Margin
      The Module Margin \(\Delta M\) is defined as the minimum distance between the point \(-1\) and the loop gain \(L(j\omega)\) in the complex plane.
      -
      +

      -A typical Nyquist plot is shown in Figure 22. +A typical Nyquist plot is shown in Figure 22. The gain, phase and module margins are graphically shown to have an idea of what they represent.

      -
      +

      module_margin_example.png

      Figure 22: Nyquist plot with visual indication of the Gain margin \(\Delta G\), Phase margin \(\Delta \phi\) and Module margin \(\Delta M\)

      @@ -1752,7 +1756,7 @@ The gain, phase and module margins are graphically shown to have an idea of what

      -As expected from Figure 22, there is a close relationship between the module margin and the gain and phase margins. +As expected from Figure 22, there is a close relationship between the module margin and the gain and phase margins. We can indeed show that for a given value of the module margin \(\Delta M\), we have:

      \begin{equation} @@ -1778,7 +1782,7 @@ Therefore, for a given \(\mathcal{H}_\infty\) norm of \(S\) (\(\|S\|_\infty = M_ \Delta G \ge \frac{M_S}{M_S - 1}; \quad \Delta \phi \ge \frac{1}{M_S} \end{equation} -
      +

      The \(\mathcal{H}_\infty\) norm of the sensitivity function \(\|S\|_\infty\) is a measure of the Module margin \(\Delta M\) and therefore an indicator of the system robustness.

      @@ -1798,14 +1802,14 @@ Note that this is why large peak value of \(|S(j\omega)|\) usually indicate robu And we now understand why setting an upper bound on the magnitude of \(S\) is generally a good idea.

      -
      +

      Typical, we require \(\|S\|_\infty < 2 (6dB)\) which implies \(\Delta G \ge 2\) and \(\Delta \phi \ge 29^o\)

      -
      +

      To learn more about module/disk margin, you can check out this video.

      @@ -1814,14 +1818,14 @@ To learn more about module/disk margin, you can check out -

      4.4 Summary of typical specification and associated wanted shaping

      +
      +

      4.4 Summary of typical specification and associated wanted shaping

      - +

      - +
      @@ -1874,11 +1878,11 @@ To learn more about module/disk margin, you can check out -

      5 \(\mathcal{H}_\infty\) Shaping of closed-loop transfer functions

      +
      +

      5 \(\mathcal{H}_\infty\) Shaping of closed-loop transfer functions

      - +

      In the previous sections, we have seen that the performances of the system depends on the shape of the closed-loop transfer function. @@ -1889,33 +1893,33 @@ But don’t worry, the \(\mathcal{H}_\infty\) synthesis will do this job for

      To do so, weighting functions are included in the generalized plant and the \(\mathcal{H}_\infty\) synthesis applied on the weighted generalized plant. -Such procedure is presented in Section 5.1. +Such procedure is presented in Section 5.1.

      -Some advice on the design of weighting functions are given in Section 5.2. +Some advice on the design of weighting functions are given in Section 5.2.

      -An example of the \(\mathcal{H}_\infty\) shaping of the sensitivity function is studied in Section 5.3. +An example of the \(\mathcal{H}_\infty\) shaping of the sensitivity function is studied in Section 5.3.

      Multiple closed-loop transfer functions can be shaped at the same time. Such synthesis is usually called Mixed-sensitivity Loop Shaping and is one of the most powerful tool of the robust control theory. -Some insight on the use and limitations of such techniques are given in Section 5.4. +Some insight on the use and limitations of such techniques are given in Section 5.4.

      -
      -

      5.1 How to Shape closed-loop transfer function? Using Weighting Functions!

      +
      +

      5.1 How to Shape closed-loop transfer function? Using Weighting Functions!

      - +

      -Suppose we apply the \(\mathcal{H}_\infty\) synthesis on the generalized plant \(P(s)\) shown in Figure 23. +Suppose we apply the \(\mathcal{H}_\infty\) synthesis on the generalized plant \(P(s)\) shown in Figure 23. It will generate a controller \(K(s)\) such that the \(\mathcal{H}_\infty\) norm of closed-loop transfer function from \(r\) to \(\epsilon\) is minimized which is equal to the sensitivity function \(S\). Therefore, the synthesis objective is to minimize the \(\mathcal{H}_\infty\) norm of the sensitivity function: \(\|S\|_\infty\).

      @@ -1926,16 +1930,16 @@ Clearly this does not allow to shape the norm of \(S(j\omega)\) over all

      -
      +

      loop_shaping_S_without_W.png

      Figure 23: Generalized Plant

      -
      +

      -The trick is to include a weighting function \(W_S(s)\) in the generalized plant as shown in Figure 24. +The trick is to include a weighting function \(W_S(s)\) in the generalized plant as shown in Figure 24.

      @@ -1953,7 +1957,7 @@ Let’s now show how this is equivalent as shaping the sensitivity fu \Leftrightarrow & \left| S(j\omega) \right| < \frac{1}{\left| W_s(j\omega) \right|} \quad \forall \omega \label{eq:sensitivity_shaping} \end{align} -

      +

      As shown in Equation \eqref{eq:sensitivity_shaping}, the objective of the \(\mathcal{H}_\infty\) synthesis applied on the weighted plant is to make the norm sensitivity function smaller than the inverse of the norm of the weighting function, and that at all frequencies.

      @@ -1965,15 +1969,15 @@ Therefore, the choice of the weighting function \(W_s(s)\) is very important: it
      -
      +

      loop_shaping_S_with_W.png

      Figure 24: Weighted Generalized Plant

      -
      +

      -Using matlab, compute the weighted generalized plant shown in Figure 25 as a function of \(G(s)\) and \(W_S(s)\). +Using matlab, compute the weighted generalized plant shown in Figure 25 as a function of \(G(s)\) and \(W_S(s)\).

      Hint @@ -2013,18 +2017,18 @@ Pw = blkdiag(Ws, 1)*P;
      -
      -

      5.2 Design of Weighting Functions

      +
      +

      5.2 Design of Weighting Functions

      - +

      Weighting function included in the generalized plant must be proper, stable and minimum phase transfer functions.

      -
      +
      proper
      more poles than zeros, this implies \(\lim_{\omega \to \infty} |W(j\omega)| < \infty\)
      stable
      no poles in the right half plane
      @@ -2053,9 +2057,9 @@ with:
    • hfgain: high frequency gain
    • -
      +

      -The Matlab code below produces a weighting function with the following characteristics (Figure 25): +The Matlab code below produces a weighting function with the following characteristics (Figure 25):

      • Low frequency gain of 100
      • @@ -2069,7 +2073,7 @@ The Matlab code below produces a weighting function with the following character
      -
      +

      first_order_weight.png

      Figure 25: Obtained Magnitude of the Weighting Function

      @@ -2077,7 +2081,7 @@ The Matlab code below produces a weighting function with the following character
      -
      +

      Quite often, higher orders weights are required.

      @@ -2126,7 +2130,7 @@ A Matlab function implementing Equation \eqref{eq:weight_formula_advanced} is sh s = zpk('s'); - W = (((1/args.wc)*sqrt((1-(args.G0/args.Gc)^(2/args.n))/(1-(args.Gc/args.G1)^(2/args.n)))*s + (args.G0/args.Gc)^(1/args.n))/((1/args.G1)^(1/args.n)*(1/args.wc)*sqrt((1-(args.G0/args.Gc)^(2/args.n))/(1-(args.Gc/args.G1)^(2/args.n)))*s + (1/args.Gc)^(1/args.n)))^args.n; + W = (((1/args.wc) * sqrt((1-(args.G0/args.Gc)^(2/args.n))/(1-(args.Gc/args.G1)^(2/args.n)))*s + (args.G0/args.Gc)^(1/args.n)) / ((1/args.G1)^(1/args.n) * (1/args.wc) * sqrt((1-(args.G0/args.Gc)^(2/args.n))/(1-(args.Gc/args.G1)^(2/args.n)))*s + (1/args.Gc)^(1/args.n)))^args.n; end @@ -2144,11 +2148,11 @@ W3 = generateWeight('G0', 1e2, 26. +The obtained shapes are shown in Figure 26.

      -
      +

      high_order_weight.png

      Figure 26: Higher order weights using Equation \eqref{eq:weight_formula_advanced}

      @@ -2158,11 +2162,11 @@ The obtained shapes are shown in Figure 26.
      -
      -

      5.3 Shaping the Sensitivity Function

      +
      +

      5.3 Shaping the Sensitivity Function

      - +

      @@ -2175,17 +2179,17 @@ Let’s design a controller using the \(\mathcal{H}_\infty\) shaping of the

      -As usual, the plant used is the one presented in Section 1.3. +As usual, the plant used is the one presented in Section 1.3.

      -
      +

      Translate the requirements as upper bounds on the Sensitivity function and design the corresponding weighting functions using Matlab.

      Hint

      -The typical wanted upper bound of the sensitivity function is shown in Figure 27. +The typical wanted upper bound of the sensitivity function is shown in Figure 27.

      @@ -2203,7 +2207,7 @@ Remember that the wanted upper bound of the sensitivity function is defined by t

      -
      +

      h-infinity-spec-S.png

      Figure 27: Typical wanted shape of the Sensitivity transfer function

      @@ -2271,7 +2275,7 @@ And the \(\mathcal{H}_\infty\) synthesis is performed on the weighted gen
      -
      +
       Test bounds:  0.5 <=  gamma  <=  0.51
       
        gamma        X>=0        Y>=0       rho(XY)<1    p/f
      @@ -2292,10 +2296,10 @@ Best performance (actual): 0.503
       \end{align*}
       
       

      -This is indeed what we can see by comparing \(|S|\) and \(|W_S|\) in Figure 28. +This is indeed what we can see by comparing \(|S|\) and \(|W_S|\) in Figure 28.

      -
      +

      Obtaining \(\gamma < 1\) means that the \(\mathcal{H}_\infty\) synthesis found a controller such that the specified closed-loop transfer functions are bellow the specified upper bounds.

      @@ -2308,7 +2312,7 @@ It just means that at some frequency, one of the closed-loop transfer functions
      -
      +

      results_sensitivity_hinf.png

      Figure 28: Weighting function and obtained closed-loop sensitivity

      @@ -2316,24 +2320,24 @@ It just means that at some frequency, one of the closed-loop transfer functions
      -
      -

      5.4 Shaping multiple closed-loop transfer functions - Limitations

      +
      +

      5.4 Shaping multiple closed-loop transfer functions - Limitations

      - +

      -As was shown in Section 4, each of the four main closed-loop transfer functions (called the gang of four) will impact different characteristics of the closed-loop system. -This is summarized in Table 9. +As was shown in Section 4, each of the four main closed-loop transfer functions (called the gang of four) will impact different characteristics of the closed-loop system. +This is summarized in Table 9.

      Therefore, we might want to shape multiple closed-loop transfer functions at the same time. For instance \(S\) could be shape to have good step responses, \(KS\) to limit the input usage and \(T\) to filter measurement noise. -When multiple closed-loop transfer function are shaped at the same time, it is refereed to as Mixed-Sensitivity \(\mathcal{H}_\infty\) Control and is the subject of Section 6. +When multiple closed-loop transfer function are shaped at the same time, it is refereed to as Mixed-Sensitivity \(\mathcal{H}_\infty\) Control and is the subject of Section 6.

      -
      Table 8: Typical Specifications and corresponding wanted norms of open and closed loop tansfer functions
      +
      @@ -2440,7 +2444,7 @@ Some of them are described below for reference, it is a good exercise to try to

      Shaping of S and KS -
      +

      general_conf_shaping_S_KS.png

      Figure 29: Generalized Plant to shape \(S\) and \(KS\)

      @@ -2455,15 +2459,16 @@ Weighting functions:
      -
      P = [W1 -G*W1
      -     0   W2
      -     1  -G];
      +
      P = [1 -G
      +     0  1
      +     1 -G];
      +Pw = blkdiag(W1, W2, 1)*P;
       
      Shaping of S and T -
      +

      general_conf_shaping_S_T.png

      Figure 30: Generalized Plant to shape \(S\) and \(T\)

      @@ -2478,15 +2483,16 @@ Weighting functions:
      -
      P = [W1 -G*W1
      -     0   G*W2
      -     1   -G];
      +
      P = [1 -G
      +     0  G
      +     1 -G];
      +Pw = blkdiag(W1, W2, 1)*P;
       
      Shaping of S and GS -
      +

      general_conf_shaping_S_GS.png

      Figure 31: Generalized Plant to shape \(S\) and \(GS\)

      @@ -2501,15 +2507,16 @@ Weighting functions:
      -
      P = [W1   -W1
      -     G*W2 -G*W2
      -     G    -G];
      +
      P = [1 -1
      +     G -G
      +     G -G];
      +Pw = blkdiag(W1, W2, 1)*P;
       
      Shaping of S, T and KS -
      +

      general_conf_shaping_S_T_KS.png

      Figure 32: Generalized Plant to shape \(S\), \(T\) and \(KS\)

      @@ -2525,16 +2532,17 @@ Weighting functions:
      -
      P = [W1 -G*W1
      -     0   W2
      -     0   G*W3
      -     1   -G];
      +
      P = [1 -G
      +     0  1
      +     0  G
      +     1 -G];
      +Pw = blkdiag(W1, W2, W3, 1)*P;
       
      Shaping of S, T and GS -
      +

      general_conf_shaping_S_T_GS.png

      Figure 33: Generalized Plant to shape \(S\), \(T\) and \(GS\)

      @@ -2550,16 +2558,17 @@ Weighting functions:
      -
      P = [W1   -W1
      -     G*W2 -G*W2
      -     0     W3
      -     G    -G];
      +
      P = [1 -1
      +     G -G
      +     0  1
      +     G -G];
      +Pw = blkdiag(W1, W2, W3, 1)*P;
       
      Shaping of S, T, KS and GS -
      +

      general_conf_shaping_S_T_KS_GS.png

      Figure 34: Generalized Plant to shape \(S\), \(T\), \(KS\) and \(GS\)

      @@ -2576,13 +2585,14 @@ Weighting functions:
      -
      P = [ W1  -W1*G*W3 -G*W1
      -      0    0        W2
      -      1   -G*W3    -G];
      +
      P = [ 1 -G -G
      +      0  0  1
      +      1 -G -G];
      +Pw = blkdiag(W1, W2, 1)*P*blkdiag(1, W3, 1);
       
      -
      +

      When shaping multiple closed-loop transfer functions, one should be very careful about the three following points that are further discussed:

      @@ -2594,7 +2604,7 @@ When shaping multiple closed-loop transfer functions, one should be very careful
      -
      +

      Mathematical relations are linking the closed-loop transfer functions. For instance, the sensitivity function \(S(s)\) and the complementary sensitivity function \(T(s)\) are linked by the following well known relation: @@ -2633,7 +2643,7 @@ This means that the Sensitivity function cannot be shaped at frequencies where t Similar relationship can be found for \(T\), \(KS\) and \(GS\).

      -
      +

      Determine the approximate norms of \(T\), \(KS\) and \(GS\) for large loop gains (\(|G(j\omega) K(j\omega)| \gg 1\)) and small loop gains (\(|G(j\omega) K(j\omega)| \ll 1\)).

      @@ -2651,7 +2661,7 @@ You can follows this procedure for \(T\), \(KS\) and \(GS\):
      Answer

      -The obtained constrains are shown in Figure 35. +The obtained constrains are shown in Figure 35.

      @@ -2664,17 +2674,17 @@ However, in some frequency band, the norms do not depend on the controller and t

      Therefore the weighting functions should only focus on certainty frequency range depending on the transfer function being shaped. -These regions are summarized in Figure 35. +These regions are summarized in Figure 35.

      -
      +

      h-infinity-4-blocs-constrains.png

      Figure 35: Shaping the Gang of Four. Blue regions indicate that the transfer function can be shaped using \(K\). Red regions indicate this is not the case

      -
      +

      The order (e.g. number of state) of the controller given by the \(\mathcal{H}_\infty\) synthesis is equal to the order (e.g. number of state) of the weighted generalized plant. It is thus equal to the sum of the number of state of the non-weighted generalized plant and the number of state of all the weighting functions. @@ -2694,49 +2704,49 @@ Two approaches can be used to obtain controllers with reasonable order:

      -
      -

      6 Mixed-Sensitivity \(\mathcal{H}_\infty\) Control - Example

      +
      +

      6 Mixed-Sensitivity \(\mathcal{H}_\infty\) Control - Example

      - +

      Let’s now apply the \(\mathcal{H}_\infty\) Shaping control procedure on a practical example.

      -In Section 6.1 the control problem is presented. -The design procedure used to apply the \(\mathcal{H}_\infty\) Mixed Sensitivity synthesis is described in Section 6.2. +In Section 6.1 the control problem is presented. +The design procedure used to apply the \(\mathcal{H}_\infty\) Mixed Sensitivity synthesis is described in Section 6.2.

      -The important step of interpreting the specifications as wanted shape of closed-loop transfer functions is performed in Section 6.3. +The important step of interpreting the specifications as wanted shape of closed-loop transfer functions is performed in Section 6.3.

      -Finally, the shaping of closed-loop transfer functions is performed in Sections 6.4, 6.5 and 6.6. +Finally, the shaping of closed-loop transfer functions is performed in Sections 6.4, 6.5 and 6.6.

      -
      -

      6.1 Control Problem

      +
      +

      6.1 Control Problem

      - +

      -Let’s consider our usual test system shown in Figure 36. +Let’s consider our usual test system shown in Figure 36.

      -
      +

      ex_test_system.png

      Figure 36: Test System consisting of a payload with a mass \(m\) on top of an active system with a stiffness \(k\), damping \(c\) and an actuator. A feedback controller \(K(s)\) is added to position / isolate the payload.

      -
      +

      The control specifications are:

      @@ -2760,11 +2770,11 @@ The considered inputs are:
      -
      -

      6.2 Control Design Procedure

      +
      +

      6.2 Control Design Procedure

      - +

      @@ -2779,11 +2789,11 @@ Here is the general design procedure that will be followed:

      -Let’s first convert the system of Figure 36 into the classical feedback architecture of Figure 37. +Let’s first convert the system of Figure 36 into the classical feedback architecture of Figure 37.

      -
      +

      ex_test_system_feedback.png

      Figure 37: Block diagram corresponding to the example system

      @@ -2806,7 +2816,7 @@ The two transfer functions present in the system are derived and defined below:

      We also define the inputs signals that will be used for time domain simulations. -They are graphically shown in Figure 38. +They are graphically shown in Figure 38.

       9: % Time Vector
      @@ -2830,24 +2840,24 @@ They are graphically shown in Figure 38.
       
      -
      +

      ex_inputs_signals.png

      Figure 38: Time domain inputs signals

      -We also define the generalized plant corresponding to the system and that will be used for time domain simulations (Figure 39). +We also define the generalized plant corresponding to the system and that will be used for time domain simulations (Figure 39).

      -
      +

      ex_general_plant_sim.png

      Figure 39: Generalized plant that will be used for simulations

      -The Generalized plant of Figure 39 is defined on Matlab as follows: +The Generalized plant of Figure 39 is defined on Matlab as follows:

      26: Psim = [0  0  Gd  G
      @@ -2876,14 +2886,14 @@ Time domain simulations will be performed by first computing the closed-loop sys
       
      -
      -

      6.3 Modern Interpretation of control specifications

      +
      +

      6.3 Modern Interpretation of control specifications

      - +

      -
      +
      1. Translate the control specifications into wanted shape of closed-loop transfer functions
      2. Conclude and the closed-loop transfer functions to be shaped
      3. @@ -2893,24 +2903,24 @@ Time domain simulations will be performed by first computing the closed-loop sys
        Hint
          -
        1. Make use of Table 9
        2. -
        3. Make use of Table 9
        4. -
        5. See Section 5.4
        6. -
        7. See Section 5.4
        8. +
        9. Make use of Table 9
        10. +
        11. Make use of Table 9
        12. +
        13. See Section 5.4
        14. +
        15. See Section 5.4

      -After converting the control specifications into wanted shape of closed-loop transfer functions, we might come up with the Table 10. +After converting the control specifications into wanted shape of closed-loop transfer functions, we might come up with the Table 10.

      In such case, we want to shape \(S\), \(GS\) and \(T\).

      -
      Table 9: Typical specifications and corresponding shaping of the Gang of four
      +
      @@ -2955,7 +2965,7 @@ In such case, we want to shape \(S\), \(GS\) and \(T\).
      Table 10: Control Specifications and associated wanted shape of the closed-loop transfer functions

      -To do so, we use to generalized plant shown in Figure 40 for the synthesis where the three closed-loop tranfert functions from \(w\) to \([z_1\,,z_2\,,z_3]\) are respectively \(S\), \(GS\) and \(T\). +To do so, we use to generalized plant shown in Figure 40 for the synthesis where the three closed-loop tranfert functions from \(w\) to \([z_1\,,z_2\,,z_3]\) are respectively \(S\), \(GS\) and \(T\).

      @@ -2970,7 +2980,7 @@ This generalized plant is defined on Matlab as follows:

      -
      +

      ex_general_plant.png

      Figure 40: Generalized plant chosen for the shaping of \(S\), \(GS\) \(T\)

      @@ -2978,7 +2988,7 @@ This generalized plant is defined on Matlab as follows:

      However, to performed the \(\mathcal{H}_\infty\) loop shaping, we have to include weighting function to the Generalized plant. -We obtain the weighted generalized plant in Figure 41, and that is computed using Matlab as follows: +We obtain the weighted generalized plant in Figure 41, and that is computed using Matlab as follows:

      44: Pw = blkdiag(W1, W2, W3, 1)*P;
      @@ -2986,7 +2996,7 @@ We obtain the weighted generalized plant in Figure 
       
      - -
      -

      6.4 Step 1 - Shaping of \(S\)

      +
      +

      6.4 Step 1 - Shaping of \(S\)

      - +

      @@ -3050,7 +3060,7 @@ To not constrain \(GS\) and \(T\) for the shaping of \(S\), \(W_2\) and \(W_3\)

      -The \(\mathcal{H}_\infty\) synthesis is performed and the obtained closed-loop transfer functions \(S\), \(GS\), and \(T\) and compared with the upper bounds set by the weighting functions in Figure 42. +The \(\mathcal{H}_\infty\) synthesis is performed and the obtained closed-loop transfer functions \(S\), \(GS\), and \(T\) and compared with the upper bounds set by the weighting functions in Figure 42.

      @@ -3059,7 +3069,7 @@ The \(\mathcal{H}_\infty\) synthesis is performed and the obtained closed-loop t
    -
    +
     Test bounds:  0.5 <=  gamma  <=  0.51
     
      gamma        X>=0        Y>=0       rho(XY)<1    p/f
    @@ -3071,14 +3081,14 @@ Best performance (actual): 0.502
     
    -
    +

    ex_results_1.png

    Figure 42: Obtained Shape Closed-Loop transfer functions (dashed black lines indicate inverse magnitude of the weighting functions)

    -Time domain simulation is then performed and the obtained output displacement and control inputs are shown in Figure 43. +Time domain simulation is then performed and the obtained output displacement and control inputs are shown in Figure 43.

    @@ -3086,19 +3096,19 @@ We can see:

    • we are not able to follow the ramp input. This have to be solved by modifying the weighting function \(W_1(s)\)
    • -
    • we have poor rejection of disturbances. This we be solve by shaping \(GS\) in Section 6.5
    • -
    • we have quite large effect of the measurement noise. This will be solved by shaping \(T\) in Section 6.6
    • +
    • we have poor rejection of disturbances. This we be solve by shaping \(GS\) in Section 6.5
    • +
    • we have quite large effect of the measurement noise. This will be solved by shaping \(T\) in Section 6.6
    -
    +

    ex_time_domain_1.png

    Figure 43: Time domain simulation results

    -Remember that in order to follow ramp inputs, the sensitivity function should have a slope of +40dB/dec at low frequency (Table 9). +Remember that in order to follow ramp inputs, the sensitivity function should have a slope of +40dB/dec at low frequency (Table 9).

    @@ -3114,22 +3124,22 @@ This can simple be done by using a second order weight:

    -The \(\mathcal{H}_\infty\) synthesis is performed using the new weights and the obtained closed-loop shaped are shown in figure 44. +The \(\mathcal{H}_\infty\) synthesis is performed using the new weights and the obtained closed-loop shaped are shown in figure 44.

    -The time domain signals are shown in Figure 45 and it is confirmed that the ramps are now follows without static errors. +The time domain signals are shown in Figure 45 and it is confirmed that the ramps are now follows without static errors.

    -
    +

    ex_results_1b.png

    Figure 44: Obtained Shape Closed-Loop transfer functions

    -
    +

    ex_time_domain_1b.png

    Figure 45: Time domain simulation results

    @@ -3137,16 +3147,16 @@ The time domain signals are shown in Figure 45 and it
    -
    -

    6.5 Step 2 - Shaping of \(GS\)

    +
    +

    6.5 Step 2 - Shaping of \(GS\)

    - +

    -Looking at Figure 46, it is clear that the rejection of disturbances is not satisfactory. -This can also be seen by the large peak of \(GS\) in Figure 44. +Looking at Figure 46, it is clear that the rejection of disturbances is not satisfactory. +This can also be seen by the large peak of \(GS\) in Figure 44.

    @@ -3164,22 +3174,22 @@ Let’s take \(W_2\) as a simple constant gain:

    -The \(\mathcal{H}_\infty\) Synthesis is performed and the obtained closed-loop transfer functions are shown in Figure 46. +The \(\mathcal{H}_\infty\) Synthesis is performed and the obtained closed-loop transfer functions are shown in Figure 46.

    -
    +

    ex_results_2.png

    Figure 46: Obtained Shape Closed-Loop transfer functions

    -Time domain simulation results are shown in Figure 47. +Time domain simulation results are shown in Figure 47. If is shown that indeed, the disturbance rejection performance are much better and only very small oscillation is obtained.

    -
    +

    ex_time_domain_2.png

    Figure 47: Time domain simulation results

    @@ -3187,11 +3197,11 @@ If is shown that indeed, the disturbance rejection performance are much better a
    -
    -

    6.6 Step 3 - Shaping of \(T\)

    +
    +

    6.6 Step 3 - Shaping of \(T\)

    - +

    @@ -3219,7 +3229,7 @@ The final weighting function \(W_3\) is defined as follows:

    The \(\mathcal{H}_\infty\) synthesis is performed and \(\gamma\) is closed to one. -The obtained closed-loop transfer functions are shown in Figure 48 and we can obverse that: +The obtained closed-loop transfer functions are shown in Figure 48 and we can obverse that:

    • The high frequency gain of \(T\) is indeed reduced
    • @@ -3228,28 +3238,28 @@ This means we will probably have slightly less good disturbance rejection and tr
    -
    +

    ex_results_3.png

    Figure 48: Obtained Shape Closed-Loop transfer functions

    -The time domain simulation signals are shown in Figure 49. +The time domain simulation signals are shown in Figure 49. We can indeed see a slightly less good disturbance rejection. However, the vibrations induced by the sensor noise is well reduced. -This can be seen when zooming on the output signal in Figure 50. +This can be seen when zooming on the output signal in Figure 50.

    -
    +

    ex_time_domain_3.png

    Figure 49: Time domain simulation results

    -
    +

    ex_time_domaim_3_zoom.png

    Figure 50: Zoom on the output signal

    @@ -3257,8 +3267,8 @@ This can be seen when zooming on the output signal in Figure -

    6.7 Conclusion and Discussion

    +
    +

    6.7 Conclusion and Discussion

    Hopefully this practical example will help you apply the \(\mathcal{H}_\infty\) Shaping synthesis on other control problems. @@ -3275,11 +3285,11 @@ If the large input usage is considered to be not acceptable, the shaping of \(KS

    -
    -

    7 Conclusion

    +
    +

    7 Conclusion

    - +

    @@ -3290,9 +3300,9 @@ If you want to know more about the “\(\mathcal{H}_\infty\) and robust cont

    -
    -

    Resources

    -
    +
    +

    Resources

    +

    For a complete treatment of multivariable robust control, I would highly recommend this book [3]. If you want to nice reference book in French, look at [4]. @@ -3330,7 +3340,7 @@ You can also look at the very good lectures below.

    Author: Dehaeze Thomas

    -

    Created: 2020-12-04 ven. 23:00

    +

    Created: 2020-12-04 ven. 23:55

    diff --git a/index.org b/index.org index 2094cae..87c2e24 100644 --- a/index.org +++ b/index.org @@ -47,6 +47,12 @@ #+PROPERTY: header-args:latex+ :post pdf2svg(file=*this*, ext="png") :END: +#+begin_export html +
    +

    This document is also available as a pdf.

    +
    +#+end_export + * LaTeX Config :noexport: #+begin_src emacs-lisp :tangle no (setq org-latex-default-table-environment "tabular")