Skip to content Skip to sidebar Skip to footer

How To Use 'cbc' In Pyomo's SolverFactory In Windows 10

I have been trying to use 'cbc' solver in pyomo as following: import pyomo.environ as pe solver = pe.SolverFactory('cbc') result = solver.solve(m) Currently, I have been relying

Solution 1:

You will need to install cbc separately so that it can be used as a callable library. I think the best place to start to look is here:

https://github.com/coin-or/Cbc/blob/master/README.md

That readme file talks about windows installation. (I use mac...either path is a bit bumpy, but doable)

you may still need to build it from binaries...not too sure... I'm not too experienced here, maybe others can pile on.


Post a Comment for "How To Use 'cbc' In Pyomo's SolverFactory In Windows 10"