Ask Your Question
1

How to find common solution of inequalities in Sage

asked 2019-10-20 07:17:28 +0200

Santanu gravatar image

I have few inequalities:

3 x1 + 5 x2 + 2 x3 + 5 x4 + 7 x5 <= 28

2 x1 + 0 x2 + 0 x3 + 8 x4 <= 14

4 x4 + 5 x5 <= 22
3 x2 <= 2
3 x4 >= 1

How to find common solution in Sage ? xi' s are either 0 or 1.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2019-10-20 13:22:58 +0200

tmonteil gravatar image

updated 2019-10-20 13:23:51 +0200

See https://doc.sagemath.org/html/en/them... and use the binary=True argument.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2019-10-20 07:17:28 +0200

Seen: 66 times

Last updated: Oct 20 '19