!pyomo solve concreteProblem.py --solver cbc
[ 0.00] Setting up Pyomo environment
[ 0.00] Applying Pyomo preprocessing actions
[ 0.00] Creating model
[ 0.00] Applying solver
WARNING: "[base]\site-packages\pyomo\solvers\plugins\solvers\CBCplugin.py", 189, _default_executable
Could not locate the 'cbc' executable, which is required for solver cbc
[ 0.00] Pyomo Finished
ERROR: Unexpected exception while running model:
No executable found for solver 'cbc'
pyomo solve concreteProblem.py --solver cbc
CBC is included as part of the COIN-OR Optimization Suite. Windows builds can be downloaded here: https://www.coin-or.org/download/binary/OptimizationSuite/. You will want one of the “.EXE” files (those are the installers).
You cannot move the cbc.exe file relative to the other files because the executable will not be able to find the necessary DLLs.
For Pyomo: Pyomo needs CBC to be available through the system PATH. There is an option to have the installer do this for you. You may need to reboot your computer after the install for the PATH change to take effect. You can test this by opening up a command prompt and running “cbc” and see if you get a “Coin:” prompt. If that works, then CBC is installed correctly and Pyomo should be able to find it.
john
--
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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks for your help, John!
From: pyomo...@googlegroups.com [mailto:pyomo...@googlegroups.com]
On Behalf Of Garrett Dowdy
Sent: Monday, November 27, 2017 7:13 PM
To: Pyomo Forum <pyomo...@googlegroups.com>
--
There are two things:
John
From: pyomo...@googlegroups.com <pyomo...@googlegroups.com>
On Behalf Of Wei Wan
Sent: Sunday, May 26, 2024 4:22 PM
To: Pyomo Forum <pyomo...@googlegroups.com>
Subject: Re: [EXTERNAL] Re: Could not locate the 'cbc' executable, which is required for solver cbc
You don't often get email from wanw...@gmail.com. Learn why this is important |
To view this discussion on the web visit https://groups.google.com/d/msgid/pyomo-forum/051f330b-7ca3-4ec8-bdb9-dca4cc2437acn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyomo-forum/SA9PR09MB48296432DD1E1D010165CDEBDAF12%40SA9PR09MB4829.namprd09.prod.outlook.com.