
Simon Bowly
- Total activity 70
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 0
- Subscriptions 36
Activity overview
Latest activity by Simon Bowly-
Simon Bowly commented,
Hi Sebastian, If you have a callable that isn't a function, you can work around this particular limitation by using a lambda function as follows: import gurobipy as gpm = gp.Model()# where 'callbac...
-
Simon Bowly commented,
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...
-
Simon Bowly commented,
Hi Putri, You will need to have your full Gurobi license set up (academic license or take-gurobi-with-you, as we discussed today, depending on whether this is for your commercial or academic work) ...
-
Simon Bowly commented,
Hi Putri, I can't tell what the issue is here from looking solely at the model code. What error message and/or log output are you seeing? At what point in this code do you call mdl.optimize() to so...
-
Simon Bowly commented,
Hi Putri, Python's error messages can be a bit cryptic here, and often point to the code after the issue, not the issue itself. In this case it looks like you just have a mismatched bracket at this...
-
Simon Bowly commented,
Hi Eduardo, You can build sparse indexes like this, but you'll need to create a list of index tuples explicitly first and pass it to addVars. One way to do this is the following: I = [1, 2, 3]Ji = ...
-
Simon Bowly commented,
Yes, the presolved model structure dictates the algorithm that is used. If the presolved model is an MILP, then in general branch and bound is needed to guarantee a result. Most likely, one of the ...
-
Simon Bowly commented,
GRBsetintparam is a function, not a macro, so it requires a different syntax. Try the following: Gurobi.GRBsetintparam(env, "OutputFlag", 0)
-
Simon Bowly commented,
Hi, I don't think "setparams!" is part of the JuMP API any more, although I can't figure in which version it was removed. The appropriate functions are "set_optimizer_attribute" (a general JuMP fun...
-
Simon Bowly commented,
Hi Keyur, In the first case (minrelax=False), Gurobi modifies the model so that it aims to minimize violations of the constraints while entirely ignoring your original objective. So, if you do the ...