Are the contraints correctly used?
이전 댓글 표시
Dear all, Since I am a total beginner using Matlab, I have some troubles with this linear optimization problem. I implemented all decision variables and all known constraints - unfortunately, after running this model I get the message that the Root LP Problem is unbounded. Has anyone of you the solution for this issue or can help me solving that problem? Maybe someone can check if the constraints (Matrix) are also correctly used? Thank you very much!
Problem_MAX.Objective = sum( x_8(:) );
for i = 1:NA
C1(i) = x_8(i) == sum( x_6(i,:) + x_3(i,:) - x_9(i,:) );
for ii = 1:NB
C2(i,ii) = y_1(i,ii) == x_5(i,ii) + x_4(i,ii) + x_6(i,ii) + x_7(i,ii);
C3(i,ii) = y_2(i,ii) == x_5(i,ii) + x_2(i,ii) + x_9(i,ii);
end
end
opts = optimoptions('intlinprog','Display','off');
[sol,fval,exitflag,output] = solve(Problem_MAX,opts)
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Programming에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!