
Advances in Computer Science Firefly Algorithm with a Feasibility-Based Rules for Constrained Optimization Ivona BRAJEVIC, Milan TUBA, Nebojsa BACANIN Faculty of Computer Science University Megatrend Belgrade Bulevar umetnosti 29, N. Belgrade SERBIA [email protected], [email protected], [email protected] Abstract: - Firefly algorithm (FA) is recently developed nature-inspired metaheuristic based on the flashing patterns and behaviour of fireflies. Original FA was successfully applied to solve unconstrained optimization problems. This paper presents firefly algorithm to solve constrained optimization problems. For constraint handling, firefly algorithm uses certain feasibility-based rules in order to guide the search to the feasible region. Our proposed approach is tested on nine well-known benchmark functions. Obtained results are compared to those of the state-of-the-art algorithms. Key-Words: - Firefly algorithm, Metaheuristics, Constrained optimization, Swarm intelligence 1 Introduction objective function and the constraints can be linear As many optimization problems involve a number or nonlinear. of constraints that the decision solutions need to Finding optimal solutions to these problems satisfy, the aim of constrained optimization is to requires efficient optimisation algorithms. Applica- search for feasible solutions with better objective bility of the deterministic methods is limited, since values. Generally, a constrained optimization they use a variety of assumptions (such as problem is to find x so as to continuity) about the search space before they n actually start the search [1]. Having regard to the minimize f(x), x (x1,...,xn )R (1) fact that they are quite efficient in finding local where x F S . optima, a common practice is to introduce a The objective function f is defined on the search stochastic component to an algorithm in order to space S Rn and the set F S defines the feasible avoid the possibility for the algorithm to be trapped at local optima. region. The search space S is defined as an n- Different stochastic optimization algorithms have dimensional rectangle in Rn . The variable domains been developed [2], [3] and later improved for are limited by their lower and upper bounds: solving constrained optimization problems [4], [5], li xi ui , 1 i n (2) [6], [7], [8], [9]. Among the most popular meta- heuristics are those based on mimicking different whereas the feasible region is defined by a natural phenomena and biological models [10], [11]. set of m additional constraints ( m 0 ): Some of the most popular nature inspired meta- heuristics are genetic algorithm (GA), inspi- g (x) 0, for j 1,...,q (3) j red by Darwin's theory about evolution, particle h j (x) 0, for j q 1,...m (4) swarm optimization (PSO) algorithm, inspired by the social behavior of birds or fishes and artificial For an inequality constraint that satisfies g j (x) 0 , bee colony (ABC) algorithm, based on honey bee we will say that is active at x. All equality foraging behavior. constraints h j (regardless of the value of x used) are Firefly Algorithm (FA) proposed by Yang is one considered active at all points of F. Both the of the new metaheuristic techniques inspired by the flashing behaviour of fireflies. FA was proposed to solve unconstrained optimization problems [12]. Simulation results indicate that FA is superior over This research is supported by Ministry of Education and GA and PSO. Also, an object-oriented software Science, Republic of Serbia, Project No. III-44006 implementation of FA [13], as well as implemen- ISBN: 978-1-61804-126-5 163 Advances in Computer Science tation of the parallelized FA was provided [14]. In distance between fireflies is increased. The [15] FA was applied to solve mixed variable brightest firefly moves randomly, because there structural optimization problems. Furthermore, is no other bug to attract it. different variants of FA have been developed and 3. The brightness of a firefly is somehow related used in many practical fields [16], [17]. with the analytical form of the cost function. For Since most of the basic versions of nature- a maximization problem, brightness can simply inspired search algorithms lack a mechanism to deal be proportional to the value of the cost function. with the constraints of a numerical optimization Other forms of brightness can be defined in a problem, constraint handling techniques are usually similar way to the fitness function in genetic incorporated in the algorithms in order to direct the algorithms. search towards the feasible regions of the search Similarily to other metaheuristics optimization space [18]. The most common approach adopted to methods, firefly algorithm generates random initial deal with constrained search spaces is the use of population of feasible candidate solutions. All penalty functions. In these methods, a constrained fireflies of the population are handled in the solution problem is solved as an unconstrained one, where search space with the aim that knowledge is the objective function is designed such that collectively shared among fireflies to guide the infeasible solutions are characterized by high search to the best location in the search space. Each function values (in minimization cases). Despite the individual of the population is called a firefly. At popularity of penalty functions, regard its simplicity each iterative step, the brightness and the and direct applicability, they have several attractiveness of each firefly is calculated. The drawbacks. The main one is that they require a brightness of each firefly is compared with all other careful fine tuning of the penalty factors that fireflies and the positions of the fireflies are estimate the degree of penalization to be applied. dynamically updated based on the knowledge of the The constraint-handling approach used in this firefly and its neighbors. paper is based on three feasibility rules, also called According to above rules there are two main Deb's rules, proposed for binary tournaments in points in firefly algorithm, the attractiveness of the [19]. The main advantage of this constraint-handling firefly and the movement towards the attractive scheme is in the lack of user-defined parameters, firefly. although it may also lead to premature convergence. In this work, we incorporated three feasibility rules into the FA in order to solve constrained 2.1 The attractiveness of the firefly optimization problems. The performance of the At the source, the brightness is higher than at some proposed firefly algorithm for constrained distant point. Also, the brightness decreases while optimization, called CFA, has been tested on nine environment absorbs the light while it is travelling. well-known benchmark functions taken from the It can be concluded that the attractiveness of firefly literature and compared with GA, PSO and ABC. is relative. It is known that the light intensity This paper is organized as follows. Section 2 presents firefly algorithm. A detailed description of I(r) varies following the inverse square law: our approach is provided in Section 3. Section 4 I I(r) 0 (5) presents benchmark functions, test results and 2 discussion. r where I 0 represents the light intensity at the source. Suppose there are n fireflies and that xi 2 Firefly algorithm corresponds to the solution for firefly i. The In order to develop firefly algorithm, some of the brightness of the firefly i, is associated with the flashing characteristics of fireflies were idealized. objective function f (xi ) . The brightness (the Yang formulated this firefly algorithm by assuming attractiveness) I of a firefly is chosen to reveal its three simplification rules [12]. recent position of its fitness value or objective 1. All fireflies are unisex so that one firefly will be function f (x) : attracted at other fireflies regardless of their sex. Ii f (xi ) (6) 2. Attractiveness is proportional to firefly brightness. For any couple of flashing fireflies, The less bright (attractive) firefly is attracted and the less bright one will move towards the moved to the brighter one and each firefly has a brighter one. The brightness decreases when the certain attractiveness value β. However, the ISBN: 978-1-61804-126-5 164 Advances in Computer Science attractiveness value β is relative based on the The sum of constraint violation for a solution x is distance between fireflies. The attractiveness given by: function of the firefly is established by: q m r2 CV (x) max(0, g j (x)) h j (x) (10) (r) 0 e (7) j1 jq1 where is the firefly attractiveness value at r = 0 0 In CFA, Deb’s rules are used instead of the and is the media light absorption coefficient. greedy selection in order to decide what solution will be updated. Hence, the decision what firefly is more attractive is made according these feasibility 2.2 The movement towards attractive firefly rules. The CFA does not start with the feasible Fireflies movement is based on the principles of initial population, since initialization with feasible attractiveness: when firefly j is more attractive than solutions is hard and in some cases impossible to firefly i the movement is determined by the achieve randomly. During running process of CFA, following equation: the feasibility rules direct the solutions to feasible 2 region. rij 1 xi xi 0 e (xi x j ) rand (8) As in the version of FA proposed to solve struc- 2 tural optimization problems [15], it was found that In Eq. (8) third term is randomization term where the solution quality can be improved by reducing the [0,1], rand is random number between 0 and 1. randomization parameter with a geometric Distance rij between fireflies i and j is obtained by progression reduction scheme similar to the cooling schedule of simulated annealing which can be Cartesian distance form by: described by: D t (11) 2 0 rij xi,k x j,k (9) k1 where 0 1 is the reduction factor of randomization.
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages6 Page
-
File Size-