1. Yiliang Xiong
  2. RAS2012

Source

RAS2012 / toy.dat

# run Gurobi solver
# gurobi_wp --glpk_out --grb_out -m dispatching.mod -d toy.dat -o toy.sol
# run glpk solver
# glpsol -m dispatching.mod -d toy.dat -o toy.sol

# number of nodes
param N := 13;
# track parameters
param maxspeedeast := 80;
param maxspeedwest := 70;
param maxspeedsl   := 20;
param maxspeedsw   := 15;
param: E: tracktype trackleng :=
    0  1    "0"     18
    1  2    SW      .3
    1  3    "0"     1
    2  4    S       2
    3  5    "0"     1
    4  5    SW      .3
    5  6    "0"     20
    6  7    "0"     18
    7  8    "0"     1
    7  9    SW      .3
    9  10   S       2
    8  11   "0"     1
    10 11   SW      .3
    11 12   "0"     20;

# MOW window
param:  F: mowstart mowend := 
    11 12       0       20;

# train parameters
param:  T: trainname traintype entrytime orig dest traindir speedmult trainleng tonage hazard initdelay termtime :=
        1   C1          C       0           0   12  EASTBOUND   .75         1       75      0       0       120
        2   A1          A       20          0   12  EASTBOUND   1           2.1     75      0       0       145
        3   B1          B       0           12  0   WESTBOUND   .85         1       75      0       -120    80;
param schedtime :=
1 6 50
1 12 100
2 6 40
2 12 80
3 6 -50
3 0 90;