simplex-method
simplex-method copied to clipboard
Error in problem with no solution
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 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.