ui
ui copied to clipboard
Bug in RouterTSPWrapper
Class RouterTSPWrapper -> Methode CalculateTSP(Vehicle vehicle, RouterPoint[] points, int first, int last)
The bug is located in line 126. You forgot to pass first and last to the RouterTSP.
Original:
IRoute tspSolution = _routerTSP.CalculateTSP(weights, locations);
Should be:
IRoute tspSolution = _routerTSP.CalculateTSP(weights, locations, first, last);