We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c6a32a commit ce1a5efCopy full SHA for ce1a5ef
fireflyalgorithm/tests/test_firefly.py
@@ -9,6 +9,6 @@ def sphere(x):
9
10
class TestFA(TestCase):
11
def test_algorithm(self):
12
- FA = FireflyAlgorithm(function=sphere, dim=10, lb=-5, ub=5, max_evals=10000)
13
- best = FA.move()
+ FA = FireflyAlgorithm()
+ best = FA.run(function=sphere, dim=10, lb=-5, ub=5, max_evals=10000)
14
self.assertLess(best, 5)
0 commit comments