Design of Optimal PID Controller For LFC and AVR in Power System Using PSO
Design of Optimal PID Controller For LFC and AVR in Power System Using PSO
Vid(t+1)=ω.vid(t)+c1*rand()*(pbestid-xid(t))
+c2*rand()*(gbestd-xid(t)) (5)
Xid(t+1)=xid(t)+vid(t+1), i=1,2,3...n.,d=1,2...m
(6)
where c1 and c2 are cognition and social
parameters respectively, rand1() and rand2() are Fig 4: PSO flow chart
constant numbers in the range of [0,1], w is the
inertia weight. Vi represents the velocity of the ith The PID controller parameters are
particle and Xi is its position, pbesti and gbest are adjusted to keep the LFC and AVR at an optimum
local best and global best positions respectively. level of performance under varying operating
The velocity of particle in equation depends on its conditions. It requires a performance index which
previous velocity, its own thinking and social is the function of system parameters. The
psychological adaptation of the population. commonly used performance indexes are, integral
square error (ISE), integral of the absolute
The inertia weight ω is set according to magnitude of error (IAE) ,integral time square
the following equation , error (ITSE), integral of time multiply by absolute
error (ITAE). ITAE performance index which
(ωmax −ω min ) produces smaller overshoots and oscillations.
ω=ω max− ×iter (7) The ITAE is given as,
iter max ∞