A = [eye(9); 1 0 1 1 0 1 1 0 1;0 1 1 0 1 1 0 1 1];
b = [4; 8; 3; 8; 13; 10;22 ; 20; 18; 30; 30];
c = [300; 160; 360; 220; 130; 280; 100; 80; 140];

[x,maxval]=simplex1([0 c'; b -A])