- Timestamp:
- 08/09/10 18:08:14 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba/Moves
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba/Moves/AlbaMoveMaker.cs
r4177 r4179 61 61 } 62 62 63 [StorableConstructor] 64 protected AlbaMoveMaker(bool deserializing) : base(deserializing) { } 63 65 64 66 public AlbaMoveMaker() -
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba/Moves/AlbaMoveOperator.cs
r4177 r4179 33 33 protected abstract IPermutationMoveOperator PermutationMoveOperatorParameter { get; set; } 34 34 35 [StorableConstructor] 36 protected AlbaMoveOperator(bool deserializing) : base(deserializing) { } 37 38 public AlbaMoveOperator() : base() 39 { 40 AlbaEncoding.RemoveUnusedParameters(Parameters); 41 } 42 35 43 public override IOperation Apply() { 36 IVRPEncoding solution = VRP SolutionParameter.ActualValue;44 IVRPEncoding solution = VRPToursParameter.ActualValue; 37 45 if (!(solution is AlbaEncoding)) { 38 VRP SolutionParameter.ActualValue = AlbaEncoding.ConvertFrom(solution, VehiclesParameter.ActualValue.Value);46 VRPToursParameter.ActualValue = AlbaEncoding.ConvertFrom(solution, VehiclesParameter.ActualValue.Value); 39 47 } 40 48 41 PermutationMoveOperatorParameter.PermutationParameter.ActualName = VRP SolutionParameter.ActualName;49 PermutationMoveOperatorParameter.PermutationParameter.ActualName = VRPToursParameter.ActualName; 42 50 IAtomicOperation op = this.ExecutionContext.CreateChildOperation(PermutationMoveOperatorParameter); 43 51 op.Operator.Execute((IExecutionContext)op); -
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba/Moves/ThreeOpt/AlbaTranslocationMoveEvaluator.cs
r4177 r4179 35 35 } 36 36 37 [StorableConstructor] 38 private AlbaTranslocationMoveEvaluator(bool deserializing) : base(deserializing) { } 39 37 40 public AlbaTranslocationMoveEvaluator() 38 41 : base() { … … 43 46 TranslocationMove move = TranslocationMoveParameter.ActualValue; 44 47 //perform move 45 AlbaEncoding newSolution = VRP SolutionParameter.ActualValue.Clone() as AlbaEncoding;48 AlbaEncoding newSolution = VRPToursParameter.ActualValue.Clone() as AlbaEncoding; 46 49 TranslocationManipulator.Apply(newSolution, move.Index1, move.Index2, move.Index3); 47 50 -
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba/Moves/ThreeOpt/AlbaTranslocationMoveGenerator.cs
r4177 r4179 68 68 } 69 69 70 [StorableConstructor] 71 private AlbaTranslocationMoveGenerator(bool deserializing) : base(deserializing) { } 72 70 73 public AlbaTranslocationMoveGenerator() 71 74 : base() { … … 80 83 IOperation successor = base.Apply(); 81 84 82 Permutation permutation = VRP SolutionParameter.ActualValue as Permutation;85 Permutation permutation = VRPToursParameter.ActualValue as Permutation; 83 86 string moveName = TranslocationMoveGeneratorParameter.ActualValue.TranslocationMoveParameter.Name; 84 87 -
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba/Moves/ThreeOpt/AlbaTranslocationMoveHardTabuCriterion.cs
r4177 r4179 56 56 } 57 57 58 [StorableConstructor] 59 private AlbaTranslocationMoveHardTabuCriterion(bool deserializing) : base(deserializing) { } 60 58 61 public AlbaTranslocationMoveHardTabuCriterion() 59 62 : base() { -
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba/Moves/ThreeOpt/AlbaTranslocationMoveMaker.cs
r4177 r4179 52 52 } 53 53 54 [StorableConstructor] 55 private AlbaTranslocationMoveMaker(bool deserializing) : base(deserializing) { } 56 54 57 public AlbaTranslocationMoveMaker() 55 58 : base() { -
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba/Moves/ThreeOpt/AlbaTranslocationMoveSoftTabuCriterion.cs
r4177 r4179 56 56 } 57 57 58 [StorableConstructor] 59 private AlbaTranslocationMoveSoftTabuCriterion(bool deserializing) : base(deserializing) { } 60 58 61 public AlbaTranslocationMoveSoftTabuCriterion() 59 62 : base() { -
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba/Moves/ThreeOpt/AlbaTranslocationMoveTabuMaker.cs
r4177 r4179 56 56 } 57 57 58 [StorableConstructor] 59 private AlbaTranslocationMoveTabuMaker(bool deserializing) : base(deserializing) { } 60 58 61 public AlbaTranslocationMoveTabuMaker() 59 62 : base() {
Note: See TracChangeset
for help on using the changeset viewer.