Silke Horn
-
Gurobi Staff
- Total activity 377
- Last activity
- Member since
- Following 0 users
- Followed by 1 user
- Votes 7
- Subscriptions 183
Comments
Recent activity by Silke Horn-
Hi, I could reproduce the issue. We will reach out to you via our support portal. Silke
-
I assume by "multiple binary variable conditions" you mean something like this: $$ x_1 == 1\mathrm{\ \ AND\ \ } x_2 == 1 \implies \text{<some constraint>} $$ You can only have one indicator variabl...
-
There is no general answer to this. It really depends on your model. If you're not using a far away compute server, the overhead of creating and optimizing many small models should be very small. B...
-
MIP solvers solve integer programs via a series of linear programming relaxations and in this process, small rounding errors are unavoidable in a world of floating-point arithmetic. For this reason...
-
You can get a list of all the x-values with model.getAttr('x'). However, the output produced by printAttr only contains the variables with non-zero values, the result of getAttr will contain all va...
-
Welcome to Gurobi! Which API are you going to use? (From your mention of tuplelist and tupledict, I am going to assume Python.) As of version 8.1.1, Gurobi does not support matrix-based modeling in...
-
Hi Gary, Edit: Python 3.7 is already supported. See here. Silke
-
If there is a solution (e.g. after optimize() has finished), you can access the variables' values in the current solution using the X attribute. E.g.: select = grb.tuplelist((i,j) for i,j in x_vars...
-
When you try to set a constraint attribute, setAttr expects two arrays. This should work: self.model.setAttr("RHS", [self.model.getConstrs()[i]],[self.water_network.b[i]]) Alternatively, you could ...
-
The two version of your code produce different models. The first one is indeed infeasible since you are setting x_vars[i,i].ub = 0which fixes \(x\_vars[i,i]\) to 0, but on the other hand you also h...