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. # 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 By default, apexpy uses numpy ’s f2py, but you can change this using the global compiler flag when running the python setup.py install command. # download CBC and its dependencies with coinbrew Another benefit of installing apexpy from the command line is specifying the fortran compiler you would like to use. Sudo apt-get install gcc g++ gfortran libgfortran-9-dev liblapack-dev libamd2 libcholmod3 libmetis-dev libsuitesparse-dev libnauty2-dev git
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |