Closed SanPen closed 1 year ago
Are you using the 10.0.0
version of gurobi ?
what is the ouptut of the following command ?
find ${GUROBI_HOME} -type f -iname "*gurobi*.so*"
i.e. where is located libgurobi*.so
?
Hi,
The output is:
/opt/gurobi/lib/python3.9_utf32/gurobipy.so
/opt/gurobi/lib/python3.11_utf32/gurobipy.so
/opt/gurobi/lib/python3.7/gurobipy.so
/opt/gurobi/lib/libgurobi100_light.so
/opt/gurobi/lib/python3.7_utf32/gurobipy.so
/opt/gurobi/lib/libGurobiJni100.so
/opt/gurobi/lib/python3.10_utf32/gurobipy.so
/opt/gurobi/lib/python3.8_utf32/gurobipy.so
/opt/gurobi/lib/libgurobi.so.10.0.0
So it looks like I have gurobi 10.0.0, plus gurobipy
in a couple of places
You can always
from ortools.init import pywrapinit.
pywrapinit.CppBridge.LoadGurobiSharedLibrary('/opt/gurobi/lib/libgurobi.so.10.0.0')
before creating the linear solver.
Note that the API will change in 9.7 to
from ortools.init.python import init
init.CppBridge.load_gurobi_shared_library('/opt/gurobi/lib/libgurobi.so.10.0.0')
Hi,
thanks.
After a bit of PATH wrangling, I added the following to ~.bashrc
:
export GUROBI_HOME="/opt/gurobi"
export PATH="${PATH}:${GUROBI_HOME}/bin"
export LD_LIBRARY_PATH="${GUROBI_HOME}/lib"
where previously I only had:
export GUROBI_HOME="/opt/gurobi"
And now it is detected.
Ortools version: 9.6.2534 (latest as of writing) Language: Python 3.11 Solver: Gurobi 10 OS: Ubuntu 22.04
$_GUROBIHOME = /opt/gurobi (the one containing bin, lib, etc...)
Minimal code:
I am getting:
info: gurobipy works out of the box
Is this version of gurobi supported?
Is there anything else I should be doing?