Mathematical Problems in Engineering / 2017 / Article / Alg 3

Research Article

Application of Heuristic and Metaheuristic Algorithms in Solving Constrained Weber Problem with Feasible Region Bounded by Arcs

Algorithm 3

Pseudocode of the FA.
Initial parameters of the FA including .
Generate initial population of fireflies () randomly distributed in the solution space.
Assume that is the expanded objective function of () calculated by (10).
.
while    do
for   to   do
for   to   do
if    then
Generate a new according to Eq. (8) and evaluate it.
end if
end for
end for
.
.
Rank the fireflies and memorize the best solution achieved so far.
end while

Article of the Year Award: Outstanding research contributions of 2020, as selected by our Chief Editors. Read the winning articles.