How to change this piece of code from GA to IntLinProg
1 次查看(过去 30 天)
显示 更早的评论
My piece of code is :-
lb = zeros(1,32);
ub=X_dp1;
options = gaoptimset('Generations',50,'PopulationSize',42);
nonlcon=@constraint;
[x,fval,exitflag] = ga(@objectiveFun,... 32,[],[],[],[],lb,ub,nonlcon,options);
0 个评论
采纳的回答
Alan Weiss
2014-10-13
intlinprog does not accept nonlinear constraints. Also, it accepts only linear objective functions.
Alan Weiss
MATLAB mathematical toolbox documentation
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Robotics System Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!