https://github.com/nico-curti/genetic
Examples about genetic algorithms for parallel computing
https://github.com/nico-curti/genetic
distributed-computing genetic-algorithm parallel-computing
Last synced: about 1 year ago
JSON representation
Examples about genetic algorithms for parallel computing
- Host: GitHub
- URL: https://github.com/nico-curti/genetic
- Owner: Nico-Curti
- License: gpl-3.0
- Created: 2018-09-13T16:37:32.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-01T14:39:06.000Z (over 6 years ago)
- Last Synced: 2025-03-26T13:21:24.636Z (about 1 year ago)
- Topics: distributed-computing, genetic-algorithm, parallel-computing
- Language: C++
- Homepage: https://nico-curti.github.io/genetic
- Size: 65.4 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
| **Authors** | **Project** | **Build Status** |
|:------------:|:-----------:|:-----------------------------:|
| N. Curti | Genetic | **Linux/MacOS** : [](https://travis-ci.com/Nico-Curti/genetic) |
[](https://github.com/Nico-Curti/genetic/pulls)
[](https://github.com/Nico-Curti/genetic/issues)
[](https://github.com/Nico-Curti/genetic/stargazers)
[](https://github.com/Nico-Curti/genetic/watchers)
# Genetic algorithm
Examples of genetic algorithm applications in parallel and distributed environments.
1. [Prerequisites](#prerequisites)
2. [Installation](#installation)
3. [Authors](#authors)
4. [License](#license)
## Prerequisites
This project collects examples of genetic algorithm applications to very simple problems.
The codes are written in c++ language with the support of **c++14 standard**.
Before install it, please upgrade your c++ compiler version to a compatible one (ex. version >= 5 for g++ compiler).
For the multi-threading version of the algorithm **OpenMP** is required so please check if your compiler support it.
A more sophisticated version of the algorithm is written with **MPI**. Before install this project, please verify if **boost mpi** libraries are already installed.
For the MPI compiler must be set the variable OMPI_CXX.
## Installation
To build the executables, clone the repo and then type
```
make omp OMP=1
```
for the multi-threading version, and
```
make mpi MPI=1
```
for the message-passing version.
If in the Makefile the variable OMP is set to **true** (aka 1) you can enable multi-threading also for the mpi code (**hybrid version**).
## Authors
* **Nico Curti** [git](https://github.com/Nico-Curti), [unibo](https://www.unibo.it/sitoweb/nico.curti2)
## License
This project is released under GPL license. [](https://github.com/Nico-Curti/genetic/blob/master/LICENSE)