Re: [sympy] Solving set of inequalities

2022-08-15 Thread Jeremy Monat
SymPy cannot (currently) reduce for multiple variables. As the draft guide page mentions, to reduce for more than one symb

Re: [sympy] Solving set of inequalities

2022-08-15 Thread Chris Smith
Ignore your equality `5*x + 2*y+3*z=5` and see if a solution exists for the condition you specify: >>> LP( ... x*2-y-z-5,[x <= 1, y <= 1,z <= 1,x>0,y>0,z>0],[x,y,z]) (-3, {x: 1, y: 0, z: 0}, _y0 + _y1 + _y2 - 5, [_y0 - _y3 - 2 >= 0, _y1 - _y4 + 1 >= 0, _y2 - _y5 + 1 >= 0], {_y0: 2, _y1: 0, _y2:

Re: [sympy] Solving set of inequalities

2022-08-15 Thread 'Rainer Dorsch' via sympy
Hi Chris, many thanks for the link to the stack overflow answer and in particular the PR and also the elegant suggestion on how to address the problem with linear programming. I realized that I oversimplified the example though: The problem I want to solve is a vector equation: f_vec+a*x_vec+