Changeset 5867 for branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Alba/Moves/ThreeOpt
- Timestamp:
- 03/29/11 15:40:01 (14 years ago)
- Location:
- branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Alba/Moves/ThreeOpt
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Alba/Moves/ThreeOpt/AlbaStochasticTranslocationSingleMoveGenerator.cs
r5130 r5867 34 34 [Item("AlbaStochasticTranslocationSingleMoveGenerator", "An operator which generates a single translocation move for 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.")] 35 35 [StorableClass] 36 public sealed class AlbaStochasticTranslocationSingleMoveGenerator : AlbaMoveGenerator, IAlbaTranslocationMoveOperator , IMultiVRPMoveGenerator{36 public sealed class AlbaStochasticTranslocationSingleMoveGenerator : AlbaMoveGenerator, IAlbaTranslocationMoveOperator { 37 37 [Storable] 38 38 private TranslocationMoveGenerator generator = new StochasticTranslocationSingleMoveGenerator(); … … 80 80 generator.PermutationParameter.ActualName = VRPToursParameter.ActualName; 81 81 IAtomicOperation op = this.ExecutionContext.CreateChildOperation(generator); 82 op.Operator.Execute((IExecutionContext)op );82 op.Operator.Execute((IExecutionContext)op, CancellationToken); 83 83 84 84 foreach (IScope scope in this.ExecutionContext.Scope.SubScopes) { -
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Alba/Moves/ThreeOpt/AlbaTranslocationMoveGenerator.cs
r4752 r5867 101 101 PermutationMoveOperatorParameter.PermutationParameter.ActualName = VRPToursParameter.ActualName; 102 102 IAtomicOperation op = this.ExecutionContext.CreateChildOperation(PermutationMoveOperatorParameter); 103 op.Operator.Execute((IExecutionContext)op );103 op.Operator.Execute((IExecutionContext)op, CancellationToken); 104 104 105 105 return next; -
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Alba/Moves/ThreeOpt/AlbaTranslocationMoveHardTabuCriterion.cs
r5130 r5867 78 78 private AlbaTranslocationMoveHardTabuCriterion(AlbaTranslocationMoveHardTabuCriterion original, Cloner cloner) 79 79 : base(original, cloner) { 80 tabuChecker = cloner.Clone(original.tabuChecker); 80 81 } 81 82 … … 87 88 PermutationMoveOperatorParameter.PermutationParameter.ActualName = VRPToursParameter.ActualName; 88 89 IAtomicOperation op = this.ExecutionContext.CreateChildOperation(PermutationMoveOperatorParameter); 89 op.Operator.Execute((IExecutionContext)op );90 op.Operator.Execute((IExecutionContext)op, CancellationToken); 90 91 91 92 return next; -
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Alba/Moves/ThreeOpt/AlbaTranslocationMoveMaker.cs
r5130 r5867 61 61 private AlbaTranslocationMoveMaker(AlbaTranslocationMoveMaker original, Cloner cloner) 62 62 : base(original, cloner) { 63 moveMaker = cloner.Clone(original.moveMaker); 63 64 } 64 65 … … 71 72 moveMaker.PermutationParameter.ActualName = VRPToursParameter.ActualName; 72 73 IAtomicOperation op = this.ExecutionContext.CreateChildOperation(moveMaker); 73 op.Operator.Execute((IExecutionContext)op );74 op.Operator.Execute((IExecutionContext)op, CancellationToken); 74 75 } 75 76 } -
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Alba/Moves/ThreeOpt/AlbaTranslocationMoveSoftTabuCriterion.cs
r5130 r5867 78 78 private AlbaTranslocationMoveSoftTabuCriterion(AlbaTranslocationMoveSoftTabuCriterion original, Cloner cloner) 79 79 : base(original, cloner) { 80 tabuChecker = cloner.Clone(original.tabuChecker); 80 81 } 81 82 … … 87 88 PermutationMoveOperatorParameter.PermutationParameter.ActualName = VRPToursParameter.ActualName; 88 89 IAtomicOperation op = this.ExecutionContext.CreateChildOperation(PermutationMoveOperatorParameter); 89 op.Operator.Execute((IExecutionContext)op );90 op.Operator.Execute((IExecutionContext)op, CancellationToken); 90 91 91 92 return next; -
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Alba/Moves/ThreeOpt/AlbaTranslocationMoveTabuMaker.cs
r5130 r5867 78 78 private AlbaTranslocationMoveTabuMaker(AlbaTranslocationMoveTabuMaker original, Cloner cloner) 79 79 : base(original, cloner) { 80 moveTabuMaker = cloner.Clone(original.moveTabuMaker); 80 81 } 81 82 … … 87 88 PermutationMoveOperatorParameter.PermutationParameter.ActualName = VRPToursParameter.ActualName; 88 89 IAtomicOperation op = this.ExecutionContext.CreateChildOperation(PermutationMoveOperatorParameter); 89 op.Operator.Execute((IExecutionContext)op );90 op.Operator.Execute((IExecutionContext)op, CancellationToken); 90 91 91 92 return next;
Note: See TracChangeset
for help on using the changeset viewer.