Linprog of max LP
8 次查看(过去 30 天)
显示 更早的评论
For
![Screen Shot 2019-06-05 at 16.21.28.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/223134/Screen%20Shot%202019-06-05%20at%2016.21.28.png)
Runing the code:
% Linprog defined on min problem and Ax<=b for max problem take - objectiveFunction
%% The problem
objectiveFunction = -1 * [10 6 -8];
A = [5 -2 6; 10 4 -6];
b = [20 ;30];
%%Sloution
linprog (objectiveFunction, A,b)
I get that "Problem is unbounded." but the answer seems to be 170/3
3 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Problem-Based Optimization Setup 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!