A framework for building genetic programming (GP) models.
The framework contains:
- The representation of genetic programs (parse trees)
- Genetic operators including natural selection, reproduction, and mutation
- An easy-to-use programming framework to build and train your GP models
- A template system to specify the nodes allowed for each type.
- A genetic algorithm optimization framework (you can choose not to use GP).
Genetic programming (GP) is an extension of genetic algorithms. GP encodes the parameters into a parse tree rather than a chromosome, which is normally represented as a string. A parse tree is a representation of a string's syntactic structure as described by some context-free grammar. It starts from a population of randomly generated programs, then tries to fit for a particular task by applying genetic operators iteratively over a number of generations. Finally, the optimization algorithm returns the best model in the population.
-
Clone the project into your project
git clone https://github.com/RapDoodle/Genetic-Programming-MATLAB.git ./gp
-
Add the toolbox to your MATLAB path
addpath(genpath('./gp'));
-
Start coding.
You can find more documentation and examples in the documentation folder.
- Introduction.
- Components
- Examples
Note: The development documentation is not available at the moment. But the code does contain an extensive amount of comments.
This project is licensed under the MIT license. Copyright (c) 2022 Bohui WU.