You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: INSTALL.md
+6-97Lines changed: 6 additions & 97 deletions
Original file line number
Diff line number
Diff line change
@@ -34,111 +34,20 @@ python3.9 -m venv venv
34
34
source venv/bin/activate
35
35
```
36
36
37
-
## Installing SCIPOptSuite from the binary distribution
38
-
39
-
The SCIPOptSuite can either be installed from the binary distribution or it can be build and installed manually from source. If you want to compile the SCIPOptSuite from source, please skip to the next section.
40
-
41
-
To install a binary distribution of the SCIPOptSuite, navigate to the [download page](https://scipopt.org/index.php#download) and select at least version 8.0.0 and your operating system. After the installation, please check that you can run `scip` and `gcg` from the command line.
42
-
43
-
Next, skip to the instructions to install PySCIPOpt.
44
-
45
-
## Compiling SCIPOptSuite from source
46
-
47
-
To install the SCIPOptSuite from source, you need to [install SCIP and GCG using CMake](https://scipopt.org/doc/html/md_INSTALL.php#CMAKE). The Makefile system is not compatible with PyGCGOpt and PySCIPOpt!
48
-
49
-
As an example, from the root directory of the source distribution of the SCIPOptSuite, you can run the following commands to build and install locally:
If SCIP and GCG are not installed in the global path, you need to specify the install location using the environment variable `SCIPOPTDIR` before you can install PySCIPOpt and PyGCGOpt:
`SCIPOPTDIR` needs to have a subdirectory `lib` that contains the
65
-
library, e.g. `libscip.so` and `libgcg.so` (for Linux) and a subdirectory `include` that
66
-
contains the corresponding header files:
67
-
68
-
SCIPOPTDIR
69
-
> lib
70
-
> libscip.so ...
71
-
> libgcg.so ...
72
-
> include
73
-
> scip
74
-
> gcg
75
-
> lpi
76
-
> nlpi
77
-
> ...
78
-
79
-
If GCG is installed in a different location than SCIP (this is *not* the default), you can specify the GCG install directory with the `GCGOPTDIR` environment variable.
80
-
81
-
To make the shared libraries available at runtime for PySCIPOpt and PyGCGOpt, you need to add them to the corresponding environment variables:
To install PySCIPOpt using pip, run the following:
93
-
```
94
-
pip install PySCIPOpt>=4.0.0
95
-
```
96
-
97
-
98
-
## Installing PySCIPOpt from source
99
-
100
-
For detailed instructions, please read the [installation instructions of PySCIPOpt](https://github.com/scipopt/PySCIPOpt/blob/master/INSTALL.md#building-everything-from-source).
101
-
102
-
In short, you can install PySCIPOpt from source with `pip`. For that, run the following command:
103
-
```
104
-
pip install <path/to/PySCIPOpt>
105
-
```
106
-
107
37
## Installing PyGCGOpt from PyPI
108
38
109
-
Simply run the folloing to install PyGCGOpt with `pip`:
39
+
Simply run the following to install PyGCGOpt (and its requirement PySCIPOpt) with `pip`:
110
40
```
41
+
pip install PySCIPOpt
111
42
pip install PyGCGOpt
112
43
```
113
44
114
-
## Install PyGCGOpt from source
115
-
-------------------------------
116
-
117
-
First, install the requirements for building PyGCGOpt:
118
-
```
119
-
pip install -r requirements.txt
120
-
```
121
-
122
-
Furthermore, you need to have the Python development files installed on your system (error message "Python.h not found"):
123
-
```
124
-
sudo apt-get install python3-dev # for Python 3, on Linux
125
-
```
126
-
127
-
Then, compile and install PyGCGOpt:
128
-
```
129
-
pip install .
130
-
```
131
-
132
-
In case the compiler cannot find SCIP or GCG header files, please make sure that you installed the SCIPOptSuite globally or that you set the `SCIPOPTDIR` environment variable (see above).
133
-
134
-
### Building with debug information
135
-
136
-
To use debug information in PyGCGOpt you need to build it like this:
45
+
The following table summarizes which versions of PyGCGOpt and PySCIPOpt are compatible:
0 commit comments