Subsections

6.3 The Controller Design Process  

  

Once you have specified the controller formula using the ``Controller Template'' and the ``Controller Structure'' window, you have to determine the controller specifications and objectives. There are two major ingredients that determine how RaPID computes your controller (see Figure 6.2):

1.
The design parameters of the ``Control Design Parameters'' window. In Section 6.3.1 we discuss how you specify your control objectives.
2.
These control objectives also depend on the reference and/or load and disturbance signals. In Section 6.3.2 we discuss how you specify them.
You can further fine tune your design from the main ``Control Design'' window with the parameters ``Robustness'' and ``HF Gain'' (Section 6.3.3).

6.3.1 Control Design Parameters       

In the ``Control Design Parameters'' window of Figure 6.8 you state your controller objectives.

A. Controller Type


  
Figure 6.8: The ``Control Design Parameter'' window where you specify your controller specifications. In this window you have chosen for ``Tracking Only''. You then specify which ``Tracking'' performance you want to optimize (rise time, settling time, energy or integrated time absolute error) and what the maximal allowable overshoot is. RaPID automatically computes the optimal controller for you.
\begin{figure}
\centering
\includegraphics [width=10.5cm]{line1.ps}
\end{figure}


With the ``Controller Type'' parameter in Figure 6.8 you choose which performance is most important for you. Depending on your choice, the two sets of controller parameters ${\cal P}_{\mbox{\scriptsize Feedback}}$ and ${\cal P}_{\mbox{\scriptsize Feedforward}}$ (see Section 6.2.1) are used to optimize the performance indices. This is illustrated in Table 6.2. The feedback parameters are always used to optimize the primary goal specified by the ``Control Type'' (Tracking Objective or Variance Objective). The feedforward parameters (if any) are always used to minimize the Tracking Objective (since they are of no influence to the load/disturbance rejection).


 
Table 6.2: Different choices for the controller type and the use of the parameter sets ${\cal P}_{\mbox{\scriptsize Feedback}}$ and ${\cal P}_{\mbox{\scriptsize Feedforward}}$ to optimize different objectives. The feedback parameters are used to optimize the primary goal specified by the ``Control Type'' (Tracking or Variance). The feedforward parameters (if any) are always used to minimize the Tracking Objective (since they are of no influence to the disturbance rejection).
1||l|Controller Type 1l||Feedforward 1c|${\cal P}_{\mbox{\scriptsize Feedback}}$ 1c||${\cal P}_{\mbox{\scriptsize Feedforward}}$
Tracking Only No Tracking Objective -
  Yes Tracking Objective Tracking Objective
Variance Only No Variance Objective -
Variance & Tracking Yes Variance Objective Tracking Objective
 


In what follows we shortly discuss the two possible objectives indices: Tracking and Variance.


B. Tracking Objective            

For tracking, RaPID optimizes the feedback and/or feedforward parameters (see Table 6.2) such that one of the following engineering objectives is minimized (see also Figure 6.8):

Rise Time:
Minimize the process output rise time when the reference signal is applied to the closed loop system. This is only possible when the reference signal is a step or a polynomial step, since otherwise the rise time can not be defined.
Settling Time:
Minimize the process output settling time when the reference signal is applied to the closed loop system. This is only possible when the reference signal is a step or a polynomial step, since otherwise the settling time can not be defined.
Energy:
Minimize the total energy in the error signal when the reference signal is applied to the closed loop system:

\begin{displaymath}
\sum_{k=1}^N (r_k - y_k)^2 \end{displaymath}

where rk is the reference and yk is the process output due to this reference.
ITAE:
Minimize the ``Integral Time Absolute Error'' when the reference signal is applied to the closed loop system

\begin{displaymath}
\sum_{k=1}^N k \vert r_k - y_k\vert \end{displaymath}

where rk is the reference and yk is the process output due to this reference.
In Section 6.3.2 it is discussed how you specify the reference signal used in any of the four criteria above.

The following engineering constraints are taken into account during the optimization:

Overshoot:
The overshoot in the process output should not exceed the value you specified in the ``Control Design Parameters'' window (Figure 6.8). This is only taken into account when the reference signal is a step or a polynomial step, since otherwise the overshoot can not be defined.
Saturation:
The process input is saturated at the values you entered when defining the project (see for instance Figure  3.1). The controller anti-windup is also taken into account during the optimization.
Robustness:
The robustness of the controller as defined in Section 6.3.3
Sensitivity:
The noise sensitivity of the controller as defined in Section 6.3.3.


C. Variance Objective            


  
Figure 6.9: The ``Control Design Parameter'' window allows you to specify your controller specifications. In this window you have chosen for ``Variance and Tracking''. You then specify which ``Variance'' performance you want to optimize (overshoot, settling time, energy, integrated absolute error or integrated time absolute error) and what the origin of the variance is (a load or an output disturbance). When there are no feedforward parameters the text ``Variance and Tracking'' changes into ``Variance Only''. RaPID automatically computes the optimal controller for you. If you have specified a controller structure with free feedforward parameters, then these are used to optimize the performance specified under ``Additional Tracking''.
\begin{figure}
\centering
\includegraphics [width=10.5cm]{line1.ps}
\end{figure}


