Changing the way we link with SCIP

As of today, I pushed support for scip 4.0.0 on both unix and windows.
In the process, I have changed the way to setup or-tools to include scip at compilation time.

on unix:
  untar the scipoptsuite> archive somewhere
  cd <path to scipoptsuite-4.0.0>
  make GMP=false READLINE=false

  in or-tools, edit Makefile.local
    UNIX_SCIP_DIR=<path to sciptopsuite-4.0.0>/scip-4.0.0
  make clean
  make cc

  to test it, run:
  it should display the scip solver run.

on windows:
  download the compiled library:
  download the headers:

  uncompress, untar everything.
  create a directory that will contains what is needed
  md scip-4.0.0
  copy the include directory from the scipoptheaders archive inside this directory
  copy the libscipopt.lib file inside this directory
  copy the dll file somewhere on your path
    WINDOWS_SCIP_DIR=<path to scip-4.0.0>
  to Makefile.local
  tools\make clean
  tools\make cc

  to test it, run:
  it should display the scip solver run.

Note: Make sure that paths do not contains spaces. I am not confident the makefiles are robust enough.

Next, I will do the same for glpk.


  1. Hi, I notice that:
    "in or-tools, edit Makefile.local
      make clean
      make cc""
    If I just want to use the binary of or-tools, how do I link to SCIP path? I remember use MPSolver::USE_SCIP_INTEGER_PROGRAMMING is also OK


Post a Comment

Popular posts from this blog

Heads up, upcoming incompatibility in the CP/Routing library

Documentation: new examples and reference manual

Changes in the last month - on windows this time