2022-04-28 17:02:40 +02:00
|
|
|
#!/usr/bin/env julia
|
|
|
|
|
2022-05-04 16:53:58 +02:00
|
|
|
using TrainRuns
|
2022-04-28 17:02:40 +02:00
|
|
|
|
2022-05-04 16:34:17 +02:00
|
|
|
train = Train("test/data/trains/freight.yaml")
|
|
|
|
path = Path("test/data/paths/const.yaml")
|
2022-04-28 17:02:40 +02:00
|
|
|
|
2022-06-02 12:32:00 +02:00
|
|
|
runtime_dataFrame = trainrun(train, path)
|
|
|
|
runtime = runtime_dataFrame[!, 1][2]
|
2022-04-28 17:02:40 +02:00
|
|
|
|
|
|
|
println("The train needs $runtime seconds for the running path.")
|