Acessibilidade / Reportar erro

Improved Cuckoo Search (ICS) algorthm for constrained optimization problems

Abstract

Constrained optimization is very important issue in engineering design. The problem of constrained optimization contains the objective function with linear and nonlinear constraint equations. In this paper the Improved Cuckoo Search (ICS) algorithm has been applied for solving problems of constrained engineering optimization, which gives better solutions than the standard CS algorithm and the other optimization algorithms used in solving engineering problems from the literature. In the proposed ICS algorithm, dynamic change of parameters of probability and step size is introduced, which are constant in the standard algorithm.

Improved Cuckoo Search algorithm; engineering; global optimization; dynamic change of parameters


Improved Cuckoo Search (ICS) algorthm for constrained optimization problems

Radovan R. Bulatović* * Author email: ukib@tron-inter.net ; Goran Bošković; Mile M. Savković; Milomir M. Gašić

The Faculty of Mechanical and Civil Engineering in Kraljevo of the University in Kragujevac, Dositejeva 19, 36000 Kraljevo, Serbia

ABSTRACT

Constrained optimization is very important issue in engineering design. The problem of constrained optimization contains the objective function with linear and nonlinear constraint equations. In this paper the Improved Cuckoo Search (ICS) algorithm has been applied for solving problems of constrained engineering optimization, which gives better solutions than the standard CS algorithm and the other optimization algorithms used in solving engineering problems from the literature. In the proposed ICS algorithm, dynamic change of parameters of probability and step size is introduced, which are constant in the standard algorithm.

Keywords: Improved Cuckoo Search algorithm, engineering, global optimization, dynamic change of parameters.

1 INTRODUCTION

The task of optimization theory is development of methods for finding a global minimum. How successful is the answer to the task depends on the characteristic of the objective function, type of constraint and selection of the optimization algorithm. Different optimization algorithms have been used in optimization problems in the existing literature. In Yang (2010a), author considered different optimization algorithms as well as their classification. Generally, all optimization algorithms can be classified, by their nature, into deterministic and stochastic, as well as the algorithms which are a mixture (hybrid) of deterministic and stochastic algorithms. Stochastic algorithms are classified into two types: heuristic and metaheuristic algorithms

Heuristics means "to find" or "to discover by trial and error" good solutions in complex optimization problems. However, in most cases it is not realistic to expect those quality solutions obtained by heuristic algorithms to be optimal.

The algorithms that are more advanced and efficient than heuristic algorithms are the so-called metaheuristic algorithms. Meta - means "beyond" or "higher level" and all metaheuristic algorithms use a certain tradeoff of randomization and local search. No agreed definitions of heuristics and metaheuristics exist in the literature so that the terms "heuristics" and "metaheuristics" are used interchangeably. The recent trend, according to Yang (2010a), tends to name all stochastic algorithms with randomization and local search as metaheuristic. Randomization provides a good way to move away from local search to the search on the global scale. Therefore, all metaheuristic algorithms intend to be suitable for global optimization.

More and more metaheuristic algorithms are being developed and they are mostly nature-inspired and have diverse applications. Some of them are: simulated annealing (SA), genetic algorithms (GA), ant colony optimization (ACO), bee algorithms (BA), differential evolution (DE), particle swarm optimization (PSO), harmony search (HS), the firefly algorithm (FA), Cuckoo Search (CS), and bat-inspired algorithm (BA).

Many of authors for the application in engineering design optimization have used different metaheuristic algorithms which are nature-inspired. Cuckoo Search Algorithm (CS) was applied by Yang and Deb (2009), (2010b), Gandomi (2013) for solving structural optimization problems. Valian et al. (2013) improved cuckoo search algorithm for reliability optimization problems and Bulatović et al. (2013) used cucko search algorithm for solving the problem of optimum synthesis of a six-bar double dwell linkage. Artificial bee colony algorithm (ABC) has been applied by: Akay and Karaboga(2012), Karaboga and Akay (2011), Grković and Bulatović (2013) for solving constrained and large-scale engineering optimization problems. Harmony search algorithm (HS) was defined by Lee and Geem (2004) and it was used for solving engineering optimization problems by Jaberipour and Khorram(2010). Mahdavi et al. applied improved harmony search algorithm (IHS) while Mun& Cho (2012) used modified harmony search algorithm(MHS). Datta and Figueira (2011) used a real-integer discrete-coded particle swarm optimization algorithm for solving design problems. Kayhan et al. (2010) used a new hybrid particle swarm optimization algorithm for solving continuous optimization problems, and Zahara and Kao (2009) applied hybrid Nelder-Mead simplex search and particle swarm optimization for constrained engineering design problems. Gandomi et al. (2011) used Firefly algorithm for solving structural optimization problems, Ashtari and Barzegar (2012) used accelerating fuzzy genetic algorithm (AFGA) for optimization of steel structures and Zhao et al. (2012) applied an effective hybrid genetic algorithm (HGA), Zou et.al. directedsaearching optimization algorithm (DSO), for solving constrained optimization problems, Lobato and Valder (2014) used Fish Swarm Optimization algorithm (FSO) applied to Engineering System design.

This paper is organized through 6 sections. Chapter 2 refers to objective function and the way of using constraints, in Section 3, the standard CS algorithm is shown, and Section 4 introduced the Improved Cuckoo Search algorithm with dynamic changes of probability parameters and step size in each generation, which are otherwise constant in CS algorithm. Section 5 discusses experimental results for several constrained benchmark functions against optimal solutions reported in the literature. Finnaly, in Section 6, conclusions based on the experimental results are discussed.

2 OBJECTIVE FUNCTION AND CONSTRAINTS

Optimization in engineering design is one complex optimization problem which is highly nonlinear, includes large number of projected variables as well as numerous constraints in the form of equations and inequalities, which are also nonlinear. The optimal solution must satisfy the given constraints. Generally speaking, a constrained optimization problem can be formulated as follows:

where is objective function, is n-dimensional vector which represents the design variables, are constraints in form of inequalities, represents the number of constraint inequalities, are constraints in form of equations and is the number of constraint equations.

Design variables are the values which should be defined during the optimization procedure. Each design variable is defined by its lower and upper boundaries. By introducing the constraints (2) in the objective function (1), Eqs. (1) and (2) can be transformed into the following form:

where are the penalty functions which can be presented in the following way:

When the solution is found outside the region conderned, then the current parameters of the solution are squared and multiplied by large enough positive numbers (penalty factors), and then added to the numerical values of the objective function.Coefficient takes the same value in all examples in this paper, and that value is 100.

3 ALGORITHM CS

The power of almost all modern metaheuristic algorithms comes from the fact that they imitate the best characteristics from nature, particularly biological systems evolved by natural selection for millions of years. Two very important characteristics are: selection of the most favorable species and adaptation to the environment. Numerically, it can be translated into two very important characteristics of modern metaheuristics: intensification and diversification. Intensification searches for the best current solutions, while diversification allows the algorithm to search the space efficiently.

Cuckoo Search (CS) represents a new optimization metaheuristic algorithm, which is also biologically inspired by the cuckoos' manner of looking for nests where they could lay eggs. This algorithm, as already said, was proposed by Yang and Deb (2009) and (2010).

Cuckoos lay their eggs in other birds' nests and the host birds later take care of cuckoo chicks. Cuckoos usually choose the nest of a bird that has just laid its eggs so that they can be sure that their eggs would hatch first because cuckoo eggs hatch earlier than their host eggs birds. Some types of cuckoos have adapted to laying their eggs in other birds' nests so that their eggs are quite similar to the eggs of the host birds. When a cuckoo chick is hatched, it instinctively pushes out of the nest the host bird chicks and eggs that have not yet hatched to receive all the food brought in. A cuckoo chick can mimic the call of host chicks. If the host birds realize that a cuckoo egg has been laid in, they either remove the egg or abandon the nest.

In this optimization algorithm, each nest represents a potential solution. The cuckoo reproduction process in the algorithm is simplified by three rules:

1. Each cuckoo lays an egg in a randomly chosen nest;

2. The best nests carry over to the next generation of cuckoos;

3. The number of available host nests is fixed (limited), and the egg laid by a cuckoo is discovered by the host bird with a probability , which ranges . Birds can detect only the worst nests so that they are losing from the population.

CS has a simple algorithm, and its code is given in Yang and Deb (2010). The initial population of nests with the size , which are randomly distributed over the search space, is generated first. The randomly chosen initial solutions of design variables are defined in the search space by the lower and upper boundaries.

The new nest, for example i-th, is generated according to the following law

where is the step size whose value depends on the optimization problem, and is the current generation. Step size is multiplied by the random numbers with Lévy's distribution, and such random motion is called Lévy flight.

In this research work (Yang and Deb 2010) a Levy flight in which the step-lengths are distributed acording to the following probability distribution:

