simplex-method icon indicating copy to clipboard operation
simplex-method copied to clipboard

Error in problem with no solution

Open amanolar94 opened this issue 8 years ago • 1 comments

Hi, I have this problem below: objective = ('maximize', '1000x_1 + 700x_2') constraints= ['100x_1 + 50x_2 <= 2425', '20x_2 <= 510','1x_2 >= 26']

Given the second and third constraint there shouldn't be a possible solution but the code gives me this one: {'x2': 25.0, 'x1': 11.75}

Am i making a mistake or could it be a bug?

Thank you!

amanolar94 avatar May 12 '17 15:05 amanolar94

@amanolar94 There were couple of cases that I missed while writing the code and haven't fixed them. One which was after two phase method there is a condition to make certain variable values to one ( don't remember correctly). You can add that condition and it would work fine. Feel free to send in a patch for that.

khalibartan avatar May 16 '17 18:05 khalibartan