File Exchange

image thumbnail

Basic Genetic Algorithm

version 1.2 (5.52 KB) by

An easy to use Genetic Algorithm



View License

These scritps implement the version of the Genetic Algorithm decribed in
"Control predictivo basado en modelos mediante técnica de optimización heurística. Aplicación a procesos no lineales y multivariables. F. Xavier Blasco Ferragud. PhD Tesis 1999 (in Spanish). Editorial UPV. ISBN 84-699-5429-6.
It is an easy to use GA and basic instructions are supplied.
Available at:

Comments and Ratings (8)


Harry Smith

Thanks for the code, quick conversion from Matlab solver GA to yours

Xavier Blasco

Xavier Blasco (view profile)

Answer to Jaouadi Zouhour.
No heuristic algorithm can guarantee to have found the global optimum. In the current version of the algorithm the stop is done with a fixed number of iterations, but the user can add his own criterion of stop in the function gaiteration.m. This function is executed at each iteration of the algorithm.
For instances, you could add:
if yourStopCriterionIsSatisfied
Change yourStopCriterionIsSatisfied by your own condition.

Thank you for the code.
I have a question, While applying the ga alg. my optimal function converges to a fix value starting from an iteration (iteration: 50). does it correspond to the optimal point? is it possible to stop the iterations and assume it as the minimum ?

Ahmad wali

New SLM scheme to reduce the PAPR of OFDM signals using
a genetic algorithm



Correcting the order in the way each the gaiteration is performed.
Minor bug fix in the introductions of individuals at the initial population.


Bug fixed. Improved code efficiency.

MATLAB Release
MATLAB 7.9 (R2009b)

Inspired: Economic Dispatch by dynamic GA

MATLAB Online Live Editor Challenge

Win cash prizes and have your live script featured on our website

Learn more

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video