railtoolkit / TrainRuns.jl

TrainRun.jl will take a user-defined train and a path as an input for a train run calculation. It can calculate the train run as a time-efficient or energy-efficient operation mode. The results can then be used within the Julia environment.
https://railtoolkit.org/projects/trainruns.jl
ISC License
5 stars 2 forks source link

Add DrivingPolicy() type #45

Open kaat0 opened 1 year ago

kaat0 commented 1 year ago

driving policy should contain:

apriljunge commented 3 months ago

Is this the place to add a start and end position for the train? This would be useful when using homogeneous_strip as mass model.

As the train now always runs the whole track path_resistance has to be inferred at the start. https://github.com/railtoolkit/TrainRuns.jl/blob/94f2de7bc3c5c4eeecfbb88d8a7bd41f1a90ae97/src/calc.jl#L179-L182