Commits

Yiliang Xiong committed cc2ac51

inhalation hazard trains are not allowed to use sliding tracks

Comments (0)

Files changed (1)

 # long train and sliding track
 s.t. long_train {i in I, (r,s) in E: tracktype[r,s] == "S"}: 
     trackleng[r,s] >= trainleng[i] - (1 - y[i,r,s]) * L;
+# inhalation hazard train
+s.t. hazard_train {i in I, (r,s) in E: hazard[i] == 1 and tracktype[r,s] == "S"}: y[i,r,s] = 0;