Nicolas Campbell
- Total activity 10
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 2
- Subscriptions 2
Posts
Recent activity by Nicolas Campbell-
if statement in constraint
AnsweredHi, I am trying to have a conditional constraint for when x [t-1] = 0. Here is some current code: model.addConstrs(sum(x[time,zone] for zone in zones) >= 0.95*sum(x[times[time_index-1],zone] for zo...
-
Ignored upper bound set on variable
AnsweredHi, I have a set of variables that are semi-continuous with an upper and lower bound placed. x = model.addVars(times,zones, name = "x", ub=ub, lb = lb, vtype= 'S') ub and lb are defined in a big li...