Borrar filtros
Borrar filtros

Value must be a scalar

31 visualizaciones (últimos 30 días)
Giuseppe
Giuseppe el 1 de Jul. de 2024 a las 18:21
Comentada: Giuseppe el 4 de Jul. de 2024 a las 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?

Respuestas (1)

Walter Roberson
Walter Roberson el 1 de Jul. de 2024 a las 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 comentario
Giuseppe
Giuseppe el 4 de Jul. de 2024 a las 11:14
I tried to do what you recommended but it still doesn't work.
Thanks anyway for the help.

Iniciar sesión para comentar.

Categorías

Más información sobre Genetic Algorithm en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by