Commits

Yiliang Xiong committed 9ba0ed3

consider trains's entry time

  • Participants
  • Parent commits 4cee455

Comments (0)

Files changed (1)

 # Terminal Want Time (TWT) deviance
 s.t. terminal_early {(i,r,s) in LAST}: early[i,r,s] >= twtstart[i] - a[i,r,s] + (1 - y[i,r,s]) * M;
 s.t. terminal_late  {(i,r,s) in LAST}: late[i,r,s]  >= a[i,r,s] - twtend[i] + (1 - y[i,r,s]) * M;
+# entry time
+s.t. entry_time_east {i in I, (r,s) in E: r == orig[i]}: a[i,r,s] >= entrytime[i];
+s.t. entry_time_east {i in J, (r,s) in W: r == orig[i]}: a[i,s,r] >= entrytime[i];