Skip to content

Commit 75ded5f

Browse files
committed
setup file added
1 parent 170394d commit 75ded5f

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed

README.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,25 @@
1-
# FireflyAlgorithm
1+
# Firefly Algorithm in Python
2+
3+
## CODE EXAMPLE:
4+
5+
```python
6+
from FireflyAlgorithm import *
7+
8+
9+
def Fun(D, sol):
10+
val = 0.0
11+
for i in range(D):
12+
val = val + sol[i] * sol[i]
13+
return val
14+
15+
16+
Algorithm = FireflyAlgorithm(10, 20, 10000, 0.5, 0.2, 1.0, -2.0, 2.0, Fun)
17+
Best = Algorithm.Run()
18+
19+
print Best
20+
```
21+
22+
## Bugs
23+
Bugs and extension should be send via Github.
24+
25+

setup.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
from distutils.core import setup
2+
3+
setup(name='FireflyAlgorithm',
4+
description='Firefly algorithm implementation',
5+
author='firefly-cpp',
6+
version='0.0.1',
7+
license='MIT',
8+
classifiers=[
9+
'Development Status :: 5 - Production/Stable',
10+
'Intended Audience :: Developers',
11+
'Intended Audience :: Science/Research',
12+
'Operating System :: OS Independent',
13+
'Topic :: Scientific/Engineering',
14+
'Topic :: Software Development'
15+
],
16+
url='https://github.com/firefly-cpp/FireflyAlgorithm',
17+
py_modules=['FireflyAlgorithm']
18+
)
19+

0 commit comments

Comments
 (0)