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

8 lines
169 B
Mathematica
Raw Permalink Normal View History

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