Installing pyomo solvers in pycharm

1,600 views
Skip to first unread message

arian....@gmail.com

unread,
Jun 7, 2017, 12:02:28 PM6/7/17
to Pyomo Forum
Hi all,

I am currently coding my model with python 3.5 in pycharm IDE. However, except glpk solver for pyomo, when I want to run my code with other solver like 'cbc', I face error like pyutilib.common._exceptions.ApplicationError: No executable found for solver 'cbc'. It seems that I do not have any other solvers. So, Is anyone can help me how to install these solver in pycharm and use them by pyomo?

Thanks in advance for consideration.

David Woodruff

unread,
Jun 7, 2017, 5:08:39 PM6/7/17
to pyomo...@googlegroups.com
It's not really a matter of installing them in pycharm, but just a matter of installing solver so they can be run from a shell command. Based on your email, it seems that you have installed glpk so that it can be run from a shell command (e.g., you can give the command glpsol to a terminal window and it will run). You need to do the same thing for cbc. The point is: cbc needs to be installed and it needs to be in your path. The following video is not that helpful to you because it concerns glpk and doesn't show you how to actually update the path, but it might give you some background helpful for cbc.

 http://dlwoodruff.ucdavis.edu/badGLPK.mp4

--
You received this message because you are subscribed to the Google Groups "Pyomo Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyomo-forum+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

arian....@gmail.com

unread,
Jun 7, 2017, 5:37:59 PM6/7/17
to Pyomo Forum, dlwoo...@ucdavis.edu
Thank you for your help. But I searched in internet a lot and I could not find cbc solver which is compatible with windows x64. I found command to install glpk but not for cbc or any other solvers.
To unsubscribe from this group and stop receiving emails from it, send an email to pyomo-forum...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages