Completed
Push — master ( 1ffd79...ed2fa1 )
by Grega
21s queued 13s
created

run_gsov3.MinMB.__init__()   A

Complexity

Conditions 1

Size

Total Lines 3
Code Lines 3

Duplication

Lines 3
Ratio 100 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nop 1
dl 3
loc 3
rs 10
c 0
b 0
f 0
1
# encoding=utf8
2
# This is temporary fix to import module from parent folder
3
# It will be removed when package is published on PyPI
4
import sys
5
sys.path.append('../')
6
# End of fix
7
8
from NiaPy.algorithms.basic import GlowwormSwarmOptimizationV3
9
from NiaPy.task import StoppingTask
10
from NiaPy.benchmarks import Sphere
11
12
for i in range(5):
13
    task = StoppingTask(D=10, nFES=10000, benchmark=Sphere())
14
    algo = GlowwormSwarmOptimizationV3()
15
    best = algo.run(task)
16
    print(best)
17
18
# vim: tabstop=3 noexpandtab shiftwidth=3 softtabstop=3
19