How to change this piece of code from GA to IntLinProg

1 visualización (últimos 30 días)
Bhavz
Bhavz el 12 de Oct. de 2014
Respondida: Alan Weiss el 13 de Oct. de 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);

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre Robotics System Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by