Passed
Push — master ( 6e34b7...0fe223 )
by
unknown
01:00
created

Fun()   A

Complexity

Conditions 2

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 2
c 1
b 0
f 1
dl 0
loc 5
rs 9.4285
1
# This is temporary fix to import module from parent folder
2
# It will be removed when package is published on PyPI
3
import sys
4
sys.path.append('../')
5
# End of fix
6
7
import random
8
from NiaPy.algorithms.basic import GeneticAlgorithm
9
10
11
for i in range(10):
12
    Algorithm = GeneticAlgorithm(10, 40, 10000, 4, 0.05, 'sphere')
13
    Best = Algorithm.run()
14
15
    print(Best.toString())
16