- Timestamp:
- 07/28/11 14:16:21 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Creators/IterativeInsertionCreator.cs
r5127 r6607 83 83 private static PotvinEncoding CreateSolution(IVRPProblemInstance instance, IRandom random, bool adhereTimeWindows) { 84 84 PotvinEncoding result = new PotvinEncoding(instance); 85 IVRPEvaluator eval = instance.EvaluatorParameter.Value;86 85 87 86 List<int> customers = new List<int>(); … … 105 104 currentTour.Stops.Insert(stopIdx, customers[index]); 106 105 107 CVRPEvaluation evaluation = eval.Evaluate(instance,currentTour) as CVRPEvaluation;106 CVRPEvaluation evaluation = instance.Evaluate(currentTour) as CVRPEvaluation; 108 107 if (result.Tours.Count < instance.Vehicles.Value && 109 ((adhereTimeWindows && ! eval.Feasible(evaluation)) || ((!adhereTimeWindows) && evaluation.Overload > double.Epsilon))) {108 ((adhereTimeWindows && !instance.Feasible(evaluation)) || ((!adhereTimeWindows) && evaluation.Overload > double.Epsilon))) { 110 109 currentTour.Stops.RemoveAt(stopIdx); 111 110
Note: See TracChangeset
for help on using the changeset viewer.