- Timestamp:
- 07/27/11 14:35:13 (13 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Potvin/PotvinEncoding.cs
r6459 r6600 75 75 place = -1; 76 76 bool bestFeasible = false; 77 double minDetour = 0;77 double minDetour = double.MaxValue; 78 78 79 79 for (int tour = 0; tour < Tours.Count; tour++) { … … 87 87 capacity, distMatrix); 88 88 89 if ( (!allowInfeasible && feasible) || (allowInfeasible && (!bestFeasible || feasible))) {89 if (feasible || allowInfeasible && !bestFeasible) { 90 90 double newLength = Tours[tour].GetLength(distMatrix); 91 91 double detour = newLength - length; 92 92 93 if (route <= 0 || detour < minDetour || 94 (allowInfeasible && ((!(bestFeasible && !feasible)) && detour < minDetour || (feasible && !bestFeasible)))) { 93 if (route < 0 || detour < minDetour || feasible && !bestFeasible) { 95 94 route = tour; 96 95 place = i; -
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/HeuristicLab.Problems.VehicleRouting-3.3.csproj
r6523 r6600 114 114 <Compile Include="Encodings\Alba\LocalImprovement\AlbaLambdaInterchangeLocalImprovementOperator.cs" /> 115 115 <Compile Include="Encodings\General\Creators\IterativeInsertionCreator.cs" /> 116 <Compile Include="Encodings\Potvin\Crossovers\PotvinInsertionBasedCrossover.cs" /> 116 117 <Compile Include="Encodings\Potvin\Manipulators\PotvinLocalSearchManipulator.cs" /> 117 118 <Compile Include="Interfaces\IVRPMultiNeighborhoodShakingOperator.cs" />
Note: See TracChangeset
for help on using the changeset viewer.