Eli Towle
Gurobi Staff- Total activity 1323
- Last activity
- Member since
- Following 0 users
- Followed by 4 users
- Votes 3
- Subscriptions 515
Articles
Recent activity by Eli Towle-
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...
-
Constraint has no bool value (are you trying "lb <= expr <= ub"?)
There are three primary causes of this error: Trying to add a two-sided constraint Using NumPy scalars on the left-hand side of a constraint Using variables or expressions in if-clauses Trying to a...
-
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...
-
Resolved in Gurobi v10.0.1: Incorrect objective value reported for some multi-objective problems
Affected versions: Gurobi v10.0.0Resolved in version: Gurobi v10.0.1 Issue Gurobi 10.0.0 includes a bug that can result in Gurobi printing an incorrect optimal objective value for multi-objective o...
-
How do I pointwise multiply two MVars with the matrix-friendly Python API?
Starting with Gurobi 10, you can concisely pointwise multiply two MVar objects following numpy's conventions. For example, the expression $$\begin{align} \begin{bmatrix} u_1 \\ u_2 \\ u_3 \end{bmat...
-
How do I pointwise multiply a numpy vector with a (1,) MVar with the matrix-friendly Python API?
If you are using Gurobi 10 or later You can pointwise multiply a 1-D ndarray with a 1-D MVar of length one natively. This operation follows numpy's broadcasting rules. For example, the following ex...
-
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 or later Operations on 2D MVar objects work natively, following the dimensionality conventions of numpy. For example, let \( a \in \mathbb{R}^m \), let \(b \in \mathbb{R}...
-
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 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...