For details, see the Google Developers Site Policies. You can install OR-Tools for Python on your operating system by entering:Ĭmake -build build -config Release -target install -v Tip: To change the default install location please refer to theĮxcept as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. B build -DBUILD_DEPS=ON -DBUILD_PYTHON=ONĬmake -build build -config Release -target all -j -v Installing OR-Tools on your operating system This can be useful for resetting to a clean state.Ĭmake -S. If you need to re-install OR-Tools, the command: You can check that everything is running correctly by entering:Ĭmake -build build -config Release -target test -v Then enter the following command to compile OR-Tools:Ĭmake -build build -config Release -target all -j -v To build the source code, open a terminal and navigate to the directory where Solvers whose support is disabled by default: You can also use OR-Tools with any of the following optional third-party MIP Note: You can disable the support of Gurobi solver by using -DUSE_GUROBI=OFF Using an optional third-party MIP solver On MAC OS X and Windows, or by using the GUROBI_HOME environment variable. The Gurobi shared library in the default install path of the Gurobi installers When needed, at runtime, OR-Tools will search for Note: You can disable the support of SCIP solver by using -DUSE_SCIP=OFF Warning: While OR-Tools ships with SCIP, please consult the Since v7.8, SCIP is now integrated so you won't have to install it manually. B build -DBUILD_DEPS=ON -DBUILD_PYTHON=ON Tip: For a complete list of available OR-Tools CMake options, please take a look Open a terminal and navigate to the directory where you extracted the files.Ĭmake -S. Main branch, enter the following commands in your local repo: git fetch -all -tags -prune git checkout tags/v9.7 -v v9.7īefore building OR-Tools, you'll need to configure the CMake build system You can check out a specific release using a Gitįor example, to work with the v9.7 release instead of the
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |