genetic algorithm solver convergence

조회 수: 12 (최근 30일)
B
B 2015년 10월 8일
댓글: B 2015년 10월 8일
I am trying to maximize a function using ga solver. The value of the objective function that I get when the optimizer terminates is not the highest one (I can see some higher value in the command window). The function has four design variables and each of them is constrained between an upper value and a lower one. I'm using the following parameters: population size=20; creation function: use constraint dependent;scaling function=proportional; Selection function=Roulette; elite count=2; crossover fraction=0.8; mutation:uniform (probability=0.01);migration: forward, crossover:Heuristics (1.6)
Even the values of the design variables that I got are not the same as the optimum and those values vary according to the initial population (I'm sure it's a local maximum and not an absolute max.).
  • * I know that the convergence is a problem dependent, but do you have some general comments/suggestions??**

채택된 답변

Alan Weiss
Alan Weiss 2015년 10월 8일
It is not easy to assess the reliability of a ga solution. First, I want to make sure that you are maximizing by taking the negative of your fitness function. If so, then the best advice I can give you is to use patternsearch instead of ga. patternsearch is faster, more reliable, and easier to tune. To search for a global optimum, start patternsearch from a variety of initial points. For example, if you have finite bounds on all components (and you should), then repeatedly try
x0 = lb + rand(size(lb)).*(ub - lb);
FYI, there is some documentation on how to assess the reliability of a solution, but this documentation is more aimed at Optimization Toolbox solvers than Global Optimization Toolbox solvers.
Good luck,
Alan Weiss
MATLAB mathematical toolbox documentation
  댓글 수: 1
B
B 2015년 10월 8일
Thanks I'll try the other method soon.

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

추가 답변 (1개)

B
B 2015년 10월 8일
?

카테고리

Help CenterFile Exchange에서 Solver Outputs and Iterative Display에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by