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

2 次查看(过去 30 天)
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.

回答(1 个)

Walter Roberson
Walter Roberson 2016-1-22
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

类别

Help CenterFile Exchange 中查找有关 Solver Outputs and Iterative Display 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by