Using Gurobi solver

186 views
Skip to first unread message

Iyar Zaks

unread,
Jun 7, 2021, 8:44:28 AM6/7/21
to Python-MIP

Hi,

I use this great package with CBC solver and everything works great,

when i try to use Gurobi solver i got:

 

FileNotFoundError: Gurobi not found. Plase check if the

            Gurobi dynamic loadable library is reachable or define

            the environment variable GUROBI_HOME indicating the gurobi

            installation path.

 

When i try to use Gurobi package directly I succeeded:

import gurobipy as gp

from gurobipy import GRB

m = gp.Model("mip1")

 

Restricted license - for non-production use only - expires 2022-01-13

Process finished with exit code 0

 

Should i change the GUROBI_HOME? If yes to which path? I work in windows and this is the path for the python package I downloaded:

 C:\Users\izaks\PycharmProjects\scheduling_simulation\venv\Lib\site-packages\gurobipy

Thanks for your help.



Luciano Rigolin de Almeida

unread,
Jun 7, 2021, 8:52:26 AM6/7/21
to Iyar Zaks, Python-MIP
Hi.

You have already installed the Gurobi Optimizer (https://www.gurobi.com/products/gurobi-optimizer/)?

My GUROBI_HOME variable points to C:\gurobi911\win64.

Att,

Luciano Almeida

--
You received this message because you are subscribed to the Google Groups "Python-MIP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-mip+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-mip/4bde8185-82c7-4a87-9c79-8ba9b935c5e3n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages