Maximize Linear Programming using linprog Problem is unbounded?
显示 更早的评论

Dear friends,
what is my mistake about the problem?
Your help would be highly appreciated!
clc,clear;
objectiveFunction = -1 * [2 -1 2];
A = [-1 -1 -1; 2 0 -1;0 -2 1];
b = [-6;-2;0];
lb = [0 0 0];
ub = [Inf Inf Inf];
%%Solution
linprog(objectiveFunction, A,b,[],[],lb,ub)
采纳的回答
更多回答(1 个)
For M >= 4, choose
x1 = 0, x2 = M/2 , x3 = M
Then x = [x1,x2,x3] is feasible and the value of the objective is 3/2*M which can be made as big as you like.
类别
在 帮助中心 和 File Exchange 中查找有关 Linear Programming and Mixed-Integer Linear Programming 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
