我正在尝试添加此约束(mjit),其中包括车辆到达目的地时的实际时间步长。请提出建议,我该如何定义?
m.addConstr(V[(i,t+1)]==V[(i,t)]-quicksum(Q[(i,j,t)] for j in range(I))-
quicksum(N[(i,j,t)] for j in range(I))+quicksum(Q[(j,i,mjit)] for j in range(I))+
quicksum(N[(j,i,mjit)] for j in range(I))