"max_share_factor" in the alternative algorithm doesn't apply to alternatives together

Hi
I use the alternative algorithm and set
“alternative_route.max_weight_factor” = 1.5
“alternative_route.max_share_factor” = 0.7
“alternative_route.max_paths” = 3
it seems “route.max_share_factor” just checks if each alternative is not similar to the best route, not all alternatives together.
so, as result I get three routes that two alternatives are very similar.
I wonder, is that any way to check alternatives similarity too?
I check source code in AlternativeRoute.java and seems this piece of code checks similarity:

SPTEntry fromEE = getFirstShareEE(fromSPTEntry.parent, true);
SPTEntry toEE = getFirstShareEE(toSPTEntry.parent, false);
double shareWeight = fromEE.getWeightOfVisitedPath() + toEE.getWeightOfVisitedPath();
boolean smallShare = shareWeight / bestWeight < maxShareFactor;

it seems “route.max_share_factor” just checks if each alternative is not similar to the best route, not all alternatives together

Yes, this is a current limitation

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.