- Timestamp:
- 08/19/10 16:51:30 (14 years ago)
- Location:
- branches/VRP/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba/Moves
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba/Moves/AlbaMoveOperator.cs
r4204 r4268 41 41 IVRPEncoding solution = VRPToursParameter.ActualValue; 42 42 if (!(solution is AlbaEncoding)) { 43 VRPToursParameter.ActualValue = AlbaEncoding.ConvertFrom(solution, VehiclesParameter.ActualValue.Value); 43 VRPToursParameter.ActualValue = AlbaEncoding.ConvertFrom(solution, VehiclesParameter.ActualValue.Value, 44 DistanceMatrixParameter); 44 45 } 45 46 -
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba/Moves/IntraRouteInversion/IntraRouteInversionEvaluator.cs
r4206 r4268 44 44 45 45 public static TourEvaluation GetMoveQuality(AlbaEncoding individual, IntraRouteInversionMove move, 46 IntValue vehicles, 46 47 DoubleArray dueTimeArray, DoubleArray serviceTimeArray, DoubleArray readyTimeArray, 47 48 DoubleArray demandArray, DoubleValue capacity, DoubleMatrix coordinates, … … 53 54 54 55 return VRPEvaluator.Evaluate( 55 newSolution, dueTimeArray, serviceTimeArray, readyTimeArray,56 newSolution, vehicles, dueTimeArray, serviceTimeArray, readyTimeArray, 56 57 demandArray, capacity, fleetUsageFactor, timeFactor, distanceFactor, 57 58 overloadPenalty, tardinessPenalty, coordinates, distanceMatrix, useDistanceMatrix); … … 61 62 return GetMoveQuality( 62 63 VRPToursParameter.ActualValue as AlbaEncoding, IntraRouteInversionMoveParameter.ActualValue, 64 VehiclesParameter.ActualValue, 63 65 DueTimeParameter.ActualValue, ServiceTimeParameter.ActualValue, ReadyTimeParameter.ActualValue, 64 66 DemandParameter.ActualValue, CapacityParameter.ActualValue, CoordinatesParameter.ActualValue, -
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba/Moves/IntraRouteInversion/IntraRouteInversionMove.cs
r4206 r4268 57 57 58 58 public TourEvaluation GetMoveQuality( 59 IVRPEncoding individual, 59 IVRPEncoding individual, IntValue vehicles, 60 60 DoubleArray dueTimeArray, DoubleArray serviceTimeArray, DoubleArray readyTimeArray, 61 61 DoubleArray demandArray, DoubleValue capacity, DoubleMatrix coordinates, … … 63 63 DoubleValue overloadPenalty, DoubleValue tardinessPenalty, 64 64 ILookupParameter<DoubleMatrix> distanceMatrix, Data.BoolValue useDistanceMatrix) { 65 return IntraRouteInversionMoveEvaluator.GetMoveQuality(individual as AlbaEncoding, this, 65 return IntraRouteInversionMoveEvaluator.GetMoveQuality(individual as AlbaEncoding, this, vehicles, 66 66 dueTimeArray, serviceTimeArray, readyTimeArray, demandArray, capacity, 67 67 coordinates, fleetUsageFactor, timeFactor, distanceFactor, -
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba/Moves/LambdaInterchange/LambdaInterchangeMove.cs
r4206 r4268 89 89 90 90 public TourEvaluation GetMoveQuality( 91 IVRPEncoding individual, 91 IVRPEncoding individual, IntValue vehicles, 92 92 DoubleArray dueTimeArray, DoubleArray serviceTimeArray, DoubleArray readyTimeArray, 93 93 DoubleArray demandArray, DoubleValue capacity, DoubleMatrix coordinates, … … 95 95 DoubleValue overloadPenalty, DoubleValue tardinessPenalty, 96 96 ILookupParameter<DoubleMatrix> distanceMatrix, Data.BoolValue useDistanceMatrix) { 97 return LambdaInterchangeMoveEvaluator.GetMoveQuality(individual as AlbaEncoding, this, 97 return LambdaInterchangeMoveEvaluator.GetMoveQuality(individual as AlbaEncoding, this, vehicles, 98 98 dueTimeArray, serviceTimeArray, readyTimeArray, demandArray, capacity, 99 99 coordinates, fleetUsageFactor, timeFactor, distanceFactor, -
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba/Moves/LambdaInterchange/LambdaInterchangeMoveEvaluator.cs
r4206 r4268 44 44 45 45 public static TourEvaluation GetMoveQuality(AlbaEncoding individual, LambdaInterchangeMove move, 46 IntValue vehicles, 46 47 DoubleArray dueTimeArray, DoubleArray serviceTimeArray, DoubleArray readyTimeArray, 47 48 DoubleArray demandArray, DoubleValue capacity, DoubleMatrix coordinates, … … 53 54 54 55 return VRPEvaluator.Evaluate( 55 newSolution, dueTimeArray, serviceTimeArray, readyTimeArray,56 newSolution, vehicles, dueTimeArray, serviceTimeArray, readyTimeArray, 56 57 demandArray, capacity, fleetUsageFactor, timeFactor, distanceFactor, 57 58 overloadPenalty, tardinessPenalty, coordinates, distanceMatrix, useDistanceMatrix); … … 61 62 return GetMoveQuality( 62 63 VRPToursParameter.ActualValue as AlbaEncoding, LambdaInterchangeMoveParameter.ActualValue, 64 VehiclesParameter.ActualValue, 63 65 DueTimeParameter.ActualValue, ServiceTimeParameter.ActualValue, ReadyTimeParameter.ActualValue, 64 66 DemandParameter.ActualValue, CapacityParameter.ActualValue, CoordinatesParameter.ActualValue, -
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba/Moves/ThreeOpt/PermutationTranslocationMoveEvaluator.cs
r4208 r4268 51 51 return VRPEvaluator.Evaluate( 52 52 newSolution, 53 VehiclesParameter.ActualValue, 53 54 DueTimeParameter.ActualValue, ServiceTimeParameter.ActualValue, ReadyTimeParameter.ActualValue, 54 55 DemandParameter.ActualValue, CapacityParameter.ActualValue,
Note: See TracChangeset
for help on using the changeset viewer.