[sage-support] Re: Solve inequality in Sage

2019-10-20 Thread Julian RĂ¼th
Have you had a look at 
https://doc.sagemath.org/html/en/reference/numerical/sage/numerical/mip.html? 
Seems to be what you want to do essentially.

julian

On Sunday, October 20, 2019 at 5:34:37 PM UTC+2, Santanu wrote:
>
> Hi,
>  I have inequalities like these:
>
> 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
>
> I want to get a  solution. Values of x's are either 0 or 1. 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/25f4bf0b-4146-4737-b078-006a3bcd989d%40googlegroups.com.


[sage-support] Solve inequality in Sage

2019-10-20 Thread Santanu Sarkar
Hi,
 I have inequalities like these:

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

I want to get a  solution. Values of x's are either 0 or 1.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CAOe8sPLL%3DwyaGMVQPzCfAG9LX%3D1tjcRxrbc9w3LB8rt9T_SWhQ%40mail.gmail.com.