]> git.tdb.fi Git - r2c2.git/commit
Penalize steps other than the fastest one
authorMikko Rasa <tdb@tdb.fi>
Thu, 5 Feb 2015 08:48:48 +0000 (10:48 +0200)
committerMikko Rasa <tdb@tdb.fi>
Thu, 5 Feb 2015 08:48:48 +0000 (10:48 +0200)
commit9976acc82d98c8aecde0152a72be8cc8882e35ff
treea4011d9e45eb43d78190bd66431660953dc2319a
parentdd41422054c277b44059d5d2d127ce34a2c2119f
Penalize steps other than the fastest one

This encourages the planner to follow a single chain of steps and avoids
exploding the state tree too much.  In the future this may be replaced by
different speed limits on diverging paths of turnouts (reducing the
ambiguity of fastest path) and an actual heuristic for potential wait time
(giving wait states an implicit penalty).
source/libr2c2/trainrouteplanner.cpp
source/libr2c2/trainrouteplanner.h