Professional Documents
Culture Documents
1: Introduction:
PID controllers are extensively used in industry due to their feasibility, easy implementation and
robustness to external disturbances. In this chapter the tuning of a PID controller is investigated,
and the GA defined in the previous chapter is used to tackle the optimization problem[1]. The
method is tested to the AVR system for which the obtained controller achieves high performances.
Set point (SP): is the operating point or the value that we want the process to be. This
value is set by the user.
Process Variable (PV): is the actual value of the output which is fed back to the PID
through a sensor.
PID controller
Controller output
Process variable(PV)
The PID controller looks at the set point and compares it with the actual value of the Process
Variable (PV). If the SP and the PV are the same then the controller doesnt have to do anything
then it will set its output to zero. However, if there is a disparity between the SP and the PV we
have an error and corrective action is needed.
We define the error e(t) as follow: e(t)=SP-PV .
The controller output c(t) is defined in time domain by the following equation: ,c(t)=K-p.e(t)+,Ki.,0-t-e(t)dt +,K-d..,,.-. ...(1)
In frequency domain, the PID controller equation is given by the following equation:
C(s) = ,(K-p.+,,K-i.-.+,K-d.)() (2)
It is clear from the above two equations that the PID is mainly composed of three controllers:
Proportional controller.
Integral controller.
Derivative controller.
/
Figure 02: Block diagram of the PID controller.
If the proportional gain is very high, the system can become unstable but if Kp is very small
the control action may be slower when responding to system disturbances. Hence Kp will have
the effect of reducing the rise time and reducing but never eliminating steady state error.
Fast responses.
Good stability.
Unfortunately, for practical systems these two wishes can not be achieved simultaneously. In
other words, the faster response, the worse stability and good stability results in slower response.
We use tuning in order to look for compromising between stability and system response to get
acceptable stability and medium fastness of response.
,,-2.-,-1..,1-4. .
The figure below illustrates this rule:
/
Figure 03: Ziegler-Nichols stability condition.
/
Figure 04: measure of the ultimate period.
Kp
Ki
Kd
PID
0.6Ku
2Kp/Tu
0.125.Tu.Kp
/
Figure 05: AVR step response using Ziegler-Nichols tuning method.
The AVR step response information are gathered in the table below:
performances
results
PO
Ts
Tr
58.3%
4.13s
0.207s
Advantages:
1. Very little knowledge of the plants is required.
Disadvantages:
1. It may be time consuming if several trials are required and the system
Kp
Ki
Kd
Rise time
Decrease
Decrease
Small change
Overshoot
Increase
Increase
Decrease
Settling time
Small change
Increase
Decrease
Decrease
Increase
Not affected
Stability
Degrade
Degrade
Improved
From the above table, we remark that if we increase Kd we will reduce both
overshoot and system settling time without affecting the system stability.
In order to illustrate this fact ,we consider the previous PID gains gotten using
Ziegler Nichols tuning method and we manually change Kd in the aim of getting
better step response.