Variable x at each generation
Ältere Kommentare anzeigen
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?
Antworten (1)
Alan Weiss
am 7 Mai 2014
0 Stimmen
Alan Weiss
MATLAB mathematical toolbox documentation
3 Kommentare
GA optimization
am 7 Mai 2014
Alan Weiss
am 7 Mai 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
am 7 Mai 2014
Kategorien
Mehr zu Solver Outputs and Iterative Display finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!