How can I specify the variables which the genetic algorithm selects to be only whole numbers (using MatLab)?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
In Matlab GA tool-box, I can set the lower and upper bound of my variables but is it possible to specify the variables that are selected by the tool to be only whole numbers within the lower and upper bound?
0 comentarios
Respuestas (1)
Walter Roberson
el 28 de Feb. de 2017
You put the information after the non-linear constraint function and before the options.
2 comentarios
Walter Roberson
el 28 de Feb. de 2017
In that case you will need to provide custom population function, custom crossover function, and custom mutation function that just happen to only create intregal members.
Ver también
Categorías
Más información sobre Genetic Algorithm en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!