Changeset 4205 for trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba/Moves/LambdaInterchange/LambdaInterchangeMove.cs
- Timestamp:
- 08/12/10 18:42:54 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba/Moves/LambdaInterchange/LambdaInterchangeMove.cs
r4204 r4205 25 25 using HeuristicLab.Common; 26 26 using System.Collections.Generic; 27 using HeuristicLab.Problems.VehicleRouting.Encodings.General; 28 using HeuristicLab.Data; 27 29 28 30 namespace HeuristicLab.Problems.VehicleRouting.Encodings.Alba { 29 31 [Item("InversionMove", "Item that describes a lambda move on an Alba VRP representation.")] 30 32 [StorableClass] 31 public class LambdaInterchangeMove: Item {33 public class LambdaInterchangeMove: Item, IVRPMove { 32 34 [Storable] 33 35 public int Tour1 { get; protected set; } … … 83 85 return clone; 84 86 } 87 88 #region IVRPMove Members 89 90 public TourEvaluation GetMoveQuality( 91 IVRPEncoding individual, 92 DoubleArray dueTimeArray, DoubleArray serviceTimeArray, DoubleArray readyTimeArray, 93 DoubleArray demandArray, DoubleValue capacity, DoubleMatrix coordinates, 94 DoubleValue fleetUsageFactor, DoubleValue timeFactor, DoubleValue distanceFactor, 95 DoubleValue overloadPenalty, DoubleValue tardinessPenalty, 96 ILookupParameter<DoubleMatrix> distanceMatrix, Data.BoolValue useDistanceMatrix) { 97 return LambdaInterchangeMoveEvaluator.GetMoveQuality(individual as AlbaEncoding, this, 98 dueTimeArray, serviceTimeArray, readyTimeArray, demandArray, capacity, 99 coordinates, fleetUsageFactor, timeFactor, distanceFactor, 100 overloadPenalty, tardinessPenalty, distanceMatrix, useDistanceMatrix); 101 } 102 103 public void MakeMove(IRandom random, IVRPEncoding individual) { 104 LambdaInterchangeMoveMaker.Apply(individual as AlbaEncoding, this); 105 } 106 107 #endregion 85 108 } 86 109 }
Note: See TracChangeset
for help on using the changeset viewer.