I have a linear model with the following constraint:
for a in links: for s in scenarios: for t in times: opt.addConstr(recoverlink[a,t,s]-sum(inspectlink[a,t2-1,s]for