You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23-21
Original file line number
Diff line number
Diff line change
@@ -33,12 +33,23 @@ To print all available algorithms:
33
33
swarm --help
34
34
```
35
35
36
-
## Firefly Algorithm
36
+
## Contribution
37
+
38
+
If you found a bug or are missing a feature do not hesitate to [file an issue](https://github.com/HaaLeo/swarmlib/issues/new/choose).
39
+
Pull Requests are welcome!
40
+
41
+
## Support
42
+
When you like this package make sure to [star the repository](https://github.com/HaaLeo/swarmlib/stargazers). I am always looking for new ideas and feedback.
43
+
In addition, it is possible to [donate via paypal](https://www.paypal.me/LeoHanisch/3eur).
44
+
45
+
## Algorithms
46
+
47
+
### Firefly Algorithm
37
48
38
49
This repository includes the _firefly algorithm_ like Xin-She Yang introduced in his paper [Firefly Algorithms for Multimodal Optimization](https://link.springer.com/chapter/10.1007%2F978-3-642-04944-6_14) in 2009 (DOI: 10.1007/978-3-642-04944-6_14).
39
50
The implementation was part of the course [Natural computing for learning and optimisation](https://is.cuni.cz/studium/eng/predmety/index.php?do=predmet&kod=NPFL107) at Charles University Prague in winter 2018/2019.
40
51
41
-
### Features
52
+
####Features
42
53
43
54
Enables to apply the firefly algorithm to one of the provided 2D functions. The algorithm tries to find the global minimum of the selected function.
44
55
@@ -54,7 +65,7 @@ To print all available options execute:
This repository also implements the _cuckoo search_ that was introduced by Xin-She Yang and Suash Deb in their paper [Cuckoo Search via Lévy flights](https://ieeexplore.ieee.org/document/5393690) in 2009 (DOI: 10.1109/NABIC.2009.5393690).
72
83
73
-
### Features
84
+
####Features
74
85
75
86
Enables to apply cuckoo search to one of the provided 2D functions. The algorithm tries to find the global minimum of the selected function.
76
87
@@ -88,7 +99,7 @@ To print all available options execute:
88
99
swarm cuckoos -h
89
100
```
90
101
91
-
### API
102
+
####API
92
103
93
104
In addition to the cli you can also use the API:
94
105
@@ -99,11 +110,11 @@ problem = CuckooProblem(function=FUNCTIONS['michalewicz'], nests=14)
99
110
best_nest = problem.solve()
100
111
problem.replay()
101
112
```
102
-
## Particle Swarm Optimization
113
+
###Particle Swarm Optimization
103
114
104
115
This repository also implements modified _particle swarm optimization_ that was introduced by Yuhui Shi and Russell C. Eberhart in their paper [A modified particle swarm optimizer](https://ieeexplore.ieee.org/document/699146) in 1998 (DOI: 10.1109/ICEC.1998.699146). Their approach introduces a so called _inertia weight_ w. To get the [original particle swarm optimization](https://ieeexplore.ieee.org/document/488968) algorithm, just set the parameter `--weight=1`.
105
116
106
-
### Features
117
+
####Features
107
118
108
119
Enables to particle swarm optimization to one of the provided 2D functions. The algorithm tries to find the global minimum of the selected function.
109
120
@@ -121,7 +132,7 @@ To print all available options execute:
This repository includes an _ant colony optimization_ algorithm for the traveling salesman problem (TSP) like Marco Dorigo, Mauro Birattari, and Thomas Stuetzle introduced in the [IEEE Computational Intelligence Magazine](https://ieeexplore.ieee.org/document/4129846) in November 2006 (DOI: 10.1109/MCI.2006.329691).
139
150
The implementation was part of the course [Natural computing for learning and optimisation](https://is.cuni.cz/studium/eng/predmety/index.php?do=predmet&kod=NPFL107) at Charles University Prague in winter 2018/2019.
140
151
141
-
### Features
152
+
####Features
142
153
143
154
Enables to apply the ant colony optimization algorithm to a TSP using a [TSPLIB95](http://comopt.ifi.uni-heidelberg.de/software/TSPLIB95/) file and plots the result.
144
155
@@ -153,7 +164,7 @@ To print all available options execute:
153
164
swarm ants -h
154
165
```
155
166
156
-
### API
167
+
####API
157
168
158
169
In addition to the cli you can also use the API:
159
170
@@ -164,12 +175,3 @@ problem = ACOProblem('/path/to/my/tsp-file.tsp', 10)
164
175
if problem.solve():
165
176
problem.show_result()
166
177
```
167
-
168
-
## Contribution
169
-
170
-
If you found a bug or are missing a feature do not hesitate to [file an issue](https://github.com/HaaLeo/swarmlib/issues/new/choose).
171
-
Pull Requests are welcome!
172
-
173
-
## Support
174
-
When you like this package make sure to [star the repository](https://github.com/HaaLeo/swarmlib/stargazers). I am always looking for new ideas and feedback.
175
-
In addition, it is possible to [donate via paypal](https://www.paypal.me/LeoHanisch/3eur).
0 commit comments