How to change this piece of code from GA to IntLinProg

1 回表示 (過去 30 日間)
Bhavz
Bhavz 2014 年 10 月 12 日
回答済み: Alan Weiss 2014 年 10 月 13 日
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);

採用された回答

Alan Weiss
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 件)

カテゴリ

Help Center および File ExchangeRobotics System Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by