Skip to content

Latest commit

 

History

History
23 lines (23 loc) · 833 Bytes

README.md

File metadata and controls

23 lines (23 loc) · 833 Bytes

Prerequisite

Install Message Passing Interface (MPI):
sudo apt-get install openmpi-bin openmpi-common libopenmpi-dev openmpi-doc

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.