]> git.tdb.fi Git - r2c2.git/commit
Use a better cost estimator for the route planner
authorMikko Rasa <tdb@tdb.fi>
Fri, 11 Apr 2014 19:12:39 +0000 (22:12 +0300)
committerMikko Rasa <tdb@tdb.fi>
Fri, 11 Apr 2014 19:35:14 +0000 (22:35 +0300)
commit1203771e5aa9b12dca147cd1a84ece9a01c0fccd
tree96e3ac9e9b2d91d62bfba6bf05e42742ca1662ee
parentfb5bd959109927ea02ead1483a4bb0c5a66784a4
Use a better cost estimator for the route planner

Total time is not good because it doesn't penalize waiting time for
earlier trains.  This can cause the state tree to explode as later ones
start moving.

The sum of travel and wait times for each train works much better.
source/libr2c2/trainrouteplanner.cpp
source/libr2c2/trainrouteplanner.h