How to change this piece of code from GA to IntLinProg
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Bhavz
am 12 Okt. 2014
Beantwortet: Alan Weiss
am 13 Okt. 2014
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 Kommentare
Akzeptierte Antwort
Alan Weiss
am 13 Okt. 2014
intlinprog does not accept nonlinear constraints. Also, it accepts only linear objective functions.
Alan Weiss
MATLAB mathematical toolbox documentation
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Problem-Based Optimization Setup finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!