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.
0 个评论
回答(1 个)
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
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!