![]() ![]() ![]() To force Python-MIP to use your freshly compiled CBC binaries, you can set the PMIP_CBC_LIBRARY environment variable, indicating the full path to this shared library. In Linux, this file is named libCbcSolver.so, in Windows and MacOS the extension should be. Python-MIP uses the CbcSolver shared library to communicate with CBC. To do so, Open PowerShell as Administrator and run: Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux. # build, replace prefix with your install directory, add -enable-debug if necessaryīash coinbrew build -no-prompt -prefix =/home/haroldo/prog/ -tests =none -enable-cbc-parallel -enable-relocatable Taken from the Microsoft page, you first need to enable the 'Windows Subsystem for Linux' optional feature and reboot. # download CBC and its dependencies with coinbrew When asked where to put it, use 'C:CygwinPackages'. ![]() This will download the 'setup.exe' program. Sudo apt-get install gcc g++ gfortran libgfortran-9-dev liblapack-dev libamd2 libcholmod3 libmetis-dev libsuitesparse-dev libnauty2-dev git This will open a new window, allowing you to flip back and forth between these instructions and the download window with only a little wear and tear on your wrist. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |