]> git.tdb.fi Git - r2c2.git/commit
Follow the same path until another is significantly better
authorMikko Rasa <tdb@tdb.fi>
Mon, 23 Feb 2015 10:17:27 +0000 (12:17 +0200)
committerMikko Rasa <tdb@tdb.fi>
Mon, 23 Feb 2015 14:37:02 +0000 (16:37 +0200)
commitcac4176a9685e8b39147d1e18d969b3bee052b03
treec3b5046879e112c733bbd54cdcebce176f018475
parent54cb832334a83fc266b59e2c9b60ee936db7118f
Follow the same path until another is significantly better

This replaces the cost penalty for routing steps.  In the penalty approach
it was possible to get two or more steps with the same penalty, which
would then race with each other.  In the new approach, all other steps are
sorted by their unpenalized cost and only the preferred one gets special
treatment.
source/libr2c2/trainrouteplanner.cpp
source/libr2c2/trainrouteplanner.h