Skip to content

Commit dc94b7e

Browse files
committed
python3 support
1 parent 75ded5f commit dc94b7e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,9 @@ print Best
2222
## Bugs
2323
Bugs and extension should be send via Github.
2424

25+
## Reference Papers:
2526

27+
I. Fister Jr., X.-S. Yang, I. Fister, J. Brest. [Memetic firefly algorithm for combinatorial optimization](http://www.iztok-jr-fister.eu/static/publications/44.pdf) in Bioinspired Optimization Methods and their Applications (BIOMA 2012), B. Filipic and J.Silc, Eds.
28+
Jozef Stefan Institute, Ljubljana, Slovenia, 2012
29+
30+
I. Fister, I. Fister Jr., X.-S. Yang, J. Brest. [A comprehensive review of firefly algorithms](http://www.iztok-jr-fister.eu/static/publications/23.pdf). Swarm and Evolutionary Computation 13 (2013): 34-46.

run.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/env python2
21
from FireflyAlgorithm import *
32

43

@@ -12,4 +11,4 @@ def Fun(D, sol):
1211
Algorithm = FireflyAlgorithm(10, 20, 10000, 0.5, 0.2, 1.0, -2.0, 2.0, Fun)
1312
Best = Algorithm.Run()
1413

15-
print Best
14+
print (Best)

0 commit comments

Comments
 (0)