Simon Bowly
Gurobi Staff Total activity 133
 Last activity
 Member since
 Following 0 users
 Followed by 0 users
 Votes 0
 Subscriptions 67
Comments
Recent activity by Simon Bowly
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...

Hi Victor, Could you please post a minimal, reproducible example? This must include how all variables and data in your code are created so that we can reproduce the error and point to the issue. An...

Hi Mohamad, Since the Gurobi logging output has started, your formulation code is complete and the model is being solved (i.e. the model.optimize() statement has been reached). So I don't think you...