Input: ,,,, MaxGeneration, , cost-emission-capacities coefficients |
Output: for , , , |
|
Begin of algorithm |
Define the multiobjective function: max , with |
Generate initial population of fireflies ββ%generate initial solutions |
Light Intensity of firefly is determined by objective function, |
Define , and ββ%necessary algorithmβs parameters |
While ( β€ MaxGeneration = 50) |
βFor ββ%for all fireflies (solutions) |
ββFor ββ%for all fireflies (solutions) |
βββIf |
βββThen move firefly towards firefly (move towards brighter one) |
βββAttractiveness varies with distance via exp |
βββGenerate and evaluate new solutions and update Light Intensity |
ββEnd for loop |
βEnd for loop |
Check the ranges of the given solutions and update them as appropriate |
Rank the fireflies, find and display the current best %max solution for each iteration |
End of while loop |
% Post-process results and visualization |
Find the firefly with the highest Light Intensity among all fireflies %optimal solution |
Plot the increase of the Light Intensity with timeβiterations |
Plot the two objectives with time %best solution with time |
End of algorithm |