Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- max c'x s.t. Ax<= b and each element of x is either 0 or 1
- c=[-2;-3;-2;-4;1;-6;-2;1];
- A=[1 1 0 0 1 0 0 0;
- 0 0 1 1 0 1 0 0;
- 1 0 1 0 0 0 1 0;
- 0 1 0 1 0 0 0 1;
- -1 0 0 0 0 0 0 0;
- 0 -1 0 0 0 0 0 0;
- 0 0 -1 0 0 0 0 0;
- 0 0 0 -1 0 0 0 0;
- 0 0 0 0 -1 0 0 0;
- 0 0 0 0 0 -1 0 0;
- 0 0 0 0 0 0 -1 0;
- 0 0 0 0 0 0 0 -1];
- b=[1;1;1;1;0;0;0;0;0;0;0;0];
Add Comment
Please, Sign In to add comment