MixedIntegerLinearProgram: How to use Gurobi backend on macOS?

40 views
Skip to first unread message

Szabolcs Horvát

unread,
Sep 3, 2019, 8:58:09 AM9/3/19
to sage-support
Is it possible to use the Gurobi backend to MixedIntegerLinearProgram on macOS?

The documentation for getting it working seems to be here and seems to be Linux-specific:


I tried to follow it for macOS anyway. I have the official app distribution of SageMath 8.8 and Gurobi 8.1.1. I symlinked libgurobi81.dylib and gurobi_c.h in the indicated locations, set the environment variable for the license file, then went to SAGE_ROOT and ran 'make'. This complained that I have MacPorts. I removed MacPorts from the PATH, and tried again. It re-built Sage (in part?) which took about an hour. However, Gurobi still does not work.

If I run

s = MixedIntegerLinearProgram(solver='Gurobi')

then I get "No module named gurobi_backend"

Since running make takes such a long time, I am not keen on the trial-and-error approach to solving this. Does anyone has tested and reliable instructions?

Dima Pasechnik

unread,
Sep 4, 2019, 4:27:42 AM9/4/19
to sage-s...@googlegroups.com
it used to work, cf. e.g. 

is your Sage built from source?
if not, then it could be just the general sort of problem with modifying a binary installation...

--
You received this message because you are subscribed to the Google Groups "sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/afa21eff-c1d1-47eb-b970-d1a6829b7e7c%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages