Customising creation function in GA optimisation tool

조회 수: 2 (최근 30일)
Hari
Hari 2016년 11월 20일
댓글: Alan Weiss 2016년 12월 7일
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
Brendan Hamm
Brendan Hamm 2016년 11월 21일
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)

댓글을 달려면 로그인하십시오.

채택된 답변

Alan Weiss
Alan Weiss 2016년 11월 21일
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
Hari
Hari 2016년 12월 7일
Will the initial population be always stored as a matrix in matlab of size m x n where m is the population size and n the number of elements in an individual?
Alan Weiss
Alan Weiss 2016년 12월 7일
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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Genetic Algorithm에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by