Virus Optimization Algorithm
Virus Optimization Algorithm
net/publication/266283526
Article
CITATIONS READS
3 330
5 authors, including:
Yun-Chia Liang
Yuan Ze University
73 PUBLICATIONS 2,236 CITATIONS
SEE PROFILE
All content following this page was uploaded by Yun-Chia Liang on 06 October 2015.
Abstract. The virus, an infectious agent that can reproduce only inside a host cell can apparently spread
without any control, but as we already know that the cells without any protection will tend to give better
chances to the virus in the reproduction activity. In this paper, we develop a novel metaheuristic, named Virus
Optimization Algorithm (VOA) which imitates the behavior of the virus. The host cell represents the entire
search space while the virus reproduction denotes the generation of new solutions. VOA is a population-based
method that begins the search with a small set of solutions and the solution size will grow at each iteration until
the stopping criterion is reached. We compare this new metaheuristic algorithm with some widely used
algorithms such as Genetic Algorithm (GA), Simulated Annealing (SA) and Particle Swarm Optimization (PSO).
As a conclusion from the test results show the proposed VOA to be a competitive and robust tool for solving
continuous optimization problems.
2166
APIEMS2009 Dec. 14-16, Kitakyushu
therefore potentially valuable and worthy. Also, the features At the first iteration the viruses (solutions) are created
which make metaheuristics applicable for real-life randomly. Viruses can only survive within the cell, i.e., only
applications suggest that there is great potential for feasible solutions that satisfy variable ranges will be
exploitation of new technologies. generated. Figure 1 illustrates the generation of initial
In this paper we introduce a new metaheuristic tool to solutions in VOA. The black dots in Figure 1 are the viruses
solve continuous optimization problems; the method has been generated and the white regions represent the good regions
named as Virus Optimization Algorithm (VOA) which (local or global optima). The yellow region is the host cell
simulates the behavior of the viruses when they attack a host and the blue region is the body liquid surrounding the cell
cell. The searching procedure of this method mainly relies where the virus will not survive.
on the generation of new solutions. The source and number Once the initial group of viruses is generated, their
of new solutions can be determined by the users. For ability of spreading will be determined where they are
example, the user may preset three new solutions coming located, i.e. the objective function value will be evaluated.
from the best member of the population and two new The viruses located in the “ good”regions (i.e., the weaker
solutions coming from the other members, etc. regions without antibodies or immunity) will replicate
VOA is compared with three widely used algorithms themselves at those regions trying to generate better viruses.
GA (Goldberg et al. 1989), PSO (Eberhart et al. 1995, The purpose of replication represents the intensive search
Kennedy et al. 1997) and SA (Kirkpatrick et al. 1983), and within the identified good regions. On the other hand, the
shows a better performance in terms of convergence at the virus located in “ bad”region (i.e., the healthy regions with
optimality. The benchmark functions tested consist of the the protection of antibodies or the immune system) will be
Zakharov, Rastrigin and Schwefel multimodal functions also reproduced. The difference between the replication on
(described in Section 4) which are well known because of “ good”and “ bad”regions is that spreads in bad regions will
their complexity when the dimension is increased. be quite limited because of the existence of antibodies or
The rest of this paper is arranged in the following order: immune systems.
Section 2 briefs on the concept of our Virus Optimization A maintenance mechanism named as antivirus is
Algorithm; Section 3 introduces the framework of this employed to limit the growing rate of viruses. The user can
methodology; Section 4 shows computational results; Section activate this mechanism to maintain a fixed number of
5 provides conclusions and suggestions. viruses created i.e. the population size will be same after the
replication process, where only the best viruses will survive
2. THE VIRUS OPTIMIZATION ALGORITHM (defined by their objective function value). On the other
(VOA) hand, if the antivirus is not activated the number of viruses
will grow after each replication; therefore after several
Inspired by the behavior of virus, our algorithm (VOA) iterations have been performed the area being covered by the
is a population-based approach and is designed to solve viruses will be very large (as we can observe in Figure 2).
continuous domain problems. In a cell, the condition of each Hence, the use of the antivirus mechanism is to control the
sub-region can be classified according to the health condition, reproduction so that the size of the virus matrix in the
i.e. the objective function value in the sense of optimization. computer won’ t be too large and too hard to manage.
The weak regions will then be good candidates for viruses to
grow (or spread) by generating more solutions (viruses).
Moreover, the range for such spread will be set by the user as
the maximum range of spreading.
2167
APIEMS2009 Dec. 14-16, Kitakyushu
user that could be 10% of the range amount), however, the In addition, several controllable parameters are
user is able to decide if reduce or not the range that will described as follows:
generate new solutions from the viruses at bad regions (this 1. The number of viruses at the very beginning of the
of course will affect the exploration, but, on the other hand program.
will create new viruses not too far away, intensifying the 2. Number of best solutions (viruses) to consider in
exploitation). After several replications the range(s) will be the replication at good regions.
small enough to generate solutions at the optima or near to it. 3. The growing rate or new solutions (viruses) to be
The reduction will depend on a “ Pe r
sistencec ounter” generated during the replication from the viruses
(variable defined by the user that will check for how long the found at good regions.
current solution has not been updated). 4. The range used to generate the new solutions,
determined by the range of the decision variables.
Say if X1 and X2 are between -5.12 and 5.12 the
3. METHODOLOGY
new solutions will be between those values, hence,
Figure 3 below shows the flowchart of the VOA where a range “ sma l
len ough ”toc rea t
et hen e ws ol
utions
h represents the number of iterations, H denotes the inside the good regions should be considered, of
maximum number of iterations, k is persistence counter of c ourset het erm“ sma l
l”de pendsont h epr oblem
the current solution i.e. the current solution has not been that we are trying to solve.
improved after replication, and K represents the maximum 5. The growing rate or new solutions to be generated
number of consecutive non-improving iterations (when the when the bad region has been found by the viruses.
persistence counter reaches this value the range(s) will be This value should be smaller in magnitude
decreased). compared with the growing rate of viruses at good
regions,s inc ewedon’ twa ntt os pe ndt oomu ch
S ta rt
effort generating new solution on non-promising
regions. However, the value should not be zero
Set
P a ra m e te rs because we still want to explore other areas to
know if there are better places in the solution space.
C re a te P o in ts
6. The range to generate new solutions at bad regions
h=1 should be a small amount of the variables domain
(or just defined by the domain of the decision
C a lc u la te th e
fitn e s s variables), this will allow us to explore in the
S o rtin g b y whole solution space (host cell). The value of this
fitn e s s v a lu e
range should be greater than the value of the range
used to generate new solution at good regions,
B e s t S o lu tio ns O th e r S o lu tio n s
since we want to explore using the viruses at bad
G e n e ra te n e w s o lu tio n fo r g o o d re g io n G e n e ra te n e w s o lu tio n fo r B a d
regions and exploit using the viruses at good
re g io n s
X i + - ran d () * ran g e o f viru se s at
X i + -ra n d () * ran g e o f v iru se s at
regions.
g o o d re g io n s
b a d re g io n s 7. Decrement percentage to be used when we reduce
the range to generate new solution coming from
K ill b a d s o lu tio n s
Is th e YES
a n d k e e p th e
viruses at good regions (this decrement could be
a n tiv iru s
p o p u la tio n s iz e
a c tiv a te d
fix e d
different if today we decide to reduce the range to
NO
generate new solutions coming from the viruses at
bad regions).
C a lc u la te fitn e s s
V a lu e fo r n e w 8. The following stopping criteria can be used in
viru se s
VOA:
S o rtin g b y
fitn e s s v a lu e
a. No improvement after several iterations,
Is c u rre n t YES
b. Maximum number of iterations,
s o lu tio n th e
s a m e a s la st
k = k+ 1 c. The optimal solution is found.
o n e?
NO
R e d u c e th e YES
k> K
4. COMPUTATIONAL RESULTS
ra n g e
2168
APIEMS2009 Dec. 14-16, Kitakyushu
The functions tested in this study consist of three well- Table 3: The Best Setting of GA (arithmetic crossover,
known multimodal functions: Zakharov (Fan et al. 2004, random change for the mutation)
Chelouah et al. 2000), Rastrigin (Liang et al. 2006) and Function parameters Function
Schwefel (Liang et al. 2006). Their functions, range, and for GA Zakharov Zakharov Rastrigin Rastrigin Schwefel Schwefel
global optimum are as follows: Dimension 2 300 2 300 2 300
Probability of Crossover 0.85 0.95 0.95 0.95 0.95 0.85
Probability of Mutation 0.3 0.5 0.3 0.2 0.3 0.5
Zakharov function: Population Size 100 500 100 500 100 500
Number of Iterations 100 10000 100 10000 100 10000
2169
APIEMS2009 Dec. 14-16, Kitakyushu
2170
APIEMS2009 Dec. 14-16, Kitakyushu
0.00005
0.00003
0.00002
0.00001
0.00000
SA PSO VOA GA
Table 6:10-run results for Zakharov function Zakharov function ( 300 dime nsions )
(2-dimension problem) 16000
14000
Run number Algorithm
(Zakharov 2 dimensions) SA PSO VOA GA 12000
Best objective function values
2171
APIEMS2009 Dec. 14-16, Kitakyushu
Table 8:10-run results for Rastrigin function R astrigin ( 300 dime ns ions )
(2-dimension problem)
6000
800
2172
APIEMS2009 Dec. 14-16, Kitakyushu
5.2 Suggestions
Table 11: 10 times run for Schwefel function
(300-dimension problem) The idea of using VOA to solve discrete domain
Run number Algorithm problems, such as TSP, MDVRP, and etc. is an issue to be
(Schwefel 300 dimensions) SA PSO VOA GA considered in the future.
1 155512.200000 124979.000000 56643.000000 68161.050000 Measure the performance of VOA by turning off the
2 165798.900000 124979.000000 52397.700000 67394.060000 antivirus, is another problem to be considered. Of course,
3 157596.000000 124979.000000 49980.500000 71045.020000
4 154571.700000 124979.000000 54512.400000 67946.590000
this could be a problem in terms of the computational effort;
5 148360.800000 124979.000000 49553.000000 68765.190000 however, the optimal solution (or near optima) may be
6 151243.200000 124979.000000 52692.700000 68006.350000 reached faster.
7 168358.500000 124979.000000 45645.200000 67526.230000 Lastly, reduction of the CPU time and number of
8 159698.100000 124979.000000 48706.900000 69715.500000
parameters are also topics to discuss in the future.
9 165914.700000 124979.000000 51369.900000 67171.190000
10 171054.000000 124979.000000 50246.500000 67614.470000
ACKNOWLEDGMENT
150000
development, social progress and the welfare of the people in
125000 partner nations around the world.
The TaiwanICDF's core competencies include technical
100000
assistance, investment and lending operations, education and
training, and humanitarian assistance. Technical cooperation
75000
programs managed by the TaiwanICDF are structured to
50000
ensure that their work can be extended during
implementation and replicated elsewhere upon completion.
SA PSO VOA GA
TaiwanICDF education and training programs, often
Figure 15: The Box Plot for Schwefel function developed in conjunction with government agencies,
(300-dimensions problem) nongovernment organizations and educational institutions,
have developed human resources in nations around the world.
5. CONCLUSIONS AND SUGGESTIONS Thanks to them we can give something back to our
society, a virus optimization algorithm that will help to solve
5.1 Conclusions
problems in the future and promises to be good enough to be
applied in several fields such as: transportation, production
In this study, we developed a new algorithm, called
and scheduling, economy, etc.
VOA, a population-based approach. The VOA simulates the
behavior of the viruses when they attack a host cell. Our
implementation shows that the VOA is sensitive to the
REFERENCES
parameter values.
As to the CPU time, for low dimensional problems the Chelouah, R. and Siarry, P. (2000) A Continuous
objective function value is reached very fast with a suitable Algorithm Designed for the Global Optimization of
setting of the parameters; however, if we cannot reach the Multimodal Functions, Journal of Heuristics, 6, 191-213.
value there are strong evidence to say that the output result Eberhart, R. C. and Kennedy, J. (1995) Particle Swarm
will be close to the optimal value. In high dimensional Theory. Proceedings of the IEEE International Conference
problems the results of VOA is much better compared with on Neural Networks, IV, 1942-1948.
others. Eberhart, R. C. and Kennedy, J. (1995) A New
Overall, VOA shows the best performance not only in Optimizer Using Particle Swarm Theory. Proceedings of the
low dimensional problems but also in high dimensional Sixth International Symposium on Micro and Human Science,
problems. The idea of the algorithm is very easy to IEEE Service Center, Piscataway, NJ, Nagoya, Japan, 39-43.
understand but, the value of the parameters is very hard to Fan, S. K., Liang, Y. C., and Zahara, E. (2004) Hybrid
decide since is highly dependent on the problem to be solved. Simplex Search and Particle Swarm Optimization for the
Global Optimization of Multimodal Functions. Engineering
Optimization, 36(4), 401-418.
2173
APIEMS2009 Dec. 14-16, Kitakyushu
2174