<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Solving the Tension/Compression Spring Design Problem by an Improved Firefly Algorithm</article-title>
      </title-group>
      <contrib-group>
        <aff id="aff0">
          <label>0</label>
          <institution>Karabuk University, Department of Computer Engineering</institution>
          ,
          <addr-line>Karabuk</addr-line>
          ,
          <country country="TR">Turkey</country>
        </aff>
      </contrib-group>
      <fpage>0000</fpage>
      <lpage>0002</lpage>
      <abstract>
        <p>Since the 1970s, nature inspired meta-heuristic algorithms have become increasingly popular. These algorithms include a set of algorithmic concepts that can be used to identify heuristic methods that are used for a wide range of different tasks. The use of meta-heuristics greatly increases the possibility of finding a qualitative solution for complex, combinatorial optimization problems in a reasonable time. The most popular nature inspired meta-heuristics are those methods representing successful animal and micro-organism swarm behaviors. Firefly Algorithm (FA) is a recent one of such meta-heuristic algorithms It is based on a swarm intelligence and inspired by the social behaviors of fireflies. In this paper, we adapt the neighborhood method to FA and propose an improved firefly algorithm (IFA) to solve a well-known engineering problem, the so-called Tension/Compression Spring Design. We test the proposed IFA on this problem and compare the results with those obtained by some other meta-heuristics. The experimental modeling shows that the proposed IFA is competitive and improves the quality of solutions for the aforementioned engineering design problem.</p>
      </abstract>
      <kwd-group>
        <kwd>Firefly Algorithm (FA)</kwd>
        <kwd>Tension/Compression Spring Design</kwd>
        <kwd>Swarm Intelligence</kwd>
        <kwd>Metaheuristic</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        The goal of heuristic or metaheuristic algorithms for solving combinatorial
optimization problems is to find an optimal value under specified constraints. A few general
approaches to optimization are available; analytical methods, numerical methods,
heuristic methods. Numerical optimization methods rely on computation of gradients in
determine the solution with maximum fitness. The standard assumptions in
optimization is a multimodal search space by specific techniques that have additional constraints
imposed on the search space such as linearity of constraints and objective function in
linear programming and assumption of discrete variables in combinatorial optimization
[
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. If the search space is non-convex, then an optimal solution cannot be guaranteed.
The problem with numerical optimization technique is the locality of optima i.e. the
solution depends on the starting solution wherein the gradients force the optimum to a
local optimum even though a better solution would exist elsewhere in the search space.
Stochastic optimization techniques rely on random perturbations to the solution space
and are more adept at preventing a solution from being trapped in a local optimum for
non-convex problems [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. The obvious problem with stochastic optimization
techniques is that on an average it requires a lot more computations of alternate solutions
compared to gradient-based techniques. Many practical problems of importance are not
convex and difficult to solve in reasonable amount of time; consequently, heuristics are
deployed to make the solution feasible in a reasonable amount of time. Heuristics is a
way of approximation of solution by trading optimality for speed. Meta-heuristic
algorithms are generic algorithmic frameworks that are often rooted in natural processes,
such as simulated annealing, genetic algorithm and behavior of insects. Meta-heuristic
algorithms cannot guarantee a global optimum however they are able to provide good
solutions in reasonable timeframe and are typically able to avoid local optima [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ].
      </p>
      <p>The work is organized as follows. We first give in Section 2 the formulation of the
tension/compression spring design problem. In Section 3, we review firefly algorithm
and propose an improved firefly algorithm. We present in Section 4 some
computational results for the problem and finally, give some concluding remarks in Section 5.
1</p>
    </sec>
    <sec id="sec-2">
      <title>The Tension/Compression Spring Design</title>
      <p>
        The Tension/Compression Spring Design problem (TCSD) illustrated in Fig 1 is a
continuous constrained problem. The problem is to minimize the volume V of a coil spring
under a constant tension/compression load. The problem consists of three design
variables. These are:
 the number of spring's active coils  =  1 ∈ [
        <xref ref-type="bibr" rid="ref15 ref2">2, 15</xref>
        ];
 the diameter of the winding  =  2 ∈ [0.25, 1.3];
 the diameter of the wire  =  3 ∈ [0.05, 2].
      </p>
      <p>
        The mathematical formulation of the TCSD problem is as follows: [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]
subject to
(1)
The design problem upper and lower bounds variables are
(3)
      </p>
      <p>This is a convex optimization problem and the closed form optimum solution of the
problem is f(X) =0.0126652327883 for X = [x1, x2, x3] = [0.051689156131,
0.356720026419, 11.288831695483].</p>
      <p>
        Fig 1. Schematic of tension/compression spring design problem [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ].
4
      </p>
    </sec>
    <sec id="sec-3">
      <title>Firefly Optimization Algorithm</title>
      <p>
        Firefly algorithm (FA) is a recent nature inspired approach based on swarm intelligence
and inspired by the social behaviors of fireflies in tropical zones for solving
optimization problems developed by Yang in 2008 [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. This algorithm is based on the
phenomenon of bioluminescence. The light produced by the special photogenic bodies acts as
a communication channel. The main task of flashing light is to attract a partner.
      </p>
      <p>
        The mathematical form of the algorithm is based on the following assumptions. First
of all, all fireflies are unisex and therefore can communicate with anyone else [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. The
attractiveness, in this case, is determined by the level of brightness of the individual.
Brighter light attracts the others. [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. This is performed for any binary combination of
fireflies in the population, on every algorithm’s iteration. The brightness of a firefly is
determined by the objective function of the problem [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ].
      </p>
      <p>
        Optimization algorithms typically employ either global or local search methods.
Global search methods aim to find the best solution in the entire search space often by
seeding multiple initial solutions in the search space and randomly perturbing the
solution. Local search methods typically start from a single initial solution and improve the
results of a global search by computing gradients in the local search space to reach a
local minima/maxima [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. Classical firefly algorithm aims to find an optimal solution.
In this paper, we introduce local search methods with the best global solution to
improve the results of the classical firefly algorithm. By deploying local search methods,
we borrow a random element from the best global solution and process it with some
random variables to see if the global solution can be enhanced any further as described
in equation (4) below:
(4)
where m is the dimension of the solution for each firefly, a value in the current solution
set (population) is defined by xi ; j denotes the randomly selected item from the solution
set. The best solution (global minimum) is represented by b.. The main feature of xij, is
that, the bi is multiplied by a random value α in [
        <xref ref-type="bibr" rid="ref1">0,1</xref>
        ]. The improvement of the
algorithm is that the obtained result is added to the overall solution. The pseudo code of the
proposed method is given as Algorithm 1.
      </p>
      <p>Algorithm 1: The Improved Firefly Algorithm
4</p>
    </sec>
    <sec id="sec-4">
      <title>Computational Results</title>
      <p>The experimental test is carried out with the following parameters for both
classical FA and the proposed IFA.</p>
      <p>

</p>
      <p>Number of iterations = 20.000
Number of fireflies = 20</p>
      <p>Randomness factor, α = 0.5

</p>
      <p>Attractiveness of a firefly,  = 0.2</p>
      <p>Absorption coefficient, Ω = 1</p>
      <p>
        The worst ,best and also the average results by the parameters obtained in the
computational tests to solve TCSD problem are shown in Table 1. Moreover, the number
of fireflies, the worst, best, average results and standard deviations obtained by Firefly
Algorithm in literature as well as firefly algorithm and improved firefly algorithm
algorithms used in this paper are presented in Table 2.
Akay and Karaboga 2012 ABC
[
        <xref ref-type="bibr" rid="ref16">16</xref>
        ]
Garg 2014 [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ] ABC
Modified FA [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] MFA
Present work, IFA IFA
0.051749
As it can be seen from Table 3, proposed IFA finds better results than eight out of 8
existing ones algorithms in comparison and gives worse results than the rest.
5
      </p>
    </sec>
    <sec id="sec-5">
      <title>Discussion &amp; Conclusion</title>
      <p>At the present time, optimization algorithms are ubiquitously used to solve problems in
many domains, many engineering finance and operations research. Heuristic and
metaheuristic optimization algorithms are commonly used where the search space is
complex. Meta-heuristics can be a general algorithmic wrapper that can be applied to
solving various optimization tasks with a relatively small number of modifications to make
it adapted to a particular problem. Its application greatly enhances the possibility of
finding a qualitative solution for complex, topical combinatorial optimization problems
in a reasonable time. Firefly algorithm is a recent swarm intelligence meta-heuristic
algorithm. In this paper, a neighborhood method is integrated to the current FA and the
new algorithm IFA is proposed. IFA integrates the stochastic randomness of the
classical FA with the local search to maximize the outcome. To compare the performance of
FA and IFA, we tested them on two well-known engineering design problem with a
closed form solution.</p>
      <p>A direct comparison of FA and IFA shows that IFA performs better than FA. We
also compared IFA with the results of other optimization algorithms.
Compression/Tension Spring Design problem is compared with 15 existing optimization algorithm. IFA
is worse than seven and better than eight algorithms. Often multiple algorithms need to
be tried to get the most optimum value for a solution and we believe that IFA would be
a good algorithm in the mix for maximizing the returns.</p>
    </sec>
    <sec id="sec-6">
      <title>Acknowledgement References</title>
      <p>This investigation was supported by Research Fund of the Karabuk University.
Project Number: KBUBAP-18-DS-174.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Lemonge</surname>
            ,
            <given-names>A. C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Barbosa</surname>
            ,
            <given-names>H. J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Borges</surname>
            ,
            <given-names>C. C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Silva</surname>
            ,
            <given-names>F. B.</given-names>
          </string-name>
          :
          <article-title>Constrained Optimization Problems in Mechanical Engineering Design Using a Real-Coded Steady-State Genetic Algorithm</article-title>
          .
          <source>Mecánica Computacional</source>
          ,
          <volume>29</volume>
          ,
          <fpage>9287</fpage>
          -
          <lpage>9303</lpage>
          (
          <year>2010</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Yang</surname>
            ,
            <given-names>X.-S.</given-names>
          </string-name>
          :
          <article-title>Nature-Inspired Metaheuristic Algorithms</article-title>
          . Luniver Press, (
          <year>2008</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Mladenović</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hansen</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          :
          <article-title>Variable neighborhood search</article-title>
          .
          <source>Computers &amp; Operations Research 24.11</source>
          (
          <year>1997</year>
          ):
          <fpage>1097</fpage>
          -
          <lpage>1100</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Kazemzadeh-Parsi</surname>
            ,
            <given-names>M. J.:</given-names>
          </string-name>
          <article-title>A Modified Firefly Algorithm for Engineering Design Optimization Problems</article-title>
          . IJST,
          <source>Transactions of Mechanical Engineering</source>
          <volume>38</volume>
          (
          <issue>M2</issue>
          ),
          <fpage>403</fpage>
          -
          <lpage>421</lpage>
          (
          <year>2014</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Carlos</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Coello</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          :
          <article-title>Use of a self-adaptive penalty approach for engineering optimization problems</article-title>
          .
          <source>Computers in Industry</source>
          <volume>41</volume>
          (
          <issue>2</issue>
          ),
          <fpage>113</fpage>
          -
          <lpage>127</lpage>
          (
          <year>2000</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Ray</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Liew. K. M.</surname>
          </string-name>
          <article-title>: Society and Civilization: An Optimization Algorithm Based on the Simulation of Social Behavior</article-title>
          .
          <source>IEEE Transactions on Evolutionary Computation</source>
          <volume>7</volume>
          ,
          <fpage>386</fpage>
          -
          <lpage>396</lpage>
          (
          <year>2003</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Raj</surname>
            ,
            <given-names>K. H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sharma</surname>
            ,
            <given-names>R. S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mishra</surname>
            ,
            <given-names>G. S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dua</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Patvardhan</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          :
          <article-title>An Evolutionary Computational Technique for Constrained Optimisation in Engineering Design</article-title>
          .
          <source>Journal of the Institution of Engineers India Part Me Mechanical Engineering Division</source>
          <volume>86</volume>
          ,
          <fpage>121</fpage>
          -
          <lpage>128</lpage>
          (
          <year>2005</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Hedar</surname>
            ,
            <given-names>A.-R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fukushima</surname>
            ,
            <given-names>M:</given-names>
          </string-name>
          <article-title>Derivative-Free Filter Simulated Annealing Method for Constrained Continuous Global Optimization</article-title>
          .
          <source>Journal of Global Optimization</source>
          <volume>35</volume>
          (
          <issue>4</issue>
          ),
          <fpage>521</fpage>
          -
          <lpage>549</lpage>
          (
          <year>2006</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>He</surname>
            ,
            <given-names>Q.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wang</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          :
          <article-title>An Effective Co-Evolutionary Particle Swarm Optimization for Constrained Engineering Design Problems</article-title>
          .
          <source>Engineering Applications of Artificial Intelligence</source>
          <volume>20</volume>
          ,
          <fpage>89</fpage>
          -
          <lpage>99</lpage>
          (
          <year>2007</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Zhang</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Luo</surname>
            ,
            <given-names>W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wang</surname>
            ,
            <given-names>X.</given-names>
          </string-name>
          :
          <article-title>Differential evolution with dynamic stochastic selection for constrained optimization</article-title>
          .
          <source>Information Sciences</source>
          <volume>178</volume>
          (
          <issue>15</issue>
          ),
          <fpage>3043</fpage>
          -
          <lpage>3074</lpage>
          (
          <year>2008</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Montes</surname>
            ,
            <given-names>E. M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Coello</surname>
            <given-names>C. A. C.</given-names>
          </string-name>
          :
          <article-title>An Empirical Study About The Usefulness of Evolution Strategies to Solve Constrained Optimization Problems</article-title>
          .
          <source>International Journal of General Systems</source>
          <volume>37</volume>
          ,
          <fpage>443</fpage>
          -
          <lpage>473</lpage>
          (
          <year>2008</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Shen</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zhu</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Niu</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wu</surname>
            ,
            <given-names>G. H.</given-names>
          </string-name>
          :
          <article-title>An Improved Group Search Optimizer for Mechanical Design Optimization Problems</article-title>
          .
          <source>Progress in Natural Science</source>
          <volume>19</volume>
          ,
          <fpage>91</fpage>
          -
          <lpage>97</lpage>
          (
          <year>2009</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Omran</surname>
            ,
            <given-names>M. G. H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Salman</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Constrained optimization using CODEQ, Chaos</article-title>
          .
          <source>Solitons &amp; Fractals</source>
          <volume>42</volume>
          ,
          <fpage>662</fpage>
          -
          <lpage>668</lpage>
          (
          <year>2009</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Coelho</surname>
            ,
            <given-names>L. S.</given-names>
          </string-name>
          :
          <article-title>Gaussian Quantum-Behaved Particle Swarm Optimization Approaches for Constrained Engineering Design Problems</article-title>
          .
          <source>Expert Systems with Applications</source>
          <volume>37</volume>
          ,
          <fpage>1676</fpage>
          -
          <lpage>1683</lpage>
          (
          <year>2010</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <surname>Gandomi</surname>
            ,
            <given-names>A. H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Yang</surname>
            ,
            <given-names>X. S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Alavi</surname>
            ,
            <given-names>A. H.</given-names>
          </string-name>
          <string-name>
            <surname>Talatahari</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          :
          <source>Bat Algorithm for Constrained Optimization Tasks."Neural Computing and Applications</source>
          <volume>22</volume>
          (
          <issue>6</issue>
          ),
          <fpage>1239</fpage>
          -
          <lpage>1255</lpage>
          (
          <year>2013</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16.
          <string-name>
            <surname>Akay</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Karaboga</surname>
          </string-name>
          . D.:
          <article-title>Artificial bee colony algorithm for large-scale problems and engineering design optimization</article-title>
          .
          <source>Journal of Intelligent Manufacturing</source>
          <volume>23</volume>
          (
          <issue>4</issue>
          ),
          <fpage>1001</fpage>
          -
          <lpage>1014</lpage>
          (
          <year>2012</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          17.
          <string-name>
            <surname>Garg</surname>
          </string-name>
          , H.:
          <article-title>Solving Structural Engineering Design Optimization Problems Using an Artificial Bee Colony Algorithm</article-title>
          .
          <source>Journal of Industrial And Management Optimization</source>
          <volume>10</volume>
          ,
          <fpage>777</fpage>
          -
          <lpage>794</lpage>
          (
          <year>2014</year>
          ).
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>