Global optimization toolbox - GA

3 次查看(过去 30 天)
Sata
Sata 2012-12-3
When I run the GA solver, I got the following warning: What does it mean? What action should I take or I just ignore it?
Warning: Length of upper bounds is > length(x); ignoring extra bounds.

回答(1 个)

Matt J
Matt J 2012-12-3
You've specified more upper bounds than there are variables.
  5 个评论
Walter Roberson
Walter Roberson 2012-12-4
There will be no effect if you ignore the warning. However, warnings often indicate that you might not be passing in the values that you think you are passing in.
Yes, for ga() you can use [] if the constraint does not exist.
Matt J
Matt J 2012-12-4
编辑:Matt J 2012-12-4
If we don't get rid of the warning messages, will it affect the results?
It sounds like it could affect the results and it doesn't make sense to accept the warnings whose apparent cause is so simple to solve.
If the unknown vector x is of length N, then ub and lb should be length N vectors as well. The warning is telling you that this is not the case. This could very well mean, as Walter intimated, that you are not applying bounds where you think you are.

请先登录,再进行评论。

类别

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