Variable x at each generation

4 visualizaciones (últimos 30 días)
GA optimization
GA optimization el 5 de Mayo de 2014
Comentada: GA optimization el 7 de Mayo de 2014
While optimization through GA, how to get variable value at each generation? Say If I am doing for y=x^2-2x+78, I am getting final x value. I want to get x value at each generations?

Respuestas (1)

Alan Weiss
Alan Weiss el 7 de Mayo de 2014
Alan Weiss
MATLAB mathematical toolbox documentation
  3 comentarios
Alan Weiss
Alan Weiss el 7 de Mayo de 2014
You can write an output function along these lines. Be careful, GA uses a slightly different syntax for its output functions; refer to my previous link.
Alan Weiss
MATLAB mathematical toolbox documentation
GA optimization
GA optimization el 7 de Mayo de 2014
Hi, I tried, it is not working. Will you please write the code using above mentioned function or any function to get x(1) and x(2) value at each generations.

Iniciar sesión para comentar.

Categorías

Más información sobre Solver Outputs and Iterative Display 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