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

https://github.com/sensoranalyticsaus/simple_ga_1.1

A Simple Genetic Algorithm
https://github.com/sensoranalyticsaus/simple_ga_1.1

artificial-intelligence genetic-algorithm machine-learning-algorithms

Last synced: 6 days ago
JSON representation

A Simple Genetic Algorithm

Awesome Lists containing this project

README

          

# Simple Genetic Algorithm (SGA)
## Compile
##### One of the following commands will compile the simple genetic algorithm executable in the downloaded folder.

 

make sga2
make sga3

##### The SGA binaries for the sample objective function codes, *obj2.c* and *obj3.c*, will be *sga2* and *sga3* respectively.
## Run
##### The compiled code is run by writing an objective function to be optimised by SGA in *C*, two such sample objective function codes are provided in the downloaded folder.
##### File *sga3.var* contains the SGA parameters. These are explained in **Simple Genetic Algorithm Explainer.pdf** [Section 4]. Results are stored in *genout.dat*.

## Acknowledgement
##### This C code is based upon D.E. Goldberg's Genetic Algorithms in Search, Optimisation and Machine Learning 1989.

##### ©SAA 2022