-
Notifications
You must be signed in to change notification settings - Fork 46
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_CBC_CMD not working with P-Median/P-Center #396
Comments
Hey @mbforr! By the way, check if |
No I'm using my own since I am using a cost matrix that originated from pgRouting as a CSV which is structured into the correct 2D array based on the examples. And yes when I run that code |
We (read that as I) desperately need get around to #348... @mbforr Have a look here --> #356 (comment) |
So I found those issues and used that code but had the same issue. P-Center/P-Median don't work with those but it does with LSCP and MCLP. |
OK, we'll need some more information to attempt to properly troubleshoot this issue. Can you provide/answer the following:
@gegen07 Can you think of anything else? |
Sure thing!
|
@mbforr You are having this issue because there are >>> numpy.where(numpy.isnan(d))
(array([ 564, 911, 1633, 2034, 2372]), array([3, 4, 6, 7, 8]))
# for example
>>> d[564, 3]
nan When running cell 8 of your example notebook I get the following message from CBC:
You can see from above that there are After changing those
|
@mbforr One thing you may consider is using the I think this solves your problem, so I will go ahead and close the issue. We can reopen if you are still having trouble. |
thanks! i checked the matrix with |
For some reason it is working with LSCP and MCLP but not P-Median or P-Center and it is just giving the generic error back:
Pulp: Error while executing /usr/local/lib/python3.9/dist-packages/pulp/solverdir/cbc/linux/64/cbc
I have tried several different recommendations from the pulp docs and nothing worked there. Tested this out in Colab, a local notebook running on Docker, and in a plain Linux env. Tried it with the pulp install inside spopt and when installing it separately.
The text was updated successfully, but these errors were encountered: