How to make output function for multiobjective genetic algorithm optimisation tool?
Ältere Kommentare anzeigen
I am using optimisation tool to optimise the multiobjective problem using genetic algorithm and I want to store the values of variables at each iteration, for storing the values, I have to define an output function using custom option. So how to define that function?
Antworten (1)
Alan Weiss
am 29 Aug. 2016
ga custom output functions are described here. The fields in the state structure are described here.
You want the state.Population field at each iteration. Save this in a matrix variable, adding rows each time, such as
totalpop = [totalpop;state.Population];
Alan Weiss
MATLAB mathematical toolbox documentation
1 Kommentar
RAVITA LAMBA
am 30 Aug. 2016
Kategorien
Mehr zu Genetic Algorithm 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!