-1
$\begingroup$

I'm trying to solve an OR problem written using pulp framework , with gurobi, in Linux , but I'm not able to solve it . In windows,I use this command to use gurobi ,

if solver == gurobi :

 path = 'gurobi.exe'

 solver = pulp.GUROBI_CMD(path=path, msg=1)

However in Linux there is no .exe file , how do I approach this?

$\endgroup$
1
  • 1
    $\begingroup$ Does this page help? $\endgroup$
    – PeterD
    Apr 20 at 7:37

1 Answer 1

4
$\begingroup$

The path in Linux has to point to the gurobi_cl binary, which is located in the bin folder. Therefore, you should try

path = r'<path-to-gurobi>/bin/gurobi_cl'
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.