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
- Host: GitHub
- URL: https://github.com/sensoranalyticsaus/simple_ga_parallel
- Owner: SensorAnalyticsAus
- License: other
- Created: 2022-09-23T15:12:54.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-20T07:33:48.000Z (almost 2 years ago)
- Last Synced: 2025-02-28T00:31:55.325Z (over 1 year ago)
- Language: C
- Homepage:
- Size: 197 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: License.md
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.