File Exchange

image thumbnail

The Continuous Version of The Genetic Algorithm

version (197 KB) by Seyedali Mirjalili
The Continuous Genetic Algorithms (CGA)


Updated 20 Jun 2018

View License

This submission includes the continuous version of the Genetic Algorithm. There are functions for each and the CGeneticAlgorithm has been developed as a function.
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 (2020). The Continuous Version of The Genetic Algorithm (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (3)


This code is written keeping in mind the maximization of the objective function. What changes should I make to minimize the objective function?

Stephen Zhao

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