Skip to content

Commit e6f66de

Browse files
committed
Remove space for BA testing
1 parent 462fa7e commit e6f66de

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/swarm_based/test_BA.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
# Github: https://github.com/thieu1995 %
55
# --------------------------------------------------%
66

7-
from mealpy import FloatVar, BA, Optimizer
87
import numpy as np
98
import pytest
109

10+
from mealpy import FloatVar, BA, Optimizer
11+
1112

1213
@pytest.fixture(scope="module") # scope: Call only 1 time at the beginning
1314
def problem():
@@ -26,7 +27,7 @@ def objective_function(solution):
2627
def test_BA_results(problem):
2728
models = [
2829
BA.OriginalBA(epoch=10, pop_size=50, loudness=0.8, pulse_rate=0.95, pf_min=0.1, pf_max=10.0),
29-
BA.AdaptiveBA(epoch=10, pop_size=50, loudness_min = 1.0, loudness_max = 2.0, pr_min = 0.15, pr_max = 0.85, pf_min = -2.5, pf_max = 10.),
30+
BA.AdaptiveBA(epoch=10, pop_size=50, loudness_min=1.0, loudness_max=2.0, pr_min=0.15, pr_max=0.85, pf_min=-2.5, pf_max=10.),
3031
BA.DevBA(epoch=10, pop_size=50, pulse_rate=0.95, pf_min=0., pf_max=10.)
3132
]
3233
for model in models:

0 commit comments

Comments
 (0)