Value must be a scalar

31 次查看(过去 30 天)
Giuseppe
Giuseppe 2024-7-1,18:21
评论: Giuseppe 2024-7-4,11:14
Hi, I am having a problem while I use the genetic algorithm. When I use the ga with only 3 populations it works, but when I increase the populations it gives me an error that a value must be a scalar.
I diden't understand why he gives the error only when I increase the population fron 3 onwards. Maybe someone knows the problem and could help me?

回答(1 个)

Walter Roberson
Walter Roberson 2024-7-1,20:34
You do not really give enough details to give a solid answer, but I speculate that you have an / operation that should be a ./ operation.
  1 个评论
Giuseppe
Giuseppe 2024-7-4,11:14
I tried to do what you recommended but it still doesn't work.
Thanks anyway for the help.

请先登录,再进行评论。

类别

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