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
- Host: GitHub
- URL: https://github.com/sensoranalyticsaus/simple_ga_1.1
- Owner: SensorAnalyticsAus
- License: other
- Created: 2022-09-22T23:19:52.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-24T01:32:33.000Z (over 3 years ago)
- Last Synced: 2025-02-28T00:31:49.469Z (over 1 year ago)
- Topics: artificial-intelligence, genetic-algorithm, machine-learning-algorithms
- Language: C
- Homepage:
- Size: 108 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: License.md
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