Simon Bowly
Gurobi Staff- Total activity 144
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 0
- Subscriptions 72
Comments
Votes on activity by Simon Bowly-
Hi Tanmoy, As noted in Specifying Multiple Objectives, a multiobjective model has only one sense. Negating the objective will certainly do the job, but a better alternative is to use weights. If ob...
-
Hi Jiang, I believe you need the following code to model the feasible set as the union of non-overlapping polytopes: import gurobipy as gpfrom gurobipy import GRBimport numpy as np# Some random dat...
-
Hi Prasanna, IPython/Jupyter displays the result of the last line of a cell by default - this isn't specific to gurobipy or addConstrs. You can suppress this output by ending the line with a semi-c...
-
Hi Daniele, We currently have a few issues with interactions between Var/LinExpr and MVar/MLinExpr. There were some fixes added to the most recent release (version 9.5.1) which should address your ...
-
Hi all, sorry for the delayed follow-up. Is everyone experiencing this issue using numpy in some way? If anyone has a minimal working example where the memory issue occurs and numpy is *not* involv...
-
Hi Samuel, gurobipy is tightly integrated with the Gurobi C API, so C code is called any time you make a gurobipy API call. For example: gp.Model(...) calls the C API to construct a model x = mode...
-
Hi Artem, The syntax of a generator expression in Python is defined here: https://docs.python.org/3/reference/expressions.html#generator-expressions. It's syntactically very similar to a list compr...
-
Hi Artem, I discovered that `model.addConstrs` does introspection on the provided generator frame. Indeed it does. This is really the only way to pull off this particular bit of magic; as you cor...
-
This deprecation warning comes from newer versions of numpy, please see https://support.gurobi.com/hc/en-us/articles/16534198159889 for further information. Your code in the screenshot looks correc...
-
Hi Richard, Currently, transpose is only implemented for MVars, not the corresponding expression objects (MLinExpr and MQuadExpr). You can work around it in this case by expanding out the transpose...