Genetic Algorithm (ga) terminating after a few generations
Mostrar comentarios más antiguos
I am running a minimization calculation using the ga function. I've noticed that the ga function continually terminates after ~3 generations. This seems to be premature; however, the results I am getting are consistent. I have 6 design variables and a population of 1000 that is evenly gridded across reasonable values for each variable. In total the ga usually calls the objective function 10^5 times before terminating and meets the function and constraint tolerances (both 10^-6). I am curious to know if terminating after 3 generations is a "normal" behavior or if this indicates a problem with my objective function. Any help is greatly appreciated.
Respuesta aceptada
Más respuestas (1)
Alan Weiss
el 16 de Ag. de 2023
0 votos
Almost certainly this is because you use nonlinear constraints. When you use nonlinear constraints, there are very few major iterations in the solver. For an example, see https://www.mathworks.com/help/gads/constrained-minimization-using-ga.html.
Alan Weiss
MATLAB mathematical toolbox documentation
Categorías
Más información sobre Genetic Algorithm en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!