Changeset 17712 for branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Crossovers
- Timestamp:
- 08/04/20 07:06:39 (4 years ago)
- Location:
- branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Crossovers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Crossovers/PotvinCrossover.cs
r17698 r17712 21 21 22 22 using System.Collections.Generic; 23 using HEAL.Attic; 23 24 using HeuristicLab.Common; 24 25 using HeuristicLab.Core; … … 26 27 using HeuristicLab.Optimization; 27 28 using HeuristicLab.Parameters; 28 using HEAL.Attic;29 29 using HeuristicLab.Problems.VehicleRouting.Encodings.General; 30 30 using HeuristicLab.Problems.VehicleRouting.Interfaces; … … 134 134 solution.Tours.Remove(tour); 135 135 } 136 137 if (newTour.Stops.Count > 0 && !allowInfeasible && ! instance.TourFeasible(newTour, solution))136 var tourEval = instance.EvaluateTour(newTour, solution); 137 if (newTour.Stops.Count > 0 && !allowInfeasible && !tourEval.IsFeasible) 138 138 return false; 139 139 -
branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Crossovers/PotvinInsertionBasedCrossover.cs
r17698 r17712 20 20 #endregion 21 21 22 using System; 23 using System.Collections.Generic; 24 using HEAL.Attic; 22 25 using HeuristicLab.Common; 23 26 using HeuristicLab.Core; 24 using HEAL.Attic;25 using System.Collections.Generic;26 27 using HeuristicLab.Data; 27 using System;28 28 using HeuristicLab.Parameters; 29 using HeuristicLab.Problems.VehicleRouting.Interfaces; 29 30 using HeuristicLab.Problems.VehicleRouting.ProblemInstances; 30 using HeuristicLab.Problems.VehicleRouting.Interfaces;31 31 32 32 namespace HeuristicLab.Problems.VehicleRouting.Encodings.Potvin { … … 165 165 double minDetour = 0; 166 166 VRPEvaluation eval = ProblemInstance.EvaluateTour(tour, individual); 167 bool originalFeasible = ProblemInstance.Feasible(eval);168 167 169 168 for (int i = 0; i <= tour.Stops.Count; i++) {
Note: See TracChangeset
for help on using the changeset viewer.