Skip to content

Commit f04b314

Browse files
authored
Merge pull request #44 from SCIP-Interfaces/rs/scip400
update to new CSIP (and SCIP 4.0.0)
2 parents b974205 + e3b8ef6 commit f04b314

File tree

4 files changed

+16
-23
lines changed

4 files changed

+16
-23
lines changed

.travis.yml

+3-7
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
language: julia
33
os:
44
- linux
5-
- osx
65
julia:
76
- 0.5
87
notifications:
@@ -12,13 +11,10 @@ dist: trusty
1211
script:
1312
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
1413
- julia -e 'Pkg.clone(pwd())'
15-
- wget http://scip.zib.de/download/release/scipoptsuite-3.2.1.tgz
16-
- tar xzf scipoptsuite-3.2.1.tgz
17-
- cd scipoptsuite-3.2.1/
18-
- rm Makefile.doit
19-
- wget http://scip.zib.de/download/bugfixes/scip-3.2.1/Makefile.doit
14+
- wget http://scip.zib.de/download/release/scipoptsuite-4.0.0.tgz
15+
- tar xzf scipoptsuite-4.0.0.tgz
16+
- cd scipoptsuite-4.0.0/
2017
- make SHARED=true GMP=false READLINE=false ZLIB=false scipoptlib
21-
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then g++ -install_name @rpath/libscipopt.dylib -dynamiclib -undefined suppress -flat_namespace -m64 -shared -o lib/libscipopt.dylib obj/*.o scip-*/obj/*/lib/objscip/*.o soplex-*/obj/*/lib/*o ; fi
2218
- export SCIPOPTDIR=`pwd`
2319
- cd ..
2420
- julia -e 'Pkg.build("SCIP"); Pkg.test("SCIP"; coverage=true)'

README.md

+11-14
Original file line numberDiff line numberDiff line change
@@ -20,32 +20,29 @@ Julia interface to [SCIP](http://scip.zib.de) solver.
2020

2121
## Installation
2222

23-
Follow the steps below to get SCIP.jl working. These instructions are **only tested on GNU/Linux** systems. With minor adjustments, it might also work on OS X.
23+
Follow the steps below to get SCIP.jl working.
2424

25-
1.The SCIP.jl package requires [SCIP](http://scip.zib.de/) to be installed. [Download](http://scip.zib.de/download.php?fname=scipoptsuite-3.2.1.tgz) the SCIP Optimization Suite, untar it.
25+
1.The SCIP.jl package requires [SCIP](http://scip.zib.de/) to be installed in the newest version (4.0.0).
26+
[Download](http://scip.zib.de/download.php?fname=scipoptsuite-4.0.0.tgz) the SCIP Optimization Suite, untar it.
2627
```
27-
wget http://scip.zib.de/download/release/scipoptsuite-3.2.1.tgz
28-
tar xzf scipoptsuite-3.2.1.tgz
28+
wget http://scip.zib.de/download/release/scipoptsuite-4.0.0.tgz
29+
tar xzf scipoptsuite-4.0.0.tgz
2930
```
30-
2.Replace the existing `Makefile.doit` with the [patched file](http://scip.zib.de/download/bugfixes/scip-3.2.1/Makefile.doit)
31-
```
32-
cd scipoptsuite-3.2.1/
33-
rm Makefile.doit
34-
wget http://scip.zib.de/download/bugfixes/scip-3.2.1/Makefile.doit
35-
```
36-
3.Build the shared library with
31+
2.Build the shared library with
3732
```
3833
make SHARED=true GMP=false READLINE=false ZLIB=false scipoptlib
3934
```
40-
**An additional step for macOS users:**
35+
**An additional step for OS X users:**
4136
```
4237
g++ -install_name @rpath/libscipopt.dylib -dynamiclib -undefined suppress -flat_namespace -m64 -shared -o lib/libscipopt.dylib obj/*.o scip-*/obj/*/lib/objscip/*.o soplex-*/obj/*/lib/*o
4338
```
44-
4.Set the **environment variable `SCIPOPTDIR`** to point to the directory that contains the `scipoptsuite` sources. CSIP needs the library in `${SCIPOPTDIR}/lib/scipoptlib.so` and the C header files in `${SCIPOPTDIR}/scip-*/src/`.
39+
Note that support for OS X is currently broken with the update to SCIP 4.0.0.
40+
41+
3.Set the **environment variable `SCIPOPTDIR`** to point to the directory that contains the `scipoptsuite` sources. CSIP needs the library in `${SCIPOPTDIR}/lib/scipoptlib.so` and the C header files in `${SCIPOPTDIR}/scip-*/src/`.
4542
```
4643
export SCIPOPTDIR=`pwd`
4744
```
48-
5.This package is registered in `METADATA.jl` and can be installed in Julia with
45+
4.This package is registered in `METADATA.jl` and can be installed in Julia with
4946
```
5047
Pkg.add("SCIP")
5148
```

deps/csip_version.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# required version and utilities in a single location
2-
CSIP_VERSION = "0.3.6"
2+
CSIP_VERSION = "0.4.0"
33

44
function vn2int(vn::VersionNumber)
55
100*vn.major + 10*vn.minor + vn.patch

test/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ include(joinpath(Pkg.dir("JuMP"),"test","solvers.jl"))
1010
using JuMP
1111
using OffsetArrays # for JuMP/test/model.jl
1212
solver = SCIPSolver()
13-
MathProgBase.setparameters!(solver, Silent=true, TimeLimit=100.0)
13+
MathProgBase.setparameters!(solver, Silent=true, TimeLimit=300.0)
1414
heursolver = SCIPSolver("display/verblevel", 0,
1515
"presolving/maxrounds", 0,
1616
"separating/maxrounds", 0,

0 commit comments

Comments
 (0)