Customising creation function in GA optimisation tool
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hari
am 20 Nov. 2016
Kommentiert: Alan Weiss
am 7 Dez. 2016
Bus route network design problem aims to find an optimal set of routes that satisfies a predefined objective and a set of constraints. This is to be optimized using genetic algorithm. If an initial population of N individuals is to be formed from a set of routes stored as a cell array, is it possible to customize the genetic algorithm optimization tool in Matlab for this?
1 Kommentar
Brendan Hamm
am 21 Nov. 2016
Yes, See the Initial Population options. Once you have read through these and determine what your Initial population is, you can use it by creating your optimoptions structure.
IP = ... % Population MAtrix goes here
options = optimoptions('ga','InitialPopulationMatrix',IP);
x = ga(fitnessfcn,nvars,A,b,Aeq,beq,LB,UB,nonlcon,options)
Akzeptierte Antwort
Alan Weiss
am 21 Nov. 2016
This example might give you ideas on a possible approach. It is not a direct solution to your problem, but I think it shows that the approach is workable.
Alan Weiss
MATLAB mathematical toolbox documentation
2 Kommentare
Alan Weiss
am 7 Dez. 2016
You don't have to give a complete initial population. In other words, m can be smaller than the population size. See Initial population.
Alan Weiss
MATLAB mathematical toolbox documentation
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Genetic Algorithm finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!