Changeset 4722 for trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba/Moves/LambdaInterchange/AlbaLambdaInterchangeMoveMaker.cs
- Timestamp:
- 11/06/10 01:56:04 (14 years ago)
- Location:
- trunk/sources
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources
- Property svn:mergeinfo changed
/branches/CloningRefactoring (added) merged: 4656-4693,4696-4697,4711-4714,4718-4719
- Property svn:mergeinfo changed
-
trunk/sources/HeuristicLab.Problems.VehicleRouting
- Property svn:mergeinfo changed
/branches/CloningRefactoring/HeuristicLab.Problems.VehicleRouting (added) merged: 4686-4687,4689-4693,4696-4697
- Property svn:mergeinfo changed
-
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba/Moves/LambdaInterchange/AlbaLambdaInterchangeMoveMaker.cs
r4352 r4722 20 20 #endregion 21 21 22 using HeuristicLab.Common; 22 23 using HeuristicLab.Core; 23 24 using HeuristicLab.Data; 24 using HeuristicLab.Operators;25 25 using HeuristicLab.Optimization; 26 26 using HeuristicLab.Parameters; 27 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 28 using System.Collections.Generic;29 28 30 29 namespace HeuristicLab.Problems.VehicleRouting.Encodings.Alba { … … 46 45 47 46 [StorableConstructor] 48 private AlbaLambdaInterchangeMoveMaker(bool deserializing) : base(deserializing) { } 49 47 protected AlbaLambdaInterchangeMoveMaker(bool deserializing) : base(deserializing) { } 48 protected AlbaLambdaInterchangeMoveMaker(AlbaLambdaInterchangeMoveMaker original, Cloner cloner) 49 : base(original, cloner) { 50 } 50 51 public AlbaLambdaInterchangeMoveMaker() 51 52 : base() { … … 53 54 Parameters.Add(new LookupParameter<AlbaLambdaInterchangeMove>("AlbaLambdaInterchangeMove", "The move to make.")); 54 55 Parameters.Add(new LookupParameter<DoubleValue>("MoveQuality", "The relative quality of the move.")); 56 } 57 58 public override IDeepCloneable Clone(Cloner cloner) { 59 return new AlbaLambdaInterchangeMoveMaker(this, cloner); 55 60 } 56 61 … … 64 69 public override IOperation Apply() { 65 70 IOperation next = base.Apply(); 66 71 67 72 AlbaLambdaInterchangeMove move = LambdaInterchangeMoveParameter.ActualValue; 68 73 DoubleValue moveQuality = MoveQualityParameter.ActualValue; 69 74 DoubleValue quality = QualityParameter.ActualValue; 70 75 71 76 //perform move 72 77 VRPToursParameter.ActualValue = move.MakeMove();
Note: See TracChangeset
for help on using the changeset viewer.