-
-
Notifications
You must be signed in to change notification settings - Fork 389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pulp.lpDot update #572
base: master
Are you sure you want to change the base?
pulp.lpDot update #572
Conversation
|
could you add a unit test to show what did not work and how it works now? thanks. |
Thanks for your comment! current versionx = LpVariable("x")
y = LpVariable("y")
z = LpVariable("z")
a = [1, 2, 3]
dict(lpDot([2*x, 2*y, 2*z], a))
>>> {x: 1, y: 2, z: 3} with this changex = LpVariable("x")
y = LpVariable("y")
z = LpVariable("z")
a = [1, 2, 3]
dict(lpDot([2*x, 2*y, 2*z], a))
>>> {x: 2, y: 4, z: 6} |
thanks and sorry for the late reply. Could you take out PSCIP_CMD from this PR? so I can add only the lpDot use? thanks. You can add a new PR with the new solver. |
This reverts commit 63cb5ec.
I have completed the requested changes. The PSCIP_CMD addition has been removed from this pull request, focusing solely on the lpDot updating as you suggested. I apologize for my delayed response. |
Can probably be closed. |
to address issue #483
With this change, the following lpDot operation behaves as expected.