rapha123
rapha123

Reputation: 309

How to use CPLEX or GUROBI in PySCIPOpt (Scip in Python)

I have been working with SCIP in python using PySCIPOpt. I could see SCIP also works with CPLEX and Gurobi engines, does anyone know how to use it in PySCIPOpt?

Thanks

Upvotes: 1

Views: 793

Answers (1)

mattmilten
mattmilten

Reputation: 6726

PySCIPOpt needs a suitable SCIP library, so all you need to do is compiling/linking SCIP with the LP solver of your choice.

You should check the documentation for details on how to do this. Generally, it should be as easy as

cmake -Bbuild -H. -DLPS=grb -DGUROBI_DIR=/path/to/gurobi
cmake --build build

Upvotes: 2

Related Questions