Free cookie consent management tool by TermsFeed Policy Generator

Opened 10 years ago

Closed 9 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:


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 9 years ago by abeham

  • Owner changed from abeham to pfleck
  • Status changed from new to assigned

comment:2 Changed 9 years ago by pfleck

  • Status changed from assigned to accepted

comment:3 Changed 9 years ago by pfleck

r10959: correctly set the stopIdx, as suggested in the mailing list

comment:4 Changed 9 years ago by pfleck

  • Owner changed from pfleck to abeham
  • Status changed from accepted to reviewing

comment:5 Changed 9 years ago by abeham

  • Status changed from reviewing to readytorelease


comment:6 Changed 9 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.