-
-
Notifications
You must be signed in to change notification settings - Fork 411
CuOpt Solver Integration #839
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
Conversation
Add Cuopt solver integration to Pulp
Incorporated review comments from #837 |
Thanks. I'm not sure why you closed the previous PR. As long as you push the code to the branch, you can leave the PR open and it will update with the new changes. This makes easier to follow the changes/ suggestions and comments. For example, there seems to be an error with the types when checking them with Also, you seem to not have signed the CLA in this PR. |
Hi, we have re-submitted this PR via the NVidia fork of the Pulp repo using NV org account, as discussed with COIN-OR and agreed upon. All the reviews requested for the original PR are addressed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as I mentioned, running mypy ./
is still failing. I've added the lines that need to be changed in the code.
pulp/apis/cuopt_api.py
Outdated
warmStart=warmStart, | ||
) | ||
|
||
from cuopt.linear_programming import data_model |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change for:
from cuopt.linear_programming import data_model # type: ignore[import-not-found, import-untyped, unused-ignore]
pulp/apis/cuopt_api.py
Outdated
|
||
try: | ||
global cuopt | ||
import cuopt # type: ignore[import-not-found] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change for:
import cuopt # type: ignore[import-not-found, import-untyped, unused-ignore]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated, thanks!
I'd do the changes myself but I cannot push to nvidia/pulp/master it seems. You also need to merge the current master into the branch |
run mypy and update status codes
@pchtsp Currently I am running all the pulp tests in test_pulp.py with CUOPT as the solver instance (Updated the test in the PR). I can paste the results as a comment here since the CI cannot run cuopt. Is there anything else we need to verify wrt testing? |
Also mypy has started failing again. I can fix the type issue in test_pulp.py , however, I cannot reproduce the numpy import issue in apis/cuopt_api.py |
hello, thanks for the reminder to look into this. Two things:
thanks and let's hope this is the last change : ) |
@pchtsp The final question :) |
Sorry I forgot to answer, yes: please paste here all the logs from the tests so we can take a look. Ideally for the next release, we should try to set up the github actions. But with additional solvers what we mostly care is that we're not breaking other solvers, which doesn't seem the case. I will merge as soon as all the tests pass |
No description provided.