Changeset 4205 for trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba/Moves/LambdaInterchange/LambdaInterchangeMoveEvaluator.cs
- Timestamp:
- 08/12/10 18:42:54 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba/Moves/LambdaInterchange/LambdaInterchangeMoveEvaluator.cs
r4204 r4205 25 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 26 using HeuristicLab.Problems.VehicleRouting.Encodings.Alba; 27 using HeuristicLab.Data; 27 28 28 29 namespace HeuristicLab.Problems.VehicleRouting { … … 42 43 } 43 44 44 protected override TourEvaluation GetMoveQuality() { 45 LambdaInterchangeMove move = LambdaInterchangeMoveParameter.ActualValue; 46 //perform move 47 AlbaEncoding newSolution = VRPToursParameter.ActualValue.Clone() as AlbaEncoding; 45 public static TourEvaluation GetMoveQuality(AlbaEncoding individual, LambdaInterchangeMove move, 46 DoubleArray dueTimeArray, DoubleArray serviceTimeArray, DoubleArray readyTimeArray, 47 DoubleArray demandArray, DoubleValue capacity, DoubleMatrix coordinates, 48 DoubleValue fleetUsageFactor, DoubleValue timeFactor, DoubleValue distanceFactor, 49 DoubleValue overloadPenalty, DoubleValue tardinessPenalty, 50 ILookupParameter<DoubleMatrix> distanceMatrix, Data.BoolValue useDistanceMatrix) { 51 AlbaEncoding newSolution = individual.Clone() as AlbaEncoding; 48 52 LambdaInterchangeMoveMaker.Apply(newSolution, move); 49 53 50 54 return VRPEvaluator.Evaluate( 51 newSolution, 55 newSolution, dueTimeArray, serviceTimeArray, readyTimeArray, 56 demandArray, capacity, fleetUsageFactor, timeFactor, distanceFactor, 57 overloadPenalty, tardinessPenalty, coordinates, distanceMatrix, useDistanceMatrix); 58 } 59 60 protected override TourEvaluation GetMoveQuality() { 61 return GetMoveQuality( 62 VRPToursParameter.ActualValue as AlbaEncoding, LambdaInterchangeMoveParameter.ActualValue, 52 63 DueTimeParameter.ActualValue, ServiceTimeParameter.ActualValue, ReadyTimeParameter.ActualValue, 53 DemandParameter.ActualValue, CapacityParameter.ActualValue, 54 FleetUsageFactor.ActualValue, TimeFactor.ActualValue, DistanceFactor.ActualValue, OverloadPenalty.ActualValue, TardinessPenalty.ActualValue,55 CoordinatesParameter.ActualValue, DistanceMatrixParameter, UseDistanceMatrixParameter.ActualValue);64 DemandParameter.ActualValue, CapacityParameter.ActualValue, CoordinatesParameter.ActualValue, 65 FleetUsageFactor.ActualValue, TimeFactor.ActualValue, DistanceFactor.ActualValue, OverloadPenalty.ActualValue, 66 TardinessPenalty.ActualValue, DistanceMatrixParameter, UseDistanceMatrixParameter.ActualValue); 56 67 } 57 68 }
Note: See TracChangeset
for help on using the changeset viewer.