GA: Genetic Algorithm.

조회 수: 7 (최근 30일)
niket shah
niket shah 2018년 11월 2일
댓글: Walter Roberson 2018년 11월 2일
Error: Not enough input arguments. Hey, i am new to ga optimization. please help out here.. Would really appreciate. Thank You.

채택된 답변

Walter Roberson
Walter Roberson 2018년 11월 2일
In your ga call you need to use @confun instead of confun
You also need to modify confun to return two outputs, even if the second one is just the empty matrix.
  댓글 수: 3
Matt J
Matt J 2018년 11월 2일
It couldn't find a solution satisfying the constraints. Maybe your constraints are infeasible. If you know an example point satisfying the constraints, adding it to the initial population might help.
Walter Roberson
Walter Roberson 2018년 11월 2일
Sometimes it is difficult to find an initial point that satisfies the constraints . With non-linear constraints it can also be difficult for the optimizer to figure out how it has to manipulate the variables to maintain the constraints: linear constraints are a lot more efficient than nonlinear constraints.

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

추가 답변 (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