TrainRun.jl/docs/examples/MinimalWorkingExample.jl

11 lines
228 B
Julia
Raw Normal View History

2022-04-28 17:02:40 +02:00
#!/usr/bin/env julia
using TrainRun
2022-04-28 17:02:40 +02:00
train = Train("test/data/trains/freight.yaml")
path = Path("test/data/paths/const.yaml")
2022-04-28 17:02:40 +02:00
runtime = trainrun(train, path)
2022-04-28 17:02:40 +02:00
println("The train needs $runtime seconds for the running path.")