How to change this piece of code from GA to IntLinProg
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Bhavz
le 12 Oct 2014
Réponse apportée : Alan Weiss
le 13 Oct 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 commentaires
Réponse acceptée
Alan Weiss
le 13 Oct 2014
intlinprog does not accept nonlinear constraints. Also, it accepts only linear objective functions.
Alan Weiss
MATLAB mathematical toolbox documentation
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Problem-Based Optimization Setup dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!