]> git.tdb.fi Git - r2c2.git/commit
Rewrite goal initialization for TrainRouteMetric
authorMikko Rasa <tdb@tdb.fi>
Mon, 23 Feb 2015 14:42:00 +0000 (16:42 +0200)
committerMikko Rasa <tdb@tdb.fi>
Mon, 23 Feb 2015 14:42:00 +0000 (16:42 +0200)
commit8c7fc0b79ce88e0295e0e6ea52cb7eb753158d8a
tree173bf420c99fbfbe5dba5a798bcd0633cc68d0ca
parent5b71cb905051d654c150cb0e098cade0cb502105
Rewrite goal initialization for TrainRouteMetric

The previous code incorrectly added all tracks as goals when a direction
was specified, instead of only the ends.  This caused cost estimate creep
in the route planner, resulting in suboptimal performance.
source/libr2c2/trackchain.h
source/libr2c2/trainroutemetric.cpp
source/libr2c2/zone.h