Changeset 11931 for stable/HeuristicLab.Problems.VehicleRouting
- Timestamp:
- 02/06/15 09:24:18 (10 years ago)
- Location:
- stable
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 11420,11428-11429,11432,11442,11455-11456,11478,11930
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.VehicleRouting
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.VehicleRouting merged: 11428
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/PotvinEncoding.cs
r11170 r11931 36 36 public List<int> Unrouted { get; set; } 37 37 38 // VehicleAssignment[tour] retreives the assigned vehicle for the given tour 38 39 [Storable] 39 40 public Permutation VehicleAssignment { get; private set; } -
stable/HeuristicLab.Problems.VehicleRouting/3.4/Interpreters/VRPInterpreter.cs
r11170 r11931 20 20 #endregion 21 21 22 using System.IO; 22 23 using HeuristicLab.Data; 23 24 using HeuristicLab.Problems.Instances; … … 44 45 } 45 46 47 if (data.BestKnownTourVehicleAssignment != null) { 48 if (data.BestKnownTourVehicleAssignment.Length != solution.VehicleAssignment.Length) 49 throw new InvalidDataException("Number of vehicles of the best known tour does not match the number vehicles of the instance."); 50 for (int i = 0; i < data.BestKnownTourVehicleAssignment.Length; i++) 51 solution.VehicleAssignment[i] = data.BestKnownTourVehicleAssignment[i]; 52 } 53 46 54 return solution; 47 55 } else { … … 51 59 52 60 protected abstract IVRPProblemInstance CreateProblemInstance(); 53 61 54 62 public VRPInstanceDescription Interpret(IVRPData data) { 55 63 VRPInstanceDescription result = new VRPInstanceDescription();
Note: See TracChangeset
for help on using the changeset viewer.