You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
FlagEncoder can make FastestWeighting#getMinWeight inconsistent #1849
Open RandomizedRoutingTest and switch to MotorcycleFlagEncoder. (Switch commented out line.) Will fail.
Then open FastestWeighting and switch commented-out lines. Will succeed.
changed the title [-]FastestWeighting#calcWeight and #getMinWeight inconsistent[/-][+]FlagEncoder can make FastestWeighting#getMinWeight inconsistent[/+]on Jan 10, 2020
Activity
michaz commentedon Jan 10, 2020
Ah, I forgot: It may be because the test sets some speeds higher than 120, which is hardcoded in MotorcycleFlagEncoder.
...which we could still improve upon, because the speedEncodedValue lives in the MotorcycleFlagEncoder, so it could actually know its highest speed.
But that's perhaps a luxury issue. ,-)
[-]FastestWeighting#calcWeight and #getMinWeight inconsistent[/-][+]FlagEncoder can make FastestWeighting#getMinWeight inconsistent[/+]easbar commentedon Jan 10, 2020
In case there is no time for luxury we could also make this adjustable in
randomGraphor even simply reduce the speed from 120+-10 to 110+-10