Lévy flight represents a variation of random walk, in which the step length is determined by Lévy distribution. Lévy flight represents one of the ways of motion used by birds for searching for food in the environment. When there is some food in the environment, animals perform motion which is analogous to Brownian motion. If they cannot find any food, animals start moving in the manner analogous to Lévy flight, i.e., by combining short and long steps in different directions thus searching a considerably larger space. The numerical algorithm proposed by Mantegna (1994), using the exponential law, was used for generation of Lévy distribution in the CS algorithm. It is recommended that the step size should be , where is the size of the space which is searched. There is a danger that Lévy flight may become too "aggressive" for large values of the step size and that new solutions may go out of the space which is searched.

A detailed description of the CS algorithm can be seen in Yang and Deb (2009) and (2010b). Yang and Deb (2009) came to the conclusion that the CS algorithm finds the optimum solution for the values of the parameter n from 15 to 25 while for the parameter it is from 0.15 to 0.25.

4 IMPROVED CUCKOO SEARCH (ICS) ALGORITHM

In standard CS algorithm, parameters and are very important in finetuning of solution vector and appropriate selection of their values can result to the global solutions. However, as noted in previous section, values of these parameters are constant in the standard CS algorithm. Valian et al. (2013) have introduced dynamic changes of these parameters in each generation, in solving complex engineering problem. If the value of probability is small, and the value of parameter , which represents step size, is large, such values can result in very slow convergency in CS algorithm. Otherwise, if the value of is large and the value of is small, the speed of convergence is very fast and algorithm cannot find the best solution.

In all examples presented in this paper, in each generation the parameter is increasing, and parameter is decreasing as follows:

Value of in expression (7) represent the current generation (iteration) and grows up from 0 to some maximum specified number. Maximum number of generations in all examples in this paper is 1000. The probability that the host bird will find cuckoo's egg depends only from the random number generator and rarely it may happen that generator "allows" host bird to find the egg or doesn't find it at all. That is the reason why dynamic change of probability is introduced, which is than compared with the actual probability of finding the egg. Namely, if the new calculated probability is smaller than the random generated value, the "interloper" is discovered by host bird and cuckoo must find new nest.

With regard to step size , its recommended value is between 1 and 3. In all examples in this paper the starting value of this parameter is 2. It starts with higher step size so different solutions are generated in order to explore the search space on the global level. By reducing the step size, focusing on the search in a region where currently found a good solution is performing. Thus in an appropriate manner manage the process of selecting the best solutions, which results in finer approximation of the optimum value of the objective function.

Because the number of generations is increasing during the optimization process, values ​​of these two parameters will stabilize by achieving a certain number of generations and in this case the change of the objective function is slightly small, which achieves its optimum value approximation.

The idea of ICS algorithm is that these parameters are adjustable in each generation, because in that way better solutions of algorithm can be achieved. Dynamic change of these parameters is proposed also in this paper, which made the results for discussed examples from practice better than the results from the mentioned literature.

5 EXPERIMENTAL RESULTS AND ANALYSIS

In this section, results of well-known examples from literature related to the engineering design are shown. Comparative analysis of results from the literature and results obtained by the proposed ICS - algorithm is given.

5.1 Experimental results: the minimization of the weight of spring

The problem of minimization of the weight of tension/compression spring (Figure 1) firstly was described by Arora (1989). Different optimal solutions of this problem in various researches are obtained by (Mahdavi et al., 2007; Jaberipour and Khorram, 2010; Akay and Karaboga, 2012; Coello, 2000a; Coello, 2000b; Kayhan et al., 2010; Zou et al., 2011; Mun and Cho, 2012; Lobato and Valder 2014). Constraints in this problem are: the minimum deflection, shear stress, frequency impact and outer diameter constraint. The design variables are the wire diameter ; the mean coil diameter and the number of active coils . Mathematical formulation of these problem is described in Eqs. (8-12).


Table 1, optimal solutions which are obtained by (Mahdavi et al., 2007; Lobatoand Valder (2014); Zou et al., 2011; Mun and Cho, 2012) and two results obtained by proposed algorithm, are presented. The first result has minimum value of the objective function compared to the other results, but one constraint is not satisfied, while the second result is better than the results which are obtained by (Mahdavi et al., 2007; Lobatoand Valder (2014)) but worse than the results Zou et al. (2011), Mun and Cho (2012).

5.2 Experimental results: the welded beam design

The welded beam design is shown in Figure 2. This problem has been used as an experimental benchmark to apply different optimization methods (Coello, 2000a; Mahdavi et al., 2007; Jaberipour and Khorram, 2010; Kayhan et al., 2010; Akay and Karaboga 2010; Gandomi et al., 2011; Zou et al., 2011; Moumen et al., 2011; Mun and Cho, 2012; Ashtari and Barzegar, 2012; Lobato and Valder 2014). The objective of this problem is to construct the welded beam, subjected to the constraint of shear stress , bending stress , buckling load , beam deflection , so that it has minimum costs of production,. There are four design variables: , , and Mathematical formulation of the objective function is presented in Eqs. (13-20) and it represents total cost of production which is mainly comprised of the set-up, welding labor, and material costs as follows:

