Open FelixPetzold opened 8 years ago
Class RouterTSPWrapper -> Methode CalculateTSP(Vehicle vehicle, RouterPoint[] points, int first, int last)
RouterTSPWrapper
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);
IRoute tspSolution = _routerTSP.CalculateTSP(weights, locations);
Should be: IRoute tspSolution = _routerTSP.CalculateTSP(weights, locations, first, last);
IRoute tspSolution = _routerTSP.CalculateTSP(weights, locations, first, last);
Class
RouterTSPWrapper
-> MethodeCalculateTSP(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);