Pb Genetic algorithm
Mostra commenti meno recenti
Dear all,
I have a problem with the genetic algorithm in Matlab. I tried to create a custom function in order to save the "state" at each generation, but I have a lot of problems. By chance do you have an example of a code ?
Thank you very much,
Best regards,
Aymeric
Risposte (2)
Alan Weiss
il 30 Ago 2011
0 voti
There is a thread on CSSM addressing this issue: http://www.mathworks.com/matlabcentral/newsreader/view_thread/311708#849624
To quote my own answer there:
You can certainly write an output function. The basic syntax is here: http://www.mathworks.com/help/releases/R2010b/toolbox/gads/f6174dfi10.html#f17837
(There is an error in the description of the syntax in the R2011a documentation, sorry, that's why I am pointing to R2010b.)
For examples of using an output function (albeit with a different syntax than ga uses), see http://www.mathworks.com/help/techdoc/math/bsgpq6p-23.html#bsgpq6q-31 http://www.mathworks.com/help/toolbox/optim/ug/brhkghv-56.html
Alan Weiss MATLAB mathematical toolbox documentation
aymeric
il 30 Ago 2011
Categorie
Scopri di più su Genetic Algorithm in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!