Installing of CBC or GLPK solvers

993 views
Skip to first unread message

Ameen Sarhan

unread,
Aug 9, 2020, 10:32:38 PM8/9/20
to pypsa
Hi every one

I was working with Mac, once I started working on Windows I faced issues about CBC and GLPK solver installing using Anaconda prompt.
I am wondering if there is an easy way to install CBC or GLPK solver.

Thanks in advance.

Ingrid Sánchez

unread,
Aug 12, 2020, 9:51:11 AM8/12/20
to pypsa
If you are using conda, Glpk was easy to install for me: conda install -c conda-forge glpk

Fabian Neumann

unread,
Aug 17, 2020, 7:42:06 AM8/17/20
to pypsa
Hi,

there is some documentation on installing solvers on different platforms:


Best wishes,

Fabian N

Ameen Sarhan

unread,
Aug 18, 2020, 12:30:24 AM8/18/20
to pypsa
Thanks, Fabian

regarding to the commercial solver is there any document to guild the installation process.

Thanks
Message has been deleted

Max Parzen

unread,
Aug 18, 2020, 5:45:33 PM8/18/20
to pypsa
Hi Ameen,
Gurobi provides a useful guide:

Be aware that the guide is referring to the gurobi9.0.1 version, however, the newest gurobi version is 9.0.3. So make sure you set up the correct version.

Best,
Max

Ameen Sarhan

unread,
Sep 15, 2020, 4:12:56 AM9/15/20
to pypsa
thank you Max 
I will try it

Ameen Sarhan

unread,
Sep 17, 2020, 4:24:22 AM9/17/20
to pypsa
Hi all
I installed gurobi in the following direction : C:\gurobi
My conda environment in the direction : C:\Users\ameen\.conda\envs\pypsa

Once I started using gurobi I got an error 
Can you please guide me to connect gurobi with the certain env.

Thank you so much

Max Parzen

unread,
Sep 17, 2020, 4:39:33 AM9/17/20
to Ameen Sarhan, pypsa
Hi Ameen,

What’s your error message?

What usually goes wrong is setting the path. Or missing the gurobi license. One way to check if the path is set correctly is by typing in the command window: gurobi.sh

Kind regards,
Max

--


You received this message because you are subscribed to a topic in the Google Groups "pypsa" group.


To unsubscribe from this topic, visit https://groups.google.com/d/topic/pypsa/07ZjYkxj3ic/unsubscribe.


To unsubscribe from this group and all its topics, send an email to pypsa+un...@googlegroups.com.


To view this discussion on the web, visit https://groups.google.com/d/msgid/pypsa/8a9ce313-ffe2-442f-a55f-1dfe81367eebn%40googlegroups.com.


--

--

Maximilian Parzen
PhD Candidate

School of Engineering | University of Edinburgh

Office | Kings Building, Alrick Building, Room A110

Tel: +49 (0)176 70889068Add me on LinkedIn | Skype: max.parzen


The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.

Ameen Sarhan

unread,
Sep 17, 2020, 4:53:56 AM9/17/20
to pypsa
Hi Max
I think it a path problem I got this error : 'gurobi.sh' is not recognized as an internal or external command,
operable program or batch file.


Kind regards,  

Max Parzen

unread,
Sep 17, 2020, 5:25:06 AM9/17/20
to pypsa
Hi Ameen,

Maybe this helps:
Gurobi_path_set_up.png
Kind regards,
Max

David Kayanan

unread,
Mar 24, 2021, 10:23:10 PM3/24/21
to pypsa
Hi all,

Is there an easy way to install CBC on windows? Accdg. to the installation page, you can use conda for all platforms except Windows (I still tried though :D).

Appreciate any and all help! :)

Neumann, Fabian (IAI)

unread,
Mar 25, 2021, 2:53:47 AM3/25/21
to David Kayanan, pypsa
Hi David,


You can install manually: https://projects.coin-or.org/Cbc

Best,

Fabian N

Fabian Neumann
KIT

On 25 Mar 2021, at 03:24, David Kayanan <david....@gmail.com> wrote:

Hi all,
You received this message because you are subscribed to the Google Groups "pypsa" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pypsa+un...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/pypsa/6c35805d-3123-4c2a-8f42-b4bec250f33en%40googlegroups.com.

David Kayanan

unread,
Mar 25, 2021, 6:39:53 AM3/25/21
to pypsa
Dear Fabian,

I appreciate you reaching out. I hope you don't mind this noob question. but I don't know how to install it manually. Perhaps you can help and and others in the same position.

In their Github, they suggest installing the binaries from Bintray. Once you've selected your desired version of CBC, what do you do with the zip file thereafter?

I think you have to extract it and let the pypsa environment know where it is. Is this right? I simply do not know how this is done. Thank you for your kind response.

Best regards,
David

Reply all
Reply to author
Forward
0 new messages