The Genetic Algorithm (GA) : Selection + Crossover + Mutation + Elitism

version (5.29 KB) by Seyedali Mirjalili
This is the implementation of the original version of the genetic algorithm


Updated Mon, 11 Jun 2018 04:19:04 +0000

View License

This submission includes the main components of the Genetic Algorithm (GA) including Selection + Crossover + Mutation + Elitism. There are functions for each and the GA has been developed as a function as well. Of course, it is the discrete (binary) version of the GA algorithm since all the genes can be assigned with either 0 or 1.
More information can be found in
I have a number of relevant courses in this area. You can enrol via the following links with 95% discount:
A course on “Optimization Problems and Algorithms: how to understand, formulation, and solve optimization problems”:

A course on “Introduction to Genetic Algorithms: Theory and Applications”

Cite As

Seyedali Mirjalili (2022). The Genetic Algorithm (GA) : Selection + Crossover + Mutation + Elitism (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2016b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!