For variance, RaPID optimizes the feedback parameters (see Table 6.2) such that one of the following engineering objectives is minimized (see also Figure 6.9):

Overshoot:
Minimize the overshoot of the process output when the load or disturbance (depending on ``Origin'' in Figure  6.9) is applied to the closed loop. This is only possible when the disturbing signal is a step or an impulse, since otherwise the overshoot can not be defined. Note that there is no relation with the overshoot value specified in the ``Tracking'' objective.
Settling Time:
Minimize the settling time of the process output when the load or disturbance (depending on ``Origin'' in Figure  6.9) is applied to the closed loop. This is only possible when the disturbing signal is a step or an impulse, since otherwise the settling can not be defined.
Energy:
Minimize the total energy of the process output when the load or disturbance (depending on ``Origin'' in Figure 6.9) is applied to the closed loop:

\begin{displaymath}
\sum_{k=1}^N (y_k)^2 \end{displaymath}

where yk is the process output due to the load/disturbance signal.
IAE:
Minimize the ``Integral Absolute Error'' of the process output when the load or disturbance (depending on ``Origin'' in Figure 6.9) is applied to the closed loop:

\begin{displaymath}
\sum_{k=1}^N \vert y_k \vert \end{displaymath}

where yk is the process output due to the load/disturbance signal.
ITAE:
Minimize the ``Integral Time Absolute Error'' of the process output when the load or disturbance (depending on ``Origin'' in Figure 6.9) is applied to the closed loop:

\begin{displaymath}
\sum_{k=1}^N k \vert y_k\vert \end{displaymath}

where yk is the process output due to the load/disturbance signal.
In Section 6.3.2 it is discussed how you specify the load or disturbance signal used in any of the five criteria above.

The following engineering constraints are taken into account during the optimization:

Saturation:
The process input is saturated at the values you entered when defining the project (see for instance Figure  3.1). The controller anti-windup is also taken into account during the optimization.
Robustness:
The robustness of the controller as defined in Section 6.3.3
Sensitivity:
The noise sensitivity of the controller as defined in Section 6.3.3.

D. Nominal closed loop point        

The final set of parameters you have to specify in the ``Control Design Parameters'' window (Figures 6.8 and 6.9) defines the nominal closed loop point. It contains two entries:

Initial Input:
This is the process input at the moment the closed loop experiment (simulation) is started. You should enter the process input value corresponding to the ``Initial Output'' (see below).

If the manual reset can be freely determined[*] it is also set equal to this ``Initial Input''.

Initial Output:
This is the initial output of the process corresponding to the ``Initial Input'' when working in closed loop. This value also determines the initial value of the reference signal.

6.3.2 Control Design Signal Definitions                

In the final step of the control design you determine under what signal conditions the controller has to perform optimally. Indeed, during the optimization of the Tracking and/or Variance Objective (Section 6.3.1), the reference and/or load and/or disturbance signal play an important role. The optima are determined with respect to these signals, and it is thus important to shape them well.

The configuration plot in the main ``Control Design'' window indicates which signals (reference, load or disturbance) are active in the design of the controller as follows:

Signals used for control design and simulation
are marked by a square box drawn in front of the corresponding arrow box,
Signals only used for simulation
on the other hand have no square box drawn in front of the corresponding arrow box.
For instance in Figure 6.1, only the reference plays a role in the design of the controller (since there is a square box in front of the reference arrow box). Which signals are used for control design, depends on the choices you made in the ``Control Design Parameters'' window.

There are two ways in which you can alter the controller design signals:

1.
After you hit the ``OK'' button in the ``Control Design Parameters'' window (Figures 6.8 and  6.9), a signal definition window pops up in which you can define the reference, load or disturbance signal (Figure  6.10).
2.
When you click on any of the arrow boxes with a square in front, the corresponding signal design window pops up. After you have altered the signal and hit the ``OK'' button, the controller is automatically re-computed. You achieve the same effect through the menu Controller $\rightarrow \;$Define Reference, Define Load or Define Disturbance.

When defining a reference, load or disturbance signal all types of signals as described in Section 4.2 are available (for instance you can load your own disturbance signal and optimize the controller for the rejection of that signal).

Note that at the start of the ``Control Design'' window, and in ``Tracking Only'' mode, the value of the load is determined such that the output change due to the load is the halve of the output change due to the reference. This could lead to very large load signals. You can reduce the size of the load as described in this section.


  
Figure 6.10: The ``Design Reference Definition'' window allows you to specify the reference used for the optimization of the controller. In this case a smooth polynomial step has been specified. You define the load and/or disturbance signals with similar windows.
\begin{figure}
\centering
\includegraphics [width=10.8cm]{line1.ps}
\end{figure}


6.3.3 Robustness and HF Gain  

The two remaining parameters you can use to fine-tune the control design are the ``Robustness'' and ``HF Gain'' parameter in the main RaPID ``Controller Design'' window. In this Section we describe their meaning and how they affect the final design.

Robustness       

The robustness measure (in percent) determined the minimal distance in the complex plane between the loop gain and the critical point at -1. More importantly, when you specify a certain ``Robustness'', you implicitly also guarantee minimal gain and phase margins.

One of the extra constraints in the optimizations of Section 6.3.1 is that in the Nyquist plot, the loop gain (the product of process and controller) should stay outside a parabola around the critical point -1 (Figure 6.11). The higher ``Robustness'' you enter, the larger the parabola becomes and thus the further the Nyquist plot will stay away from the critical point.


  
Figure 6.11: The Nyquist plot of the designed controller has to stay outside the parabola (thick line) in the critical -1 point.
\begin{figure}
\centering
\includegraphics [width=12.1cm]{line1.ps}
\end{figure}


The parabola actually mimics an M circle (An M-circle is a circle with radius 1/M around the critical point. The mimicking is performed in a sense that the minimum of the parabola is at 1/M and the crossings with the x-axis at -1-1/M and -1+1/M.), with a value for M given as  
 \begin{displaymath}
M = \frac{100}{\mbox{Rob}} \qquad , \qquad \frac{1}{M} = \frac{\mbox{Rob}}{100}\end{displaymath} (12)
where $\mbox{Rob}$ is the robustness value entered in the RaPID controller main window. For instance, for the example of Figure 6.11, a robustness of 50 percent was entered ($\mbox{Rob} = 50$), which leads to an M value of 2 (1/M = 0.5). Note that you can make Nyquist plots like in Figure 6.11 with the menu View $\rightarrow \;$Loop Properties as described in Section 6.8.1.  

The M circle is closely related to the gain and phase margins as indicated in Table 6.3. The default choice of $\mbox{Rob} = 65 \%$ leads to a guaranteed gain margin of 9.1 dB and phase margin of 38 degrees. Finally, note that the maximum of the transfer function from disturbance to process output is also equal to M, which implies that the maximal amplification of a disturbance entering at the output equals M.


 
Table 6.3: Different choices for the robustness value $\mbox{Rob}$ and corresponding values for the M-circle. The last two columns indicate the guaranteed gain (in dB) and phase (in degrees) margins for the specific choices of $\mbox{Rob}$.
$\mbox{Rob}$ M GM (dB) PM (deg)
95 1.05 26 57
90 1.11 20 53
80 1.25 14 47
70 1.43 10.5 41
65 1.54 9.1 38
60 1.67 8.0 35
50 2.00 6.0 29
40 2.50 4.4 23
30 3.33 3.1 17
20 5.00 1.9 11
10 10.0 0.9 5.7
5 20.0 0.4 2.9
 


A good practical rule (Since it is a practical, heuristic rule, it is not always guaranteed to be fulfilled.) for the determination of $\mbox{Rob}$ is as follows:

Note also that for fast variance rejection controllers, it is often needed to allow for a low ``Robustness''.

After the controller is designed, the main ``Control Design'' window displays the attained robustness (the grey edit box next to the white edit box in the main ``Control Design'' design window of Figure 6.1). The attained robustness will always be larger than or equal to the one you requested. When it is larger, the robustness constraint was not active during the optimization.

When you can not find a good value for the robustness by trial and error, the ``Controller Parameter Sweep'' window of Section 6.9 provides a solution.

High Frequency Controller Gain     

A second parameter which you can use to fine-tune the controller design is the ``HF Gain'' or the High Frequency Controller Gain. This value indicates the maximal gain of the controller at high frequencies (see Section 6.10 for the exact definition of ``high'' frequencies).

This measure indicates how the noise disturbance at the process output will be amplified towards the process input. So, for instance a ``HF Gain'' of 2 as in Figure 6.1 indicates that noise with an amplitude of 1 at the process output will result in a noisy disturbance on the process input (controller output) signal with an amplitude of 2.

One of the extra constraints in the optimizations of Section 6.3.1 is that the controller gain at high frequencies should stay below the ``HF Gain'' (Figure 6.12). Note that you can make controller gain plots like in Figure 6.12 with the menu View $\rightarrow \;$Loop Properties as described in Section 6.8.1.


  
Figure 6.12: A frequency plot of the controller gain and the limit at high frequencies (the thick line at the right). This High Frequency Controller Gain constraint limits the amplification of noise at the process output towards the process input.
\begin{figure}
\centering
\includegraphics [width=12.1cm]{line1.ps}
\end{figure}


A good practical rule (Since it is a practical, heuristic rule, it is not always guaranteed to be fulfilled.) for the determination of the ``HF Gain'' is as follows:

After the controller is designed, the main window also displays the attained high frequency gain (the grey edit box next to the white edit box in the main ``Control Design'' window of Figure 6.1). The attained ``HF Gain'' will always be smaller than or equal to the one you requested. When it is smaller, the high frequency gain constraint was not active during the optimization.

When you can not find a good value for the ``HF Gain'' by trial and error, the ``Controller Parameter Sweep'' window of Section 6.9 provides a solution.



Peter Van Overschee
1/21/1998