Closed kmeng closed 11 months ago
if the third constraint is changed to:
model += x1 + 3*x2 + x3 <= 12
The objective value was wrong either. it should be 9.57142851
Did you check the solution status?
I answered this on my phone. Please excuse any typos and brevity
On Wed, 27 Sep 2023, 10:26 pm Kangjian Meng, @.***> wrote:
if the third constraint is changed to:
model += x1 + 3*x2 + x3 <= 12
The objective value was wrong either. it should be 9.57142851
— Reply to this email directly, view it on GitHub https://github.com/coin-or/pulp/issues/686#issuecomment-1737036427, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFUIWNGJS3BOZYZI7IQ5M3X4PWLDANCNFSM6AAAAAA5JA5ZBE . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Thanks. It seems I got a wrong sample
Details for the issue
What did you do?
Write a very simple program for learning:
def solve_by_pulp(): model = pulp.LpProblem('Sample3_1', LpMaximize)
What did you expect to see?
It should be no result.
What did you see instead?
x1 = 6.4285714 x2 = 0.57142857 x3 = 0.0 max z= 9.57142851
Useful extra information
The info below often helps, please fill it out if you're able to. :)
What operating system are you using?
I'm using python version:
I installed PuLP via:
Did you also