SnapRadiusto ensure points are on a road network and within the hosted area and
ScaleFactorto multiply durations by a factor when using a
DurationMatrix, and missing error return values. Learn more.
FilterWithRoutefeature to check for general compatibility and access the current solution's route. This feature allows for more flexibility in your filtering. For example, you can use
FilterWithRouteto filter out vehicles that may not be assigned additional stops based on stops already in the vehicle's route. Learn more.
POOL_SIZEvariable has been added to configure the number of parallel ALNS instances to be used with the fleet engine. If
POOL_SIZEis not set by the user, it will default to
runtime.GOMAXPROCS(0)/2(half of the available threads). Use this to control your environment for the fleet engine for more performant results. Learn more.
TimeTrackerhas been added to the vehicle, fleet, and router engines. It tracks the amount of time passed overall and considers the time it takes for windows to open. Before, tracking time had to be done manually by the user. Now, you can simply query the
DepartureTimesof a route via the
indexToCostwas not executed correctly in combination with alternate stops.
routerengine led to an out-of-range error.
routerAPI ignored the random seed option.
Attributeoption unassigned all stops that had an empty attribute list, because those stops were considered incompatible with any vehicle.
DefaultModelto group together locations that are part of a vehicle's backlog and verify they can be assigned to that vehicle.
MaxRouteLengthFilternow predicts the minimal costs for locations under assignment consideration.
routeroutput when using duration groups.
fleetwhich was not always returning -1 when no location was assigned.
Inserted()method now returns correct index. In rare cases it previously returned
0where that should have been
WithAsyncPollingIntervalhave been removed and replaced by a cancellation context that is applied to the matrix functions.
location measure- which handles service times - now also takes a new parameter
routernow has 2 parameters.
CustomAssignernow takes a new function
VehicleSorteras a parameter to improve predicting the costs when a location group is assigned to a vehicle and thus, improving the solver's navigation through the search space.