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

CBC (and other AMPL solvers) are not linked correctly anymore #928

Closed
fwitte opened this issue Mar 17, 2023 · 6 comments
Closed

CBC (and other AMPL solvers) are not linked correctly anymore #928

fwitte opened this issue Mar 17, 2023 · 6 comments

Comments

@fwitte
Copy link
Member

fwitte commented Mar 17, 2023

Specifically, the link provided here does not point to the intended location anymore: https://oemof-solph.readthedocs.io/en/latest/readme.html#installing-a-solver.

Now, amplpy needs to be installed and can deliver cbc and others. I tested it on my machine, however pyomo refuses to find the executable after having it installed with amplpy. I cannot really look deep into it currently, just wanted to raise awareness :).

@p-snft
Copy link
Member

p-snft commented Mar 23, 2023

Solved in dev.

@p-snft p-snft closed this as completed Mar 23, 2023
@JulianBarinton
Copy link

Dear oemof community,
on my machine (windows 11) cbc still cannot be found neither installed via the respective cbc repo (https://github.com/coin-or/Cbc/releases) nor installed via amply. I have tried it for oemof.solph version dev, 0.5, and 0.4.5. What is the recommendable way to go to solve this problem? May we please update the documentation accordingly?

Cheers Julian

@p-snft
Copy link
Member

p-snft commented Jun 23, 2023

Hi Julian, you should be able to download CBC (probably the MSVC version), extract it and add it to PATH. There is no automated installation routine.

@JulianBarinton
Copy link

Dear Patrik, thank you for coming back to me on this one. I downloaded the cbc, extracted it, and added it to the path, but unfortunately oemof.solph cannot find it. CBC worked for me on windows 10, but not on windows 11 (I have changed my laptop). GLPK works also on windows 11, but has some performance issues. Did anyone else similar issues and found a way to solve it?

Cheers Julian

@p-snft
Copy link
Member

p-snft commented Jul 30, 2023

Definitely not being a Windows expert, I see no reason why cbc should not be found if it's in PATH. Could you test if cbc is found in your CMD and also check the content of your PATH? (The command path in the command line should print it according to some online references.)

PS: It helps if you open an issue instead of commenting a solved one.

@JulianBarinton
Copy link

Hi Patrik, thank you for your answer, I created a new issue for this one.

#963

Cheers
Julian

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

3 participants