where:


Based on Table 2, it can be seen that the results obtained by proposed algorithm are better than the results obtained by (Lobato and Valder 2014; Ashtari and Barzegar, 2012; Zou et al. 2011; Mun and Cho 2012).

5.3 Experimental results: the pressure vessel design

The third example is minimization of the pressure vessel production costsFigure3. The minimization of the total costs includes the cost of material, forming and welding of the cylindrical pressure vessel.In this example, there are four design variables: the shell thickness , head thickness , inner radius and length of cylindrical section of the vessel, not including the head . Mathematical formulation of the objective function is given in Eq. (18-22). The variables and must be integer multipliers of which are the available thicknesses of rolled steel plates. Many authors have dealt with this optimization problem in their research work (Coello, 2000a; Lobato and Valder 2014; Lee and Geem, 2004; Mahdavi et al., 2007; Akay and Karaboga, 2010; Kayhan et al., 2010; Jaberipour and Khorram, 2010; Gandomi et al., 2011, and 2013; Datta and Figueira, 2011; Zou et al., 2011; Mun and Cho, 2012).


where:

The ranges of the design parameters are: , , and .

The results obtained by different methods from the cited literature are showed in Table 3 with four inequalities Eqs. (21-25), and in Table 4 with six inequalities Eqs.(21-25) and Eqs. (26,27). The minimum value of the objective function obtained by the proposed algorithm in this paper is the smallest in comparison to the values ​​from the cited literature. Based on Table 3, it can be seen that the results obtained by proposed algorithm are better than the results obtained by (Lobato and Valder 2014; Gandomi et. al. 2013; Zou et al. 2011; Mun and Cho 2012).

The second variant of the above mentioned problem, which has two additional inequalities is:

5.4 Experimental results: for speed reducer design

The objective of a speed reducer optimization shown in Figure 4 is weight minimization with constraints of the bending stress of gear teeth, surface stress, transverse deflections of shafts due to transmitted force, and stresses in shafts. The design parameters of a speed reducer are:face width , module of teeth , number of teeth on pinion , length of shaft 1 between bearings , length of shaft 2 between bearings , diameter of shaft 1 , and diameter of shaft 2 . The third variable (number of teeth on pinion) is integer, while other values are continuous.

Mathematical formulation of the problem is presented in Eqs. (28-39):


The ranges of the design parameters are: , , , , , and .

The results obtained using different methods are shown in Table 5. It can be seen from the table that the results obtained by ICS algorithm are better than the results which are presented in paper Gandomi et al., (2013), which were obtained by using CS algorithm. Also, the results in this paper are better than the results in paper Akay and Karaboga (2010), but they are worse than the results in Jaberipour and Khorram (2010) and Zhao et al., (2012). However, in these papers the values of constraints are not displayed, in other words cannot be seen whether the constraints are satisfied.

6 CONCLUSIONS

The Improved Cuckoo Search algorithm has been validated first using several benchmark engineering problems and found to be very efficient. Proposed ICS algorithm provides better performance than standard CS algorithm, and also from other methods proposed in the literature for solving four constrained problems from the practice. ICS algorithm is suitable for finding global optimum in solving problem of constrained optimization. Proposed algorithm is very flexible and aplicable for solving engineering problems and also promissing for further research in this area. The future works should focus on expanding the ICS algorithm to other fields of optimization due to high potential of the algorithm in solving difficult optimization problems.

ACKNOWLEDGEMENTS

The authors wish to express their gratitude to Serbian Ministry of Science and Technology for supporting this paper through project TR35038.

  • Akay, B., Karaboga, D., (2012). Artificial bee colony algorithm for large-scale problems and engineering design optimization. Journal of Intelligent Manufacturing 23(4),1001-1014.
  • Arora, J. S., (1989). Introduction to optimum design,New York; McGraw-Hill.
  • Ashtari, P., Barzegar, F., (2012).Accelerating fuzzy genetic algorithm for the optimization of steel structures, Structural and Multidisciplinary Opotimization 45(2), 275-285.
  • Bulatović, R.R., Đorđević R. S., Đorđević S. V., (2013). Cuckoo Search algorithm: A metaheuristic approach to solving the problem of opitmum synthesis of a six-bar double dwell linkage. Mechanism and Machine Theory 61, 1-13.
  • Coello, C. A. C., (2000(a)). Use of a self-adaptive penalty approach for engineering optimization problems. Computer in Industry 41(2), 113-127.
  • Coello, C. A. C., (2000(b)). Constraint-handling using an evolutionary multiobjective optimization technique. Civil Engineering and Environmental Systems 17, 319-346.
  • Datta, D., Figueira, J. R., (2011). A real-integer-discrete-coded particle swarm optimization for design problems. Applied Soft Computing 11(4), 3625-3633.
  • Gandomi, A. H., Yang Xin-She, Alavi A. H., (2011(a)). Mixed variable strucutural optimization using Firefly Algorithm. Computers and Structures 89(23-24), 2325-2336.
  • Gandomi, A. H., Yang Xin-She, Alavi A. H., (2013). Cuckoo search algorithm: a metaheuristic approach to solve structural optimization problems. Engineering with Computers, 21(1), 17-35.
  • Grković, V., Bulatović, R. R., (2013). Modified Ant Colony Algorithm for Solving Engineering Optimization Problems, IMK-14 - Research & Development, 18, 115-122.
  • Lee, K. S., Geem Z. W., (2004). A new meta-heuristic algorithm for continues engineering optimization: harmony search theory and practice. Computer methods in Applied Mechanics and Engineering 194(36-38), 3902-3933.
  • Jaberipour, M., Khorram, E., (2010). Two improved harmony search algorithms for solving engineering optimization problems. Commun Nonlinear SciNumerSimulat 15(11), 3316-3331.
  • Karaboga, D., Akay, B., (2011). A modified Artificial Bee Colony (ABC) algorithm for constrained optimization problems.Applied Soft Computing 11(3), 3021-3031.
  • Kayhan, A. H., Ceylan, H., Ayvaz M. T., Gurarslan, G., (2010). PSOLVER: A new hybrid particle swarm optimization algorithm for solving cintinuous optimization problems. Expert Systems with Applications 37(10), 6798-6808.
  • Lobato S. F., Valder Steffen Jr., (2014). Fish Swarm Optimization Algorithm Applied to Engineering System Dewsign, Latin American Journal of Solids and Structures, 11, 143-156.
  • Mahdavi, M., Fesanghary, M., Damangir, E., (2007). An improved harmony serch algorithm for solving optimization problems. Applied Mathematic and Computation 188(2), 1567-1579.
  • Mantegna, R.N., (1994). Fast, accurate algorithm for numerical simulation of Levy stable stochastic processes. Physical Review E 49, 4677-4683.
  • Moumen, S. E., Ellaia, R., Aboulaich, R., (2011). A new hybrid method for solving global optimization problem.Applied Mathematics and Computation 218(7), 3265-3276.
  • Mun, S., Cho, Y.Ho.,(2012). Modified harmony search optimization for constrained design problems. Expert Systems with Applications, 39(1), 419-423.
  • Yang, X.S., Deb, S., (2009). Cuckoo search via Levy flights, World Congres on Nature & Biologically Inspired Computing (NaBIC). IEEE Publications, 210-214.
  • Yang, X.S., (2010(a)).Nature-Inspired Metaheuristicalgorthms, Second edition Luniver Press, United Kingdom.
  • Yang, X.S., Deb, S., (2010(b)). Engineering Optimisation by Cuckoo Search.International Journal of Mathematical Modelling and Numerical Optimisation 2(4), 330-343.
  • Valian, E., Tavakoli, S., Mohanna, S., Haghi, A., (2013). Improved cuckoo search for reliability optimization problems, Computers & Industrial Engineering, 64, 1, 459-468.
  • Zahara, E., Kao Y. T., (2009). Hybrid Nelder-Mead simplex search and particle swarm optimization for constrained engineering design problems. Expert Systems with Applications 36(2), 3880-3886.Part 2.
  • Zou, D., Liu, H., Gao, L., Li., S., (2011). Directed searching optimization algorithm for constrained optimization problems.Expert Systems with Applications 38(7), 8716-8723.
  • Zhao, Jia-ging., Wang, L., Zeng, P., Fan, Wen-hui, (2012). An effective hybrid genetic algorithm with flexible allowance technique for constrained engineering design optimization. Expert Systems with Applications 39(5), 6041-6051.
  • *
    Author email:
  • Publication Dates

    • Publication in this collection
      06 May 2014
    • Date of issue
      Dec 2014
    Individual owner www.lajss.org - São Paulo - SP - Brazil
    E-mail: lajsssecretary@gmsie.usp.br