Skip to content

Commit

Permalink
Update fa.py
Browse files Browse the repository at this point in the history
  • Loading branch information
GregaVrbancic committed Feb 21, 2018
1 parent f6685cf commit aad3b06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NiaPy/algorithms/basic/fa.py
Expand Up @@ -66,7 +66,7 @@ def __init__(self, D, NP, nFES, alpha, betamin, gamma, benchmark):
self.Fun = self.benchmark.function()

def init_ffa(self):
"""Initialization of firefly population."""
"""Initialize firefly population."""
for i in range(self.NP):
for j in range(self.D):
self.Fireflies[i][j] = random.uniform(
Expand All @@ -86,7 +86,7 @@ def eval_true(self):
self.eval_flag = False

def sort_ffa(self): #
"""Implementation of bubble sort."""
"""Implement bubble sort."""
for i in range(self.NP):
self.Index[i] = i

Expand Down

0 comments on commit aad3b06

Please sign in to comment.