Changeset 4346 for branches/VRP/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba/Moves/LambdaInterchange/AlbaLambdaInterchangeMove.cs
- Timestamp:
- 08/31/10 14:03:12 (14 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba/Moves/LambdaInterchange/AlbaLambdaInterchangeMove.cs
r4341 r4346 29 29 30 30 namespace HeuristicLab.Problems.VehicleRouting.Encodings.Alba { 31 [Item("InversionMove", "Item that describes a lambda move on a VRP representation. ")]31 [Item("InversionMove", "Item that describes a lambda move on a VRP representation. It is implemented as described in Alba, E. and Dorronsoro, B. (2004). Solving the Vehicle Routing Problem by Using Cellular Genetic Algorithms.")] 32 32 [StorableClass] 33 public class LambdaInterchangeMove: Item, IVRPMove {33 public class AlbaLambdaInterchangeMove: Item, IVRPMove { 34 34 [Storable] 35 35 public IVRPEncoding Individual { get; protected set; } … … 53 53 public int Length2 { get; protected set; } 54 54 55 public LambdaInterchangeMove(): base() {55 public AlbaLambdaInterchangeMove(): base() { 56 56 Tour1 = -1; 57 57 Position1 = -1; … … 65 65 } 66 66 67 public LambdaInterchangeMove(int tour1, int position1, int length1,67 public AlbaLambdaInterchangeMove(int tour1, int position1, int length1, 68 68 int tour2, int position2, int length2, AlbaEncoding permutation) { 69 69 Tour1 = tour1; … … 79 79 80 80 public override IDeepCloneable Clone(HeuristicLab.Common.Cloner cloner) { 81 LambdaInterchangeMove clone = newLambdaInterchangeMove();81 AlbaLambdaInterchangeMove clone = new AlbaLambdaInterchangeMove(); 82 82 83 83 clone.Tour1 = Tour1; … … 105 105 DoubleValue overloadPenalty, DoubleValue tardinessPenalty, 106 106 ILookupParameter<DoubleMatrix> distanceMatrix, Data.BoolValue useDistanceMatrix) { 107 return LambdaInterchangeMoveEvaluator.GetMoveQuality(Individual as AlbaEncoding, this, vehicles,107 return AlbaLambdaInterchangeMoveEvaluator.GetMoveQuality(Individual as AlbaEncoding, this, vehicles, 108 108 dueTimeArray, serviceTimeArray, readyTimeArray, demandArray, capacity, 109 109 coordinates, fleetUsageFactor, timeFactor, distanceFactor, … … 112 112 113 113 public IVRPEncoding MakeMove() { 114 LambdaInterchangeMoveMaker.Apply(Individual as AlbaEncoding, this);114 AlbaLambdaInterchangeMoveMaker.Apply(Individual as AlbaEncoding, this); 115 115 116 116 return Individual;
Note: See TracChangeset
for help on using the changeset viewer.