Guest User

Untitled

a guest
Jan 16th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. max c'x s.t. Ax<= b and each element of x is either 0 or 1
  2.  
  3. c=[-2;-3;-2;-4;1;-6;-2;1];
  4. A=[1 1 0 0 1 0 0 0;
  5. 0 0 1 1 0 1 0 0;
  6. 1 0 1 0 0 0 1 0;
  7. 0 1 0 1 0 0 0 1;
  8. -1 0 0 0 0 0 0 0;
  9. 0 -1 0 0 0 0 0 0;
  10. 0 0 -1 0 0 0 0 0;
  11. 0 0 0 -1 0 0 0 0;
  12. 0 0 0 0 -1 0 0 0;
  13. 0 0 0 0 0 -1 0 0;
  14. 0 0 0 0 0 0 -1 0;
  15. 0 0 0 0 0 0 0 -1];
  16. b=[1;1;1;1;0;0;0;0;0;0;0;0];
Add Comment
Please, Sign In to add comment