GA for binary variables

Could please any one helps me on how I can define the variables type in genetic algorithm, as I am considering an optimization problem of binary variables. also please i would like to know how i can tune the parameters of GA; like size of population, number of generation, ... etc.
please if any one can show me an example of GA code for binary variables.
thank you in advance,

Answers (1)

Alan Weiss
Alan Weiss on 30 Apr 2015

0 votes

Alan Weiss
MATLAB mathematical toolbox documentation

Asked:

on 29 Apr 2015

Answered:

on 30 Apr 2015

Community Treasure Hunt

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

Start Hunting!