Ronald van der Velden
-
Gurobi Staff
- Total activity 256
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 1
- Subscriptions 119
Comments
Recent activity by Ronald van der Velden-
Could you describe a bit more how you want to use that variable - is it continuous or integer and how do you want to use the variable? The challenge is that computers have limited precision so the ...
-
I cannot reproduce the error; there might be a problem with the type/values of some of your variables. What is the type of df.demand[i] - is it a single float, or a list/vector/dataseries? If that ...
-
In this case, note that the information in R and L is mostly irrelevant, except when you need to find the cost for a certain combination of a driver and a parcel. So, instead of using elements from...
-
Hi Assia, Here are some ideas: You mention an IIS, but also said that the problem is that x (I'm assuming xd here?) is not being forced to 0 when q2<d. What exactly is the issue - are you getting ...
-
Not sure, could you update your message to include the full (or at least reproducible) code ? One thing I did notice, is that RL.index((r, l)) would only return the first occurrence of the (r, l) p...
-
I may have misunderstood your question as we looked at multiple cases. The main point is, if the keys (coming from one list or combinations from two lists) are unique, you can just pass the list(s)...
-
Hi Emma, You would generate the combinations of elements from R and L "outside Gurobi" first and then call addVars() requesting the right number of variables, returning them as a list. For example:...
-
Almost; you would leave out the r argument since Gurobi doesn't need to do anything with that information. And you would store each individual variable somewhere else (right now you overwrite x in ...
-
Hi Emma, Thanks a lot for clarifying! Unfortunately you would then need to iterate over R yourself and call addVar() without the "s" to create variables one by one. When you use addVars(), the resu...
-
Hi Emma, Since the title of your post includes "addVars", I would say you would call addVars() multiple times using the same sets, e.g. startTime = model.addVars(vehicles, depots, name="startTime")...