What does the error message "You must specify genome length" mean when I click the "Start" button in GATOOL within the Genetic Algorithm and Direct Search Toolbox 1.0 (R13SP1+)?

2 次查看(过去 30 天)
I type the command:
gatool
to bring up the Genetic Algorithm graphical interface. In the "Fitness function" field, I type:
@ackleyfcn
I then click the "Start" button, and I receive the following error message:
You must specify genome length
I would like to know what a "genome length" is.

采纳的回答

MathWorks Support Team
This bug has been fixed for Release 14 (R14). For previous releases, read below for any possible workarounds:
"Genome length" is another term for "Number of variables." This error message occurs because you have failed to specify a value within the "Number of variables" field of the GATOOL. The error message should read:
You must specify number of variables.
This is a bug in GATOOL within the Genetics Algorithms and Direct Search Toolbox 1.0 (R13SP1+) in the way the error message is displayed when the user fails to specify a value in the "Number of variables" field.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Genetic Algorithm 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by