Professional Documents
Culture Documents
=
+
+ =
1
1
2 2 2
1
) 1 ( ) ( 100 ) ( 1
n
i
i i i
x x x x f
5 |-30 , 30|
n
0
Rastrigin
( )
=
+ =
n
i
i i
x x x f
1
2
10 ) 2 cos( 10 ) ( 2 t
5 |-5.12 , 5.12|
n
0
Griewank
[
= =
+
|
|
.
|
\
|
=
n
i
n
i
i
i
i
x
x x f
1 1
2
1 cos
4000
1
) ( 3
10 |-600 , 600|
n
0
SchaIIer`s I6
( )
( )
2
2
2
2
1
2
2
2
2
1
) ( 001 . 0 1
5 . 0 sin
5 . 0 ) ( 6
x x
x x
x f
+
+
=
2 |-100 , 100|
n
0
3.2 - Result of benchmark functions
The maximum iteration number, the number oI particles (N), c
1
, c
2
, minimum and
maximum range oI inertia weight, and average, minimum and maximum Fitness values oI
Iunctions, Standard Deviation (S.D) and variance oI Iitness value Iunctions are summarized
in Table 3. Each optimization experiment was run 10 times with random initial values oI X
in the range |x
min
, x
max
| indicated in Table 2. During the optimization process the particles
were not allowed to 'Ily outside the region deIined by |x
min
, x
max
| and the velocity was not
restricted. Result oI Fitness values oI benchmark Iunctions, indicate that, PSO is successIul
to achieve the optimum solution.
4 - PSO Algorithm for Optimum Reservoir Operation
4.1 - Fitness function
The fitness function is a measure of the goodness of the generated solutions
according to the defined objective function. For this study, total squared deviation
(TSD) of the releases from the required demands is considered as the fitness
function defined as:
| |
=
=
NT
t
i i
t D t R TSD
1
2
) ( ) ( (4)
Where,
R
i
(t) : release at period t recommended by particle i ,
D(t) : demand of period t;
To determine R (t), the continuity equation along with the Iollowing constraints, may
be employed as:
Table 3: Result of benchmark functions
N C
1
C
2
W
min
W
max
iTer
max
Average MIN. MAX. S.D Var.
Sphere 50 0.5 0.5 0.4 1.0 500 1.16E-15 2.87E-24 1.06E-14 3.33E-15 1.11E-29
Rosenbrock 100 0.5 0.5 0.4 1.0 1000 1.18E-03 1.30E-05 5.43E-04 0.00017 2.90E-08
Rastrigin 100 0.5 0.5 0.4 1.0 1000 0.000 0.000 0.000 0.000 0.000
Griewank 200 0.5 0.5 0.4 1.0 1000 8.24E-02 0.0713 0.0984 0.0094 0.0001
Schaffer's f6 50 0.5 0.5 0.4 1.0 500 8.13E-05 0.000 8.13E-04 2.57E-04 6.61E-08
( ) ( ) ( 1) ( ) ( ) R t S t S t I t Spill t = + + (5a)
max min
) ( S t S S s s (5b)
max min
) 1 ( S t S S s + s (5c)
1 1 +
=
NT
S S (5d)
) ( ) ( 0 t D t R s s (5e)
( ) 0 Spill t > (5I)
Where,
S(t) : initial storage volumes at period t ,
S(t1) : initial storage volumes at period t1 or Iinal storage volumes at period t ,
I(t) : inIlow to the reservoir at time period t,
Spill (t) : Spill at period t,
PSO parameters Value oI Iitness Iunction
Name
S
min
: minimum storage allowed,
S
max
: maximum storage allowed,
NT : total number oI periods.
4.2 - Model application
To illustrate the perIormance oI the model, the Dez reservoir in southern Iran, with an
eIIective storage volume oI 2,510 MCM and average annual demand oI 5,900 MCM is
selected. For illustration purposes, a period oI 24 months with an average annual inIlow oI
5,792MCM is employed. To limit the range oI values oI the Iitness Iunction, a normalized
Iorm oI equation 4 has been used as:
( )
=
(
=
NT
t
i
i
D
t D t R
TSD
1
2
max
) ( ) (
(6)
Where,
D
max
: maximum monthly demand.
The model so developed was tested Ior the Dez reservoir with 10 runs. Results oI the
model are presented in Table 4 and convergence curves diagram oI PSO are presented in
Figure (1) .
Table 4: Result of Model application
N C
1
C
2
W
min
W
max
iTer
max
Average MIN. MAX. S.D Var.
Dez
reservoir
600 0.5 0.5 0.4 1.0 100 6.5E-02 3.60E-02 0.1025 0.0246 0.0006
The problem also solved using a Non Linear Programming (NLP) model yielding an
optimal solution with total normalized squared deviation (TSD) equal to 0.09143511 .
A comparison between PSO and NLP`s results, are presented in Table 5 and Figure (2).
Table 5: Comparison between PSO and NLPs results
First 6 month Second 6 month Third 6 month Forth 6 month
M
o
n
t
h
D
e
m
a
n
d
r
e
l
e
a
s
e
N
L
P
r
e
l
e
a
s
e
P
S
O
D
e
m
a
n
d
r
e
l
e
a
s
e
N
L
P
r
e
l
e
a
s
e
P
S
O
D
e
m
a
n
d
r
e
l
e
a
s
e
N
L
P
r
e
l
e
a
s
e
P
S
O
D
e
m
a
n
d
r
e
l
e
a
s
e
N
L
P
r
e
l
e
a
s
e
P
S
O
1 516.4 516.4 516.4 467.6 467.6 467.6 516.4 516.3858 516.4 467.6 372.47 407.26
2 603.7 603.7 603.7 318 318 318 603.7 509.5651 603.7 318 222.88 249.86
3 757.2 757.2 757.2 163 163 163 757.2 662.081 692.73 163 163 163
4 831.1 831.1 831.1 150.1 150.1 150.1 831.1 735.9712 765.17 150.1 150.1 150.0
5 818.8 818.8 818.8 203 202.99 203 818.8 723.6702 754.0 203 203 203
6 706 706 706 365.5 365.5 365.5 706 610.8702 642.62 365.5 365.5 365.5
Name
PSO parameters Value oI Iitness Iunction
5- Conclusions
In this paper, a new evolutionary algorithm namely Particle Swarm Optimization is
used to solve reservoir operating problem. The technique has global and local exploration
capabilities to search Ior the optimal solution. PSO is Iirst tested against Iive benchmark
Iunctions. The results indicate that PSO has acceptable ability Ior solving global
optimization (GO) problems. Then, PSO is successIully applied to the reservoir operation
problem oI Dez reservoir, in southern Iran. Results oI PSO are also compared with the
solution obtained by Non Linear Programming (NLP) model. It is observed that the results
obtained by PSO algorithm are better than those obtained by NLP model. Conclusively,
PSO appears to be a very useIul technique Ior solving GO problems in civil engineering,
especially in water reservoir engineering.
0
0.02
0.04
0.06
0.08
0.1
0.12
0.14
0.16
0 20000 40000 60000
Number of Function evolutions
O
b
j
e
c
t
i
v
e
f
u
n
c
t
i
o
n
0
100
200
300
400
500
600
700
800
900
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
Period (Month)
D
i
s
c
h
a
r
g
e
(
M
C
M
)
Monthly demand Monthly release (NLP)
Monthly release (PSO)
Figure1: convergence curves Figure2: Comparison between
of PSO PSO and NLPs results
5- References
|1| Boyd, R, and Recharson, P,'Culture and the Evolutionary Process, University oI
Chicago Press, 1985.
|2| Carlisle, A, and Dozier, G,'An OII-The-ShelI PSO. Proceedings of the Particle Swarm
Optimi:ation Workshop, 2001, pp. 16
|3| Jalali1, M. R, AIshar, A; and Mario, M. A,Reservoir Operation by Ant Colony
Optimization Algorithms, Iran University oI Science and Technology (IUST), Tehran,
Iran.
|4| Kennedy, J, 'The behavior oI particles. In. Porto JW, Saravanan N, Waagen D and
Eiben AE (eds) Evolutionarv Programming JII, , 1998, pp. 581590. Springer
|5| Kennedy, J, and Eberhart, R, 'Particle Swarm Optimization ', Proceedings of the
International Conference on Neural Networks, Perth, Australia, 1995 IEEE, Piscataway,
1995, pp. 1942- 1948.
|6| Reynolds, C, "Flocks, Herds, and Schools: A Distributed Behavioral Model", Computer
Graphics, Vol.21, No.4, 1987, pp.25-34.
|7| Shi,Y, and Eberhart, RC. 'Empirical study oI particle swarm optimization,
Proceedings IEEE International Congers Evolutionarv Computation, Washington,
DC.,USA, 1999, pp. 194550.
|8| Shi, Y, and Eberhart ,R , Parameter selection in Particle Swarm Optimization, In.
Porto JW, Saravanan N, Waagen D and Eiben AE (eds) Evolutionarv Programming JII,
1998, pp. 611 616.
|9| Shi, Y, and Eberhart, R, 'A modiIied Particle Swarm Optimizer, Proceedings of the
1998 IEEE Conference on Evolutionarv Computation. AK, Anchorage, 1998.
|10| PARSOPOULOS, K.E, and VRAHATIS, M.N, Recent approaches to global
optimization problems through Particle Swarm Optimization ',Natural Computing,
Universitv of Patras, Patras, Greece,2002 ,pp. : 235306 .