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
2020-12-19 23:27:43 +01:00

9 lines
No EOL
200 B
Matlab

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']')