Genetic Algorithm fitness value chart

조회 수: 2 (최근 30일)
S AsZ
S AsZ 2019년 10월 26일
댓글: Alan Weiss 2019년 12월 2일
Hi I am using genetic algorithm for a mixed integer linear programming. I used this command to show genetic algorithm "fitness value" chart:
x=ga(problem); problem.options.PlotFcns = @gaplotbestf;
But matlab gives me "penalty value" chart! Also I want to adjust generation value as 200 but I don't know how can I do that!
Can anyone help me?

채택된 답변

Alan Weiss
Alan Weiss 2019년 10월 29일
Your problem probably has integer constraints. Maybe nonlinear constraints, too. The solver behaves very differently with tose kinds of constraints. See Mixed Integer Optimization and Nonlinear Constraint Solver Algorithms.
For more help, please shw us your option settings and ga call, and tell us what you want to accomplish (setting a generation value to 200 is not what you want to accomplish; you might want to solve a problem to a certain accuracy, or in a certain time, but I find it hard to believe that setting a generation value of 200 is really the goal).
Alan Weiss
MATLAB mathematical toolbox documentation
  댓글 수: 7
S AsZ
S AsZ 2019년 11월 28일
편집: S AsZ 2019년 11월 28일
Excuse me again I have an author question: How can I write multi objective functions with Optimproblem format? My mean is using problem based method not using solver based method.
Alan Weiss
Alan Weiss 2019년 12월 2일
I suggest that you open a new question for this. I do not quite understand what you are asking.
Alan Weiss
MATLAB mathematical toolbox documentation

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

추가 답변 (0개)

카테고리

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

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by