필터 지우기
필터 지우기

How to change this piece of code from GA to IntLinProg

조회 수: 4 (최근 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 CenterFile Exchange에서 Problem-Based Optimization Setup에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by