An open API service indexing awesome lists of open source software.

https://github.com/sensoranalyticsaus/simple_ga_parallel

Parallel Genetic Algorithm
https://github.com/sensoranalyticsaus/simple_ga_parallel

Last synced: about 1 year ago
JSON representation

Parallel Genetic Algorithm

Awesome Lists containing this project

README

          

## Prerequisite
##### Install Message Passing Interface (MPI):
````
sudo apt-get install openmpi-bin openmpi-common libopenmpi-dev openmpi-doc
````
##### Or build from either of these sources:

https://www.mpich.org/downloads/

https://www.open-mpi.org/software/ompi/v4.1/
## Compile
````
git clone https://github.com/SensorAnalyticsAus/Simple_GA_parallel.git
cd Simple_GA_parallel/
make
make clean
````
## Run
##### For quad core processor:



mpirun -np 4 ./sga_parr

##### The number of processors, *-np*, should be set equal to the number of cores of your CPU.
## Settings
##### SGA parameters are set in `sga3.var`
## Acknowledgements
##### This C code is based upon D.E. Goldberg's Genetic Algorithms in Search, Optimisation and Machine Learning 1989. MPI parallelisation by N. Zaidi 2016.