GA: Genetic Algorithm.
7 次查看(过去 30 天)
显示 更早的评论
Error: Not enough input arguments. Hey, i am new to ga optimization. please help out here.. Would really appreciate. Thank You.
0 个评论
采纳的回答
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
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
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 Center 和 File Exchange 中查找有关 Genetic Algorithm 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!