Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/07/17 14:05:09 (7 years ago)
Author:
epitzer
Message:

#2727 completely replace basic array with array mapped trie in ValueTypeArray and descendants

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PersistentDataStructures/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Alba/AlbaEncoding.cs

    r14186 r14650  
    4040
    4141      Tour tour = new Tour();
    42       for (int i = 0; i < this.array.Length; i++) {
    43         if (this.array[i] >= cities) {
     42      for (int i = 0; i < this.historyArray.Length; i++) {
     43        if (this.historyArray[i] >= cities) {
    4444          if (tour.Stops.Count > 0) {
    4545            result.Add(tour);
     
    4848          }
    4949        } else {
    50           tour.Stops.Add(this.array[i] + 1);
     50          tour.Stops.Add(this.historyArray[i] + 1);
    5151        }
    5252      }
     
    7272
    7373        while (vehicleAssignment == -1) {
    74           if (this.array[i] >= ProblemInstance.Cities.Value) {
    75             vehicleAssignment = this.array[i] - ProblemInstance.Cities.Value;
     74          if (this.historyArray[i] >= ProblemInstance.Cities.Value) {
     75            vehicleAssignment = this.historyArray[i] - ProblemInstance.Cities.Value;
    7676          }
    7777
Note: See TracChangeset for help on using the changeset viewer.