Simon Bowly
Gurobi Staff Total activity 136
 Last activity
 Member since
 Following 0 users
 Followed by 0 users
 Votes 0
 Subscriptions 68
Comments
Recent activity by Simon Bowly
Hi Artem, The syntax of a generator expression in Python is defined here: https://docs.python.org/3/reference/expressions.html#generatorexpressions. 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/enus/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...

Adding some extra detail here since this question comes up from time to time. The short answer is this: The usual simple tricks for parallelizing Python code do not work for the termbased modelin...

Hi Saeid, If you are looking for a mapping in your model based on this dictionary, i.e. if x = 1 then y = 2, if x = 3 then y = 4, etc, then yes, you would need to introduce binary variables which e...

Hi Saeid, No, you cannot use variables as keys. I am not sure I understand how this would help you here, could you clarify what you are trying to achieve? Maybe by writing down the mathematical for...

Hi Madhushini, In your initial data setup, you should first create P_initialWt as a pandas series over the same Facility index as your other data: P_initialWt = pd.Series({'a': 0.1, 'b': 0.3, 'c': ...

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 Youssef, When you install gurobipy using pip, there is a trial license automatically included which is restrictive in terms of the size of the models it can solve. However, any other valid Gurob...