Ask Your Question
1

How to find common solution of inequalities in Sage

asked 5 years ago

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.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 5 years ago

tmonteil gravatar image

updated 5 years ago

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

Preview: (hide)
link

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: 5 years ago

Seen: 277 times

Last updated: Oct 20 '19