
Eli Towle
- Total activity 1279
- Last activity
- Member since
- Following 0 users
- Followed by 2 users
- Votes 3
- Subscriptions 501
Articles
Recent activity by Eli Towle-
How do I create a new Cluster Manager API key?
Gurobi highly recommends using an API key to authenticate with a Cluster Manager. To create a new Cluster Manager API key, navigate to the Cluster Manager web interface (for example: http://mymanag...
-
How do I resolve the error "grbgetkey: command not found" or "'grbgetkey' is not recognized"?
The grbgetkey executable is located within the full Gurobi installation. If you receive the error "command not found" or "'grbgetkey' is not recognized as an internal or external command, operable ...
-
How do I enable type hinting in the Gurobi Python API?
Starting with Gurobi 9.5, type hinting is available for most classes and functions in the gurobipy package. Gurobi version 11.0 For Gurobi versions 11.0 and later, type hints are included in the gu...
-
How do I access the left-hand side of a constraint?
It is sometimes necessary to query a constraint's left-hand side (LHS). Use cases include: Printing a constraint definition to verify it is written correctly Evaluating a constraint's LHS at the c...
-
Error : "Problem generating unique host ID for this machine"?
You may encounter the following error when using grbgetkey to set up a license file on your machine: error : Problem generating unique host ID for this machine. For many license types (like academi...
-
How do I multiply two MLinExpr objects together with the matrix-friendly Python API?
If you are using Gurobi 10 or later You can natively multiply two MLinExpr objects together following normal matrix multiplication rules. For example, consider the following constraint: $$\begin{al...
-
How do I multiply an array and a 2-D MVar object using the matrix-friendly Python API?
If you are using Gurobi 10 Operations on 2D MVar work natively, following the dimensionality conventions of numpy. For example, let \( a \in \mathbb{R}^m \), let \(b \in \mathbb{R}^n \), and let \(...
-
How do I suppress all console output from Gurobi?
Despite setting the OutputFlag or LogToConsole parameters to 0, Gurobi may still print license and/or compute server information to the standard output: Compute Server job ID: 11a531ac-9fd9-453d-9c...
-
How do I write an MPS model file from a third-party API?
Be careful when using a third-party API to write a model file Many users call the Gurobi solver through third-party APIs like JuMP.jl, CVXPY, or Pyomo. Such tools may not provide a way to write an ...
-
How do I retrieve variable values after optimizing?
Information associated with the model or specific variables/constraints can be accessed via attributes. Variable values at the current solution are accessed via the X attribute. Note that the X att...