Vous êtes sur la page 1sur 6

Proceedings of the 7th WSEAS International Conference on Power Systems, Beijing, China, September 15-17, 2007 30

Optimal PI Controller Design and Simulation of a Static Var


Compensator Using MATLAB’s SIMULINK
K. SOMSAI, A. OONSIVILAI, A. SRIKAEW& T. KULWORAWANICHPONG

Power and Energy Research Unit (PERU)

Robotic and Automation Research Unit for Real-World Applications (RARA)
School of Electrical Engineering, Institute of Engineering
Suranaree University of Technology
111 University Avenue, Muang District
Nakhon Ratchasima 30000, THAILAND
thanatchai@gmail.com

Abstract: - This paper presents graphic-based simulation and optimal PI controller design of a static var
compensator (SVC) using MATLAB’s SIMULINK. Utilization of MATLAB software simplifies problem
solving complexity and also reduces working time. In this paper, an optimal PI controller design using genetic
algorithms for the SVC was demonstrated. From which satisfactory controller design results, tests against
power and three-phase fault disturbances were carried out. Also, comparisons between those results obtained
by i) SVC with the PI controller and by ii) using power system stabilizer were examined to evaluate its
effectiveness.

Key-Words: - PI Controller, Genetic Algorithms, Static Var Compensator, Power System Stabilizer

1 Introduction MATLAB originated in the late 1970s as a “matrix


To date under modern deregulated power market laboratory” for use in matrix algebra and numerical
environment electric utility has become increasingly computation. Today, MATLAB consists of several
much more complex than the past. Apart from software features in order to enhance its computing
economic view point, stability problems are equally ability. MATLAB’s SIMULINK is a tool for
important to operate electric power system in real modeling, simulating, analyzing and designing
time [1]. The impedance of an electric power multi-domain dynamic systems [10]. It provides
transmission system and a large amount of reactive several interactive graphical block diagramming
power drawn by loads cause imperfection of power tools. With its capabilities, controller design of a
system operation, e.g. voltage drop, power losses, dynamic system based on any modern intelligent
voltage/frequency swing, etc. Static var compensator techniques such as genetic algorithms (GAs) is
(SVC) is one of FACTS (flexible AC transmission available. Engineers can observe and evaluate their
system) devices. It was first invented in the early designed parameters by simulating its associated
1970s [2]. The main function of the SVC is to SIMULINK block diagram. Together with
regulate bus voltage across a protected load due to MATLAB’s GADS (genetic algorithms and direct
reactive power loading. When load voltage variation search) TOOLBOX [11], the intelligent parameter
is detected, an SVC controller will perform the design can be implemented in GUI environment.
compensation by changing its susceptance in order This paper illustrates the way to apply the GAs to
to diminish this oscillation. To handle any stability- solve an optimal PI controller design problem of the
related problems accurate parameter estimation of SVC in order to regulate voltage variation caused by
the SVC is concerned and also parameters of the power loading and fault conditions. The basic
SVC controller, for example PI or PID type [3]. concept and structure of the SVC and its linearized
Although, from literature [3-8], there exist several controller are explained in detail in section 2.
research works describing procedure of designing Section 3 gives a brief of the step-by-step intelligent
such a controller, those are based on numerical parameter estimation based on the GAs. Section 4
computing coded in some programming language demonstrates an SVC model by using SIMULINK.
such as FORTRAN or C/C++, in which user- This section also presents simulation results of
friendly GUI (graphic user interface) is rarely found. various test case scenarios. Comparisons against
As the long history of numerical techniques for those results obtained by SVC with a PI controller
solving engineering design problems, it has become and by power system stabilizer (PSS) [1,12,13] are
widely-used GUI software, named MATLAB™ [9].
Proceedings of the 7th WSEAS International Conference on Power Systems, Beijing, China, September 15-17, 2007 31

also included in this section. Discussion and


(V − V )
conclusion are in section 5. Eɺ qe = K A to t (4)
1 + sTA
2 Linearized Control of Static Var …, where
Compensators
E q ′Vb sin δ Vb 2 ( X q − X d ′ ) sin 2 δ
SVC is a typical shunt-connected reactive power Pe = − (5)
compensator, consisting of thyristor-switched X d Σ′ 2 X d Σ′ X q Σ
capacitors (TSCs) and thyristors-controlled reactors
(TCRs) as shown in Fig. 1. For simplification, X d Σ Eq′ ( X d − X d ′ )Vb cos δ
power system oscillation stability and control can be Eq = −
X d Σ′ X d Σ′
(6)
studied by using linearized power system models.
Fig. 2 shows a single machine connected to an
infinite bus power system (SMIB system). It can be X qVb sin δ
Vtd = (7)
described according to the non-linear differential X qΣ
equations from which the traditional Phillips-
Heffron linear model [2,6] as shown in (1) – (4) for X L Eq′ Vb X d ′ cos δ
Vtq = + (8)
the system without the SVC.
X ′
dΣ X ′ dΣ

X d Σ′ = X d ′ + X L (9)

X qΣ = X q + X L (10)

X dΣ = X d + X L (11)

XL reactance of the transmission line


Xd d-axis reactance of the machine

Fig. 1. Structure of the SVC X d′ d-axis transient reactance of the machine


Xq q-axis reactance of the machine
PI
Controller X q′ q-axis transient reactance of the machine
Vt / 0 Re Xe V∞ / α
E’q /δ Vs
Vt When an SVC is installed in the system, (5) – (8)
Vref must be modified to include the effect of the
Exciter Transformer
installed SVC with a reactance of XSVC on the overall
system performance. Define C and XTL in (12) and
Firing (13). Therefore, derived equations for reactive
Controller
SVC
power compensation by using the SVC in the SMIB
(FC-TCR) system can be expressed as follows.
XL
C = 1− (12)
X SVC
Fig. 2. SMIB system with SVC
XL XL
X TL = = (13)
δɺ = ω0 ∆ω (1) C 1− X L
X SVC
( Pm − Pe − D∆ω) ′ ′
∆ω
ɺ= (2) Eq Vb sin δ Vb ( X q − X d ) sin 2δ
2
2H Pe = − (14)
′ ′
( − Eq + Eqe ) CX dΣ 2C 2 X dΣ X qΣ
Eɺ q′ = (3)
T ′
do
Proceedings of the 7th WSEAS International Conference on Power Systems, Beijing, China, September 15-17, 2007 32


X dΣ Eq ( X d − X d ′ )Vb cos δ Vtref
Eq = − (15) Vtact
′ ′ KP +
KI

X dΣ CX dΣ s

∆ω ∆δ
X qVb sin δ
1 ω0
2Hs + D s
Vtd = (16) KV K SVC
CX qΣ K1 TSVC s + 1


X L Eq Vb X d ′ cos δ
K2 K4 K5
Limiter

Vtq = + (17) ∆Eq′ 1 ∆Eqe′ KA


′ ′ Td 0′ s + K3 TA s + 1
X dΣ CX dΣ K6

By linearizing (14) – (17) at a given operating


