Loading...
Searching...
No Matches
Installation There are two ways to compile the code: CMake and plain Makefiles. Using CMake is highly recommended. CMake Build SystemCMake is a build system generator that can create, e.g., Makefiles for UNIX and macOS or Visual Studio project files for Windows. CMake provides an extensive documentation explaining available features and use cases as well as an FAQ section. These are the usual steps on a Linux or macOS system: mkdir build cd build cmake <path/to/SoPlex> make # optional: run a quick test make test #optional: run a (slow) memory check ctest -T MemCheck # optional: install SoPlex executable, library, and headers make install CMake uses an out-of-source build, i.e., compiled binaries and object files are separated from the source tree and located in another directory, e.g, Afterwards, successive calls to Modifying a CMake configurationThere are several options that can be passed to the
Parameters can be set all at once or in subsequent calls to InstallationCMake uses a default directory for installation, e.g., MakefileThe plain Makefile system only reliably works on UNIX systems:
Then type If ZLIB is not available, building may fail. In this case try make COMP=<as before> OPT=<as before> ZLIB=false which will deactivate the possibility to read gzipped LP and MPS files. Boost supportBoost is required for higher precision and rational solving methods. By default, building with boost is enabled. If you wish to only build the SoPlex library
GMP supportFor using SoPlex as an exact rational LP solver, SoPlex must be compiled with support for the GNU Multiple Precision library for this. If GMP is not available, you can deactivate it by building with make COMP=<as before> OPT=<as before> GMP=false. If you use a different build system than the provided Makefile and want to build with GMP support, you need to define Note for building SCIP with SoPlex: If SoPlex was built with GMP, then SCIP also needs to be built with GMP (default). WebdemoSoPlex can be compiled into a single HTML file and used in a browser. This requires https://emscripten.org/docs/getting_started/downloads.html Then, run sh build_webdemo.sh This will create the file find src | entr -rs 'make -C build_webdemo soplex; echo' This will rebuild Using the LibraryExamples on how to use the SoPlex library are provided in the files
|