Gurobi License Issue with Cobrapy

48 views
Skip to first unread message

Amit Kugler

unread,
May 30, 2023, 12:38:00 PM5/30/23
to cobra pie
Hello,

I am trying to use the full Gurobi License using WLS on Cobrapy.

I have an academic license and configured the Gurobi environment with the correct parameters, but when I run Cobrapy it does not recognize the full version/license.

"GurobiError: Model too large for size-limited license; visit https://www.gurobi.com/free-trial for a full license"

How can I solve this issue?

I am attaching Jupyter notebook for your consideration.

Best regards,
Amit
Cobrapy_gurobi_wsl.ipynb

Deepanwita Banerjee

unread,
Jan 28, 2026, 1:15:28 PMJan 28
to cobra pie
Anyone can help me find a solution to this problem.
It works fine for textbook model. but does not work for my big model
THank you
Deepanwita

Roozbeh Pazuki

unread,
Feb 18, 2026, 12:30:28 PM (11 days ago) Feb 18
to cobra pie
Since you have not provided any information about the problem, I assume you get this error: "Model too large for size-limited Gurobi license".
For this error, you need to copy the "gurobi.lic" licence file to your home directory plus setting GRB_LICENSE_FILE environment variable too. 

Roozbeh
Reply all
Reply to author
Forward
0 new messages