Fig. 5. SMIB system with the SVC-PI controller
condition, the Phillips-Heffron linearized model for
the SMIB with the SVC [2,6] can be obtained as
shown in Fig. 3. 3 Intelligent Parameter Tuning Based
on Genetic Algorithms
K1 There exist many different approaches to tune
controller parameters. The GAs is well-known
∆ω ∆δ
[11,13-15] there exist a hundred of works employing
1 ω0
2Hs + D s the GAs technique to design the controller in various
forms. The GAs is a stochastic search technique that
K2 K5
K4 leads a set of population in solution space evolved
∆Eqe′
using the principles of genetic evolution and natural
∆Eq′ 1 KA
Td 0′ s + K3 TA s + 1
selection, called genetic operators e.g. crossover,
mutation, etc. With successive updating new
K6
generation, a set of updated solutions gradually
Fig. 3. Simplified control block diagram of the converges to the real solution. Because the GAs is
SMIB system without SVC very popular and widely used in most research areas
[6,14-15] where an intelligent search technique is
The control block diagram of the SMIB system applied, it can be summarized briefly as shown in
without the SVC can be depicted in Fig. 3. It defines the flowchart of Fig. 6 [15].
an uncompensated system for this paper. When the Start
SVC is connected to the SMIB system, it depends
on selection of its controller. Although there exist Specify the parameters for GA
many efficient control schemes to perform this
compensation, only a PI controller is chosen for Generate initial population

study. With the PI control structure as shown in Fig.


Time-domain simulation
4, two parameters, KP and KI, must be tuned in order
to minimize voltage oscillation in both magnitude
Find the fitness of each individual
and frequency swings. Combined with the PI In the current population
controller to control the SVC operation, the control
block diagram of the SMIB system with the SVC is Gen. = Gen.+1 Gen.>Max.Gen ?
Yes
Stop
illustrated as shown in Fig. 5. Stall Gen.>Max?

No
Measured input Apply GA operators:
Limiter Selection, crossover and mutation

KI Output Fig. 6. Flowchart of the GAs procedure


KP +
s
In this paper, the GAs is selected to build up an
Desired input algorithm to tune KP and KI parameters. The
Fig. 4. PI-type control structure procedure to perform the proposed parameter tuning
is described as follows. First, time-domain results of
magnitude and frequency swing obtained by
simulating the SMIB system in SIMULINK are
obtained. Second, the Genetic Algorithms (GADS
Proceedings of the 7th WSEAS International Conference on Power Systems, Beijing, China, September 15-17, 2007 33

TOOLBOX) is employed to generate a set of initial Variable ranges 0.1 ≤ KP, KI, ≤ 150
random parameters. With the searching process, the Objective function (discretized version):
parameters are adjusted to give response best fitting N
close to the desired response. To perform the
searching properly, its objective function is the key.
Minimize ∑ ti ∆ω(i)
i =1
In this paper, the objective function is defined in
(18).
tsim

∫ t ∆ω(t ) dt (18)
0

…, where
y desired is the desired response
ysimulated is the simulated response

4 Results and Discussion


The SMIB system as shown in Fig. 2 was employed.
According to those described in Section 2, system Fig. 7. Control block diagram of a simplified SMIB
parameters characterizing the SMIB system are formulated by using MATLAB’ SIMULINK
presented in Table 1 in both cases (with SVC-PI
controller and with PSS).

Table 1. System parameters


K1 K2 K3 K4 K5
0.5995 0.9263 0.5294 0.4319 -0.0878
K6 KVKSVC H D Td0’
0.6004 10.00 4.00 0.00 5.044
Xd Xq Xd ’ KA TA
1.00 0.60 0.30 50.00 0.05

By using MATLAB’s SIMULINK, the control Fig. 8. Control block diagram of the SMIB with
block diagram of each test case can be formed SVC-PI controller formulated by using
graphically. Although this model can be written in MATLAB’s SIMULINK
other programming codes such as C/C++,
FROTRAN, or even MATLAB programming codes, By using MATLAB’s SIMULINK, the simulation
these programs are usually complex and difficult to can be done easily. However, due to its
debug. In addition, it takes very long editing time to simplification, several adjustments during its
modify the programming codes in order to perform a numerical computing procedure cannot be changed
different task. In this paper, a control model for each by users. One of frequent errors found by using the
case is presented in Figs. 7 and 8 for the SMIB SIMULINK is the mismatch of time stepping. To
without and with the SVC, respectively. guarantee accuracy and stability of simulated results,
In this paper, the PI parameter tuning was variable time stepping is applied to most of
performed by using the GAs. The success of the SIMULINK numerical computation block, for
tuning is associated with the GA’s parameter setting. example the ODE solver. Different value of KP and
The following is a set of parameters used in this KI leads to a different number of sampling after the
research. simulation. For example, given that the simulation
time span is set to 0.0 – 1.0 second. If the KP and KI
GA’s parameter setting are 1.0 and 10.0 respectively, the simulation
Population size 20 produces a 1000×1 array for variable x. By adjusting
Crossover probability 80% the value of the KP and KI to 2.5 and 5.0
Mutation probability 1.0% respectively, the variable x becomes a 1150×1 array
Maximum generation counted 1000 for this case. This results in computational
Maximum generation stalled 50 inaccuracy of the objective function. To play with
this inaccuracy, linear interpolation [19] of every
Proceedings of the 7th WSEAS International Conference on Power Systems, Beijing, China, September 15-17, 2007 34

simulated output is required. If a 1000×1 array of To evaluate the effectiveness of the design
variable x is selected, all x obtained by the algorithm, tests against i) power and ii) three-phase
simulation must be interpolated to give a fault disturbances are situated. The obtained results
corresponding value at fixed 1000 positions of the of the power disturbance case are shown in Figs. 11
simulated time span. Fig. 9 describes this and 12 for the generator speed and the generator
interpolation. The circles on the graph indicate fixed terminal voltage variations, respectively. In the same
positions of the interpolation, while the triangles manner, Figs. 13 and 14 also present the simulated
present points obtained by simulating the results of the three-phase fault disturbance case.
SIMULINK model. Using the linear interpolation, As a result, responses due to some disturbances
the squares estimating the simulated outputs at given given in this paper are stabilized and fast when the
positions can be calculated. optimal PI parameter with linear interpolation in
order to solve a problem of computational
inaccuracy is taken into account. Furthermore, it
gives the best response compared with the others.
-4
x 10
6
PSS Case
4 NI SVC Case
IP SVC Case

Gen. Speed Deviation (p.u.)


0

-2

-4

Fig. 9. Linear interpolation to estimate simulated -6


output obtained by using SIMULINK
-8

With 30 computational trials in case of the -10


0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
Time (s)
parameter tuning based on the GAs, one trial is
selected to present the convergence characteristic of Fig. 11. Generator speed variation due to
the PI tuning algorithm as shown in Fig. 10. In the power disturbance test case
addition, the best parameters obtained from each 1.005
PSS Case
case are put in Table 2. 1.004 NI SVC Case
IP SVC Case
1.003

Table 2. Best PI parameters for each test case


Gen. Terminal Voltage (p.u.)

1.002

Case KP KI Cost 1.001

1. NI case 1.0167 11.9559 3.12×10-6 1

2. IP case 0.3474 11.3270 3.23×10-6 0.999

0.998
NI case denotes non-interpolation case
0.997
IP case denotes interpolation case 0.996

0.995
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
Time (s)

Fig. 12. Generator terminal voltage variation


due to the power disturbance test case
0.02
PSS Case
0.015 NI SVC Case
IP SVC Case
Gen. Speed Deviation (p.u.)

0.01

0.005

-0.005

-0.01

-0.015
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
Time (s)
Fig. 10. Convergence of the PI parameter tuning
using MATLAB’s GADS TOOLBOX for the first Fig. 13. Generator speed variation due to the
100 consecutive generation three-phase fault disturbance test case
Proceedings of the 7th WSEAS International Conference on Power Systems, Beijing, China, September 15-17, 2007 35

1.3
on Power Delivery, Vol. 12, No. 2, 1997, pp.
1.2
PSS Case 941-946.
NI SVC Case

1.1
IP SVC Case [5] H.F. Wang, Phillips-Heffron Model of Power
Systems Installed with STATCOM and
Gen. Terminal Voltage (p.u.)

1
Applications, IEE Proceedings: Generation,
0.9
Transmission and Distribution, Vol. 146, No. 5,
0.8
1999, pp. 521-527.
0.7
[6] Y.P. Wang, D.R. Hur, H.H. Chung, N.R.
0.6
Watson, J. Arrillaga, S.S. Matair, A genetic
0.5
algorithms approach to design an optimal PI
0.4
controller for static VAr compensator, Int. Conf.
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5 Power System Technology (PowerCon 2000),
Time (s)
Vol. 3, 4–7 December 2000, pp. 1557-1562.
Fig. 14. Generator terminal voltage variation due to [7] M.A. Abido, Y.L. Abdel-Magid, Investigation of
the three-phase fault disturbance test case the Effectiveness of Exicitation and FACTS-
Based Controllers on Power System Stability
5 Conclusion Enhancement, The 6th Saudi Engineering
This paper illustrates the utilization of MATLAB’s Conference, Vol. 4, December 2002, pp. 281-
SIMULINK to optimal PI controller design for a 296.
static var compensator, which is connected to an [8] M.L. Kothari, J.C.Patra, Design of Statcom
infinite bus power system. The proposed design Controllers with Energy Storage System Using
includes linear interpolation of every simulated GEA, The 37th Annual North American Power
output to distribute all state variables uniformly over Symposium, 23-25 October 2005, pp. 260-266.
all fixed points of calculation. The computational ®
[9] The MathWorks Inc., MATLAB The language
inaccuracy can be eliminated. In addition, the of technical computing, CD-ROM Manual, 2004.
simulation results confirm that the optimal PI ®
controller design using the GAs together with linear [10] The MathWorks Inc., SIMULINK Model-
interpolation to enhance computational inaccuracy based and system-based design, CD-ROM
gives good performances due to both power and Manual, Using Simulink Version 4, 2001.
three-phase fault disturbances. [11] The MathWorks Inc., Genetic Algorithms and
Direct Search TOOLBOX, CD-ROM Manual,
2004.
6 Acknowledgement [12] H. Sadaat, Power system analysis, McGraw-
The authors would like to acknowledge the financial Hill, 2004.
support from Suranaree University of Technology, [13] M. Rashidi, F. Rashidi, H. Monavar, Tuning of
Nakhon Ratchasima, THAILAND, during a period power system stabilizers via genetic algorithm
of this work. for stabilization of power system, IEEE Int.
Conf. Systems, Man and Cybernetics, Vol. 5, 5-
References: 8 October 2003, pp. 4649 – 4654.
[1] P. Kundur, Power system stability and control, [14] T. Kulworawanichpong, K-L. Areerak, K-N.
McGraw-Hill, 1994. Areerak, P. Pao-la-or, P. Puangdownreong, S.
[2] Y.H. Song, A.T. Johns, Flexible AC Sujitjorn, Dynamic parameter identification of
transmission systems (FACTS), The Institute of induction motors using intelligent search
Electrical Engineers, 1999. techniques, The 24th IASTED Int. Conf.
[3] A.H.M.A. Rahim, S.G.A. Nassimi, Synchronus Modelling, Identification, and Control (MIC
Generator Damping Enhancement Through 2005), Austria 2005, pp. 328-332.
Coordinated Control of Exciter and SVC, IEE [15] T. Charuwat, T. Kulworawanichpong, Genetic
Proceedings: Generation, Transmission and based distribution service restoration with
Distribution, Vol. 143, No. 2, 1996, pp. 211-218. minimum average energy not supplied, The 8th
[4] H.F. Wang, F.J. Swift, A Unified Model for the International Conference on Adaptive and
Analysis of FACTS Devices in Damping Power Natural Computing Algorithms
System Oscillations Part I: Single-machine (ICANNGA2007), 11–14 April 2007, pp. 230-
Infinite-bus Power Systems, IEEE Transaction 239.

Vous aimerez peut-être aussi