Professional Documents
Culture Documents
Abstract This paper describes how PID controllers can functions are
be designed by optimizing performance subject to robustness ki ki
constraints. The optimization problem is solved using convex- CPI (s) = kp + , CPID (s) = kp + + kd s,
concave programming. The method admits general process s s
descriptions in terms of frequency response data and it can where kp , ki , and kd are the controller parameters. A block
cope with many different constraints. Examples are presented diagram of the system is shown in Fig. 1.
and some pitfalls in optimization are discussed. Measurement noise can be reduced by a second order filter
with the transfer function
I. INTRODUCTION
1
Gf (s) = , (1)
Controller design is a rich problem because it requires 1 + sTf + s2 Tf2 /2
that many factors related to performance and robustness are
where Tf is the filter time constant. A first order filter may
taken into account [18]. Many features can be captured by
suffice for PI control but a second order filter is required to
formulating the design problem as a constrained optimization
ensure roll-off when derivative action is used; see [1].
problem [1], [7], [12], [13], [15], [17].
The combinations of the controllers and the filter transfer
Convex programming [3] is a powerful optimization tech-
functions are denoted by
nique, which has guaranteed convergence and efficient algo-
rithms that have been packaged in easy-to-use tools [5], [9]. C(s) = CPI (s)Gf (s), C(s) = CPID (s)Gf (s).
There is a modification called convex-concave optimization
Using this representation ideal controllers can be designed
which admits nonconvex criteria and constraints [4], [20].
for the augmented plant P (s)Gf (s).
There is in general no guarantee of convergence to a global A good controller should give a closed-loop system with
minimum but the algorithms converge to a saddle point or a fast response to command signals ysp , load disturbances d
local minimum. should be well attenuated and measurement noise should not
In this paper we will consider convex-concave program- generate too large control signals. In addition the closed-loop
ming for design of PID controllers. Following the ideas system should be insensitive to variations in the dynamics of
in [2], [15] we consider maximization of integral gain the process P (s).
subject to robustness constraints on the sensitivities and other Common criteria for control performance are the inte-
constraints. Both disturbance attenuation and response time grated error and the integrated absolute error
are inversely proportional to integral gain. Unconstrained
Z Z
maximization of integral gain does not necessarily lead
to good controllers because the responses may be highly IE = e(t)dt, IAE = |e(t)| dt,
oscillatory. 0 0
PID controllers have been designed using optimization where e is the control error due to a unit step load disturbance
earlier with similar problem formulations [1], [7], [15]. applied at the process input or the process output or a unit
The proposed method is similar to M-constrained Integral step change in the command signal. The quantities IE and
Gain Optimization, MIGO [10], [11], but it admits more IAE are good measures of load disturbance attenuation for
flexible constraints and the computations are simpler. Similar controllers with integral action. For systems that are well
approaches using linear programming can be found in [12], damped, the two criteria are approximately the same. It can
[13], [17], and [6] for MIMO systems. The advantages of be shown [1] that
convex-concave optimization are that the software package 1
IE = (2)
CVX [5], [9] allows for very compact programs, and many ki
different criteria and constraints can be accommodated. The
technique can also be extended to more complicated systems. d n
ysp e u y
II. PID DESIGN C(s) P (s)
Consider a closed loop system with PI or PID control.
The process transfer function is P (s), and controller transfer
1
1 Department of Automatic Control, Lund University, Sweden. Corre-
sponding author: martin.hast at control.lth.se
2 Department of Electrical Engineering, Stanford University Fig. 1. Block diagram.
4462
1 1
0.5 0.5
0 0
0.5 0.5
L(i)
L(i)
1 1
1.5 1.5
2 2
2.5 2.5
3 3
3 2.5 2 1.5 1 0.5 0 0.5 1 3 2.5 2 1.5 1 0.5 0 0.5 1
L(i) L(i)
Fig. 2. Nyquist plots of the loop transfer functions for PI control (red Fig. 4. Nyquist plots of the loop transfer functions for PI control (red
dashed lines) and PID control (blue solid lines) of the process P (s) = e s dashed lines) and PID control (blue solid lines) of the process P (s) = e s
in Example 1. The robustness constraints Ms = 1.4 and Mt = 1.4 are with 20% relative uncertainty in Example 2. The robustness constraints
shown in red and black circles. Ms = 1.4 and Mt = 1.4 are shown in red and black circles.
0.3 0.3
Output signal, y
Output signal, y
0.2 0.2
0.1 0.1
0 0
0.1 0.1
0 0.5 1 1.5 2 2.5 3 0 0.5 1 1.5 2 2.5 3
0.5 0.5
Control signal, u
Control signal, u
0 0
0.5 0.5
1 1
1.5 1.5
0 0.5 1 1.5 2 2.5 3 0 0.5 1 1.5 2 2.5 3
Time Time
Fig. 3. Responses to a unit step load disturbances
for PI (red dashed) and Fig. 5. Responses to a unit step load disturbances for
PI (red dashed) and
PID control (blue solid) of the process P (s) = e s in Example 1. PID control (blue solid) of the process P (s) = e s with 20% relative
uncertainty in Example 2.
4463
3 procedure gives the PID controller
2 6.62
CIE (s) = 3.31 + + 6.26s. (17)
s
1
L (i)
The poles for the closed-loop system are located in s =
0 1.25 1.73i, 0.25 0.87i which suggests that the step
responses will be poorly damped. The blue curve in Fig. 8
1
shows that the Nyquist plot of the loop transfer function has
2
a kink and the corresponding time responses in Fig. 9 are
highly oscillatory. This behaviour is counter-intuitive because
3
6 5 4 3 2 1 0
we may expect that strong robustness constraints may induce
L(i) closed loop systems with good damping. This is indeed the
Fig. 6. Nyquist plots of the loop transfer functions for PI control of the
1 case for PI control but not for PID control [2], [15]. The kink
unstable process P (s) = in Example 3. The robustness
(s 1)(0.1s + 1) will be a little smaller with tighter robustness constraints but
constraints Ms = 1.4 and Mt = 1.4 are shown in red and black circle it remains even if we require that sensitivities are less than
respectively. The loop transfer function corresponding to the initial controller
parameters kp = 6 and ki = 1 are shown in dashed curve. The loop transfer 1.1. The problem is discussed in [1] where it is labelled
function corresponding to the optimal controller parameters kp = 4.67 and the derivative cliff ; see Figure 6.24 in [1]. The problem can
ki = 1.76 are shown in solid curves. be avoided in several different ways, one way is to change
the criterion to IAE; see [8]. Another is to constrain the
0.3 optimization so that the edges are avoided. In the MIGO
Output signal, y
4464
TABLE II
1
C ONTROLLER PARAMETERS AND PERFORMANCE MEASURES FOR THE
0.5 SYSTEMS E XAMPLE 4.
0
Optimization kp ki kd IE IAE ymax
0.5 IE-min. 3.31 6.62 6.26 0.15 0.74 0.126
L(i)
2.5
3
cellence Center and the Swedish Foundation for Strategic
3 2.5 2 1.5 1 0.5 0 0.5 1
L(i) Research through PICLU.
Fig. 8. Nyquist plots of the loop transfer functions for PID control of the
process P (s) = (s + 1)3 in Example 4. All curves are obtained from R EFERENCES
optimization problems where the sensitivity constraint was Ms = 1.4. The
blue curve is obtained with no additional constraints. The green curve is [1] K.J. Astrom and T. Hagglund. Advanced PID Control. ISA, Reasearch
obtained with the additional constraint kd 3.82. The red curve is obtained Triangle Park, NC, 2006.
with the additional constraint that the curvature of the Nyquist plot is less [2] K.J. Astrom, H. Panagopoulos, and T. Hagglund. Design of PI
than Ms . The cyan curve is obtained by minimizing IAE using the algorithm controllers based on non-convex optimization. Automatica, 34(5):585
in [8]. 601, 1998.
[3] S. Boyd and L. Vandenberghe. Convex optimization. Cambridge
university press, 2004.
[4] Stephen Boyd. Sequential Convex Programming, 2013. Lecture note
loop transfer function. The optimization problems are con- http://www.stanford.edu/class/ee364b/lectures/
veniently solved using CVX, the code is very compact and seq_slides.pdf.
[5] Inc. CVX Research. CVX: Matlab software for disciplined convex
additional convex-concave constraints can be included. programming, version 2.0 beta. http://cvxr.com/cvx, Septem-
Since the PID controller only has three parameters the ber 2012.
[6] G. Galdos, A. Karimi, and R. Longchamp. H controller design for
design problem can be solved by gridding. This approach spectral MIMO models by convex optimization. Journal of Process
[14] has the advantage that any criteria and constraints can Control, 20(10):11751182, 2010.
be used. However, the complexity of gridding increases dra- [7] O. Garpinger. Design of robust PID controllers with constrained
control signal activity. Licentiate Thesis ISRN LUTFD2/TFRT- -3245-
matically with the number of controller parameters. Convex -SE, March 2009.
optimization does not suffer from this difficulty and it can [8] O. Garpinger and T. Hagglund. A software tool for robust PID design.
therefore also be applied to other controller structures such In Proc. 17th IFAC World Congress, Seoul, Korea, 2008.
[9] M. Grant and S. Boyd. Graph implementations for nonsmooth convex
as multi-variable PID or fixed higher-order controllers. programs. In V. Blondel, S. Boyd, and H. Kimura, editors, Recent
Advances in Learning and Control, Lecture Notes in Control and
ACKNOWLEDGMENT Information Sciences, pages 95110. Springer-Verlag Limited, 2008.
This work was supported by the Swedish Research Coun- http://stanford.edu/boyd/graph_dcp.html.
[10] T. Hagglund and K.J. Astrom. Revisiting the Ziegler-Nichols tuning
cil through the LCCC Linnaeus Center, the ELLIIT Ex- rules for PI control. Asian Journal of Control, 4(4):364380, Decem-
ber 2002.
[11] T. Hagglund and K.J. Astrom. Revisiting the Ziegler-Nichols step
response method for PID control. Journal of Process Control,
0.2 14(6):635650, 2004.
[12] A. Karimi and G. Galdos. Fixed-order H controller design for non-
Output signal, y
0.1
parametric models by convex optimization. Automatica, 46(8):1388
1394, 2010.
[13] A. Karimi, M. Kunze, and R. Longchamp. Robust controller design
0 by linear programming with application to a double-axis positioning
system. Control Engineering Practice, 15(2):197208, 2007.
0.1 [14] P. Nordfeldt and T. Hagglund. Design of PID controllers for decoupled
0 5 10 15 20 25 30
multi-variable systems. In Proc. 16th IFAC World Congress, Prague,
Czech Republic, July 2005.
0.5 [15] H. Panagopoulos, K.J. Astrom, and T. Hagglund. Design of PID
Control signal, u
4465