Do i need to convert the real values of the variables into binary while using GA toolbox?

3 visualizaciones (últimos 30 días)
I am using Matlab version 7.8.0.347 (R2009a). The standard procedure for Genetic algorithm is to convert the design variables into binary strings, but can i use the real values of the design variables while using GA toolbox.

Respuestas (1)

Walter Roberson
Walter Roberson el 22 de En. de 2016
If you are using ga() from the Global Optimization Toolbox, then even in R2009a it did not require you to convert design variables into binary strings. Just do not use optimset() to set PopulationType to 'bitstring' or 'custom' and the design variables will be taken as continuous values. See http://www.mathworks.com/help/releases/R2009a/toolbox/gads/index.html?/help/releases/R2009a/toolbox/gads/ga.html

Categorías

Más información sobre Solver Outputs and Iterative Display 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!

Translated by