Skip to content
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

test_MIP.py Error #168

Open
xueno6 opened this issue Sep 28, 2022 · 3 comments
Open

test_MIP.py Error #168

xueno6 opened this issue Sep 28, 2022 · 3 comments

Comments

@xueno6
Copy link

xueno6 commented Sep 28, 2022

New to cylp, I install cylp by pip and run the file CyLP/cylp/tests/test_MIP.py

But python returns with error:
"
cbcModel.branchAndBound()
AttributeError: 'cylp.cy.CyCbcModel.CyCbcModel' object has no attribute 'branchAndBound'
"
I hope to find a solution for this, thanks so much!

@tkralphs
Copy link
Member

tkralphs commented Sep 28, 2022

Could you say how you installed Cbc and what version you installed?

As for the failure, it's possible that some of the tests are broken. Can you successfully run the example code in the README? I have seen that error before, but I cannot recall exactly what caused it at the moment.

@xueno6
Copy link
Author

xueno6 commented Oct 1, 2022

Could you say how you installed Cbc and what version you installed?

As for the failure, it's possible that some of the tests are broken. Can you successfully run the example code in the README? I have seen that error before, but I cannot recall exactly what caused it at the moment.

The code in the README can be conducted without error.
My system is Win10, so as I see the README says "On Windows, a binary wheel is available and it is not necessary to install Cbc. Just do: pip install cylp" I did not install Cbc yet.

@tkralphs
Copy link
Member

tkralphs commented Oct 3, 2022

Ah, I see. So then what is the Python version so I can try to replicate?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants