Skip to content

Commit 76b54fb

Browse files
authored
Merge pull request #4 from HaaLeo/feature/cuckoo-search
🔖 v0.4.0
2 parents 48e6cd9 + f661b84 commit 76b54fb

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
All notable changes to the "swarmlib" pypi package will be documented in this file.
33
This project follows [semantic versioning](https://semver.org/).
44

5+
## 2020-01-19 - v0.4.0
6+
* **Added** a feature that a feature that enables the cuckoo search for one of the provided 2D functions. After each step the intermediate solution is plotted.
57

68
## 2020-01-09 - v0.3.2
79
* **Fixed** a bug in the firefly algorithm that caused the application to crash when the ackley function was selected.

README.md

+9-5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77

88
## Description
99

10-
This repository implements several optimization algorithms:
10+
This repository implements several swarm optimization algorithms and visualizes their (intermediate) solutions.
11+
To run the algorithms one can either use the command line interface or the API.
12+
Currently, the following algorithms are implemented:
1113
* [Ant Colony Optimization](#ant-colony-optimization)
1214
* [Firefly Algorithm](#firefly-algorithm)
1315
* [Cuckoo Search](#cuckoo-search)
@@ -32,7 +34,7 @@ swarm --help
3234

3335
## Ant Colony Optimization
3436

35-
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).
37+
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).
3638
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.
3739

3840
### Features
@@ -52,7 +54,7 @@ swarm ants -h
5254

5355
### API
5456

55-
In addition to the client you can also use the API:
57+
In addition to the cli you can also use the API:
5658

5759
```python
5860
from swarmlib.aco4tsp.aco_problem import ACOProblem
@@ -85,7 +87,7 @@ swarm fireflies -h
8587

8688
### API
8789

88-
In addition to the client you can also use the API:
90+
In addition to the cli you can also use the API:
8991

9092
```python
9193
from swarmlib.fireflyalgorithm.firefly_problem import FireflyProblem
@@ -109,6 +111,8 @@ Currently two functions can be selected:
109111

110112
![cukoo search](https://raw.githubusercontent.com/HaaLeo/swarmlib/master/doc/cuckoos.gif)
111113

114+
The plot shows all nests of the current cuckoo generation as _red_ markers. The best nests of all (previous) generations are indicated by _yellow_ markers.
115+
112116
To print all available options execute:
113117

114118
```
@@ -117,7 +121,7 @@ swarm cuckoos -h
117121

118122
### API
119123

120-
In addition to the client you can also use the API:
124+
In addition to the cli you can also use the API:
121125

122126
```python
123127
from swarmlib.cuckoosearch.cuckoo_problem import CuckooProblem

swarmlib/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
# Licensed under the BSD 3-Clause License. See LICENSE.txt in the project root for license information.
44
# ------------------------------------------------------------------------------------------------------
55

6-
__version__ = '0.3.2'
6+
__version__ = '0.4.0'

swarmlib/cuckoosearch/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def configure_parser(sub_parsers):
5353
'-a',
5454
'--alpha',
5555
type=float,
56-
default=1,
56+
default=1.,
5757
help='Scaling parameter used for levy flight step. (default 1)')
5858
parser.add_argument(
5959
'-la',

0 commit comments

Comments
 (0)