This repository has been archived on 2021-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
NC/mp6/Project_6_Maggioni_Claudio/exercise4.m

9 lines
200 B
Mathematica
Raw Normal View History

2020-12-19 22:27:43 +00:00
type = 'max';
A = [4 3; 4 1; 4 2; 1 0; 0 1];
sign = [-1 ; -1 ; -1 ; 1 ; 1 ];
h = [12 ; 8 ; 8 ; 0 ; 0 ];
c = [3 4];
[z,x_B,index_B] = simplex (type,A,h,c,sign);
histogram([index_B x_B']')