The problem
I am using osm2po's TspDefaultMatrix
to create a cost (time) matrix:
new TspDefaultMatrix(graph, vertexIds, maxCost, Log.stdout(Log.LEVEL_LOG), properties)
Where properties
contains:
findShortestPath: false
ignoreRestrictions: false
ignoreOneWays: false
heuristicFactor: 1.0
I tried many value for maxCost
(0
, 1
, 2
, Float.MAX_VALUE
). Except for maxCost = 0
, I always get this in the log:
DEBUG Heuristic MaxCost set to 0.2134047
followed by some:
WARN Matrix [8][9] unreachable!
WARN Matrix [8][3] unreachable!
because, indeed, some of the vertexId are more than 0.2134047
hours appart.
The question
I want to know how this value (0.2134047
) is calculated and how I can effectively tell TspDefaultMatrix
to use my maxCost
.
By the ways, I did not found (was not searching a lot) the osm2po source code. Is it available ? I would have been able to answer my question myself.
EDIT:
By the way, I was using version 4.8.8
of osm2po to build the .gph
file and at runtime.