Parameter output problem of genetic algorithm

3 visualizaciones (últimos 30 días)
仟仟
仟仟 el 7 de Nov. de 2023
Comentada: 仟仟 el 8 de Nov. de 2023
When I apply genetic algorithm to find the optimal parameter, before the parameter enters the algorithm, I have controlled the parameter to keep two decimals in their respective ranges, but when the final output, the optimal parameter returned is really six decimals. Why? What am I supposed to do? (Note: I need to keep two decimal places in the parameter before entering the algorithm, because a change of 0.001 in the parameter has a great effect on the result, so I can't round the result directly.)Look forward to your reply~
  2 comentarios
Dyuman Joshi
Dyuman Joshi el 7 de Nov. de 2023
"I have controlled the parameter to keep two decimals in their respective ranges"
How exactly do you do that? Do you use the function round()?
Also, how do you restrict the algorithm from changing the precision of the values?
仟仟
仟仟 el 8 de Nov. de 2023
Yes, I use the round() function. But I have no solution for: how to limit the accuracy of the algorithm to change the value

Iniciar sesión para comentar.

Respuestas (0)

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by