File Exchange

image thumbnail

Binary and Real-Coded Genetic Algorithms

version 1.0 (16.5 KB) by Yarpiz
MATLAB implementation of Standard Genetic Algorithms with Binary and Real Solution Representations


Updated 04 Sep 2015

View License

For more information, see the following link:

Cite As

Yarpiz (2021). Binary and Real-Coded Genetic Algorithms (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (13)

Rizky Martin Sianturi

anyone can help me to apply this for prediction of stock price, please?


mohammad karimi

Rationally fast! Thanks!

Patel mahesh

Chanchal Kumar

Jinlong Fu

Very Good!


Thank you for your work, but I have a questions,
Why are you calculate cost value after all ga operations(crossover and mutation) ? In Classical ga we calculate cost value after ga operations(crossover and mutation),
Thank you so much.

Ahmed raafat

best GA code

Mary Shah

when i run this code error comes in cost function. can you help me please?

Ahmed raafat

Thanks Alot

you rock!!! thanks a lot

Morrison Vehe

Great work

Yang Xiaolei

Dear Yarpiz,

Could you implement the crossover and mutation operator using Laplace crossover and Power mutation proposed by Kusum Deep?
Please send it to my email address


MATLAB Release Compatibility
Created with R2012b
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!