Azzera filtri
Azzera filtri

How to change this piece of code from GA to IntLinProg

4 visualizzazioni (ultimi 30 giorni)
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);

Risposta accettata

Alan Weiss
Alan Weiss il 13 Ott 2014
intlinprog does not accept nonlinear constraints. Also, it accepts only linear objective functions.
Alan Weiss
MATLAB mathematical toolbox documentation

Più risposte (0)

Categorie

Scopri di più su Problem-Based Optimization Setup in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by