Opened 11 years ago
Closed 10 years ago
#2191 closed defect (done)
Bug in IterativeInsertionCreator
Reported by: | abeham | Owned by: | abeham |
---|---|---|---|
Priority: | medium | Milestone: | HeuristicLab 3.3.10 |
Component: | Problems.VehicleRouting | Version: | 3.3.9 |
Keywords: | Cc: |
Description
The bug was reported on the mailinglist.
There is a small bug in HeuristicLab.Problems.VehicleRouting\3.4\Encodings\Potvin\Creators\IterativeInsertionCreator.cs in public static PotvinEncoding CreateSolution():
int stopIdx = 0; if (currentTour.Stops.Count > 0) result.FindBestInsertionPlace(currentTour, customers[index]); currentTour.Stops.Insert(stopIdx, customers[index]);
Should be:
int stopIdx = 0; if (currentTour.Stops.Count > 0) stopIdx = result.FindBestInsertionPlace(currentTour, customers[index]); currentTour.Stops.Insert(stopIdx, customers[index]);
Change History (6)
comment:1 Changed 10 years ago by abeham
- Owner changed from abeham to pfleck
- Status changed from new to assigned
comment:2 Changed 10 years ago by pfleck
- Status changed from assigned to accepted
comment:3 Changed 10 years ago by pfleck
comment:4 Changed 10 years ago by pfleck
- Owner changed from pfleck to abeham
- Status changed from accepted to reviewing
comment:6 Changed 10 years ago by abeham
- Resolution set to done
- Status changed from readytorelease to closed
r11005: merged to stable
Note: See
TracTickets for help on using
tickets.
r10959: correctly set the stopIdx, as suggested in the mailing list