- Timestamp:
- 12/26/10 03:51:30 (14 years ago)
- Location:
- branches/ParallelEngine/HeuristicLab.Encodings.PermutationEncoding/3.3
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ParallelEngine/HeuristicLab.Encodings.PermutationEncoding/3.3/Creators/RandomPermutationCreator.cs
r4722 r5177 72 72 } 73 73 74 public override IOperation Apply( ) {74 public override IOperation Apply(IExecutionContext context) { 75 75 PermutationParameter.ActualValue = new Permutation(PermutationType, LengthParameter.ActualValue.Value, RandomParameter.ActualValue); 76 return base.Apply( );76 return base.Apply(context); 77 77 } 78 78 } -
branches/ParallelEngine/HeuristicLab.Encodings.PermutationEncoding/3.3/Crossovers/MultiPermutationCrossover.cs
r4722 r5177 90 90 } 91 91 92 public override IOperation Apply( ) {92 public override IOperation Apply(IExecutionContext context) { 93 93 if (Operators.Count == 0) throw new InvalidOperationException(Name + ": Please add at least one permutation crossover to choose from."); 94 return base.Apply( );94 return base.Apply(context); 95 95 } 96 96 } -
branches/ParallelEngine/HeuristicLab.Encodings.PermutationEncoding/3.3/Manipulators/MultiPermutationManipulator.cs
r4722 r5177 82 82 } 83 83 84 public override IOperation Apply( ) {84 public override IOperation Apply(IExecutionContext context) { 85 85 if (Operators.Count == 0) throw new InvalidOperationException(Name + ": Please add at least one permutation manipulator to choose from."); 86 return base.Apply( );86 return base.Apply(context); 87 87 } 88 88 } -
branches/ParallelEngine/HeuristicLab.Encodings.PermutationEncoding/3.3/Moves/ThreeOpt/TranslocationMoveGenerator.cs
r4722 r5177 54 54 } 55 55 56 public override IOperation Apply( ) {56 public override IOperation Apply(IExecutionContext context) { 57 57 Permutation p = PermutationParameter.ActualValue; 58 58 TranslocationMove[] moves = GenerateMoves(p); … … 63 63 } 64 64 CurrentScopeParameter.ActualValue.SubScopes.AddRange(moveScopes); 65 return base.Apply( );65 return base.Apply(context); 66 66 } 67 67 -
branches/ParallelEngine/HeuristicLab.Encodings.PermutationEncoding/3.3/Moves/ThreeOpt/TranslocationMoveHardTabuCriterion.cs
r4722 r5177 83 83 } 84 84 85 public override IOperation Apply( ) {85 public override IOperation Apply(IExecutionContext context) { 86 86 ItemList<IItem> tabuList = TabuListParameter.ActualValue; 87 87 TranslocationMove move = TranslocationMoveParameter.ActualValue; … … 177 177 } 178 178 MoveTabuParameter.ActualValue = new BoolValue(isTabu); 179 return base.Apply( );179 return base.Apply(context); 180 180 } 181 181 } -
branches/ParallelEngine/HeuristicLab.Encodings.PermutationEncoding/3.3/Moves/ThreeOpt/TranslocationMoveMaker.cs
r4722 r5177 63 63 } 64 64 65 public override IOperation Apply( ) {65 public override IOperation Apply(IExecutionContext context) { 66 66 TranslocationMove move = TranslocationMoveParameter.ActualValue; 67 67 Permutation permutation = PermutationParameter.ActualValue; … … 72 72 quality.Value = moveQuality.Value; 73 73 74 return base.Apply( );74 return base.Apply(context); 75 75 } 76 76 } -
branches/ParallelEngine/HeuristicLab.Encodings.PermutationEncoding/3.3/Moves/ThreeOpt/TranslocationMoveSoftTabuCriterion.cs
r4722 r5177 83 83 } 84 84 85 public override IOperation Apply( ) {85 public override IOperation Apply(IExecutionContext context) { 86 86 ItemList<IItem> tabuList = TabuListParameter.ActualValue; 87 87 TranslocationMove move = TranslocationMoveParameter.ActualValue; … … 170 170 } 171 171 MoveTabuParameter.ActualValue = new BoolValue(isTabu); 172 return base.Apply( );172 return base.Apply(context); 173 173 } 174 174 } -
branches/ParallelEngine/HeuristicLab.Encodings.PermutationEncoding/3.3/Moves/TwoOpt/InversionMoveGenerator.cs
r4722 r5177 54 54 } 55 55 56 public override IOperation Apply( ) {56 public override IOperation Apply(IExecutionContext context) { 57 57 Permutation p = PermutationParameter.ActualValue; 58 58 InversionMove[] moves = GenerateMoves(p); … … 63 63 } 64 64 CurrentScopeParameter.ActualValue.SubScopes.AddRange(moveScopes); 65 return base.Apply( );65 return base.Apply(context); 66 66 } 67 67 -
branches/ParallelEngine/HeuristicLab.Encodings.PermutationEncoding/3.3/Moves/TwoOpt/InversionMoveHardTabuCriterion.cs
r4722 r5177 84 84 } 85 85 86 public override IOperation Apply( ) {86 public override IOperation Apply(IExecutionContext context) { 87 87 ItemList<IItem> tabuList = TabuListParameter.ActualValue; 88 88 InversionMove move = InversionMoveParameter.ActualValue; … … 156 156 } 157 157 MoveTabuParameter.ActualValue = new BoolValue(isTabu); 158 return base.Apply( );158 return base.Apply(context); 159 159 } 160 160 } -
branches/ParallelEngine/HeuristicLab.Encodings.PermutationEncoding/3.3/Moves/TwoOpt/InversionMoveMaker.cs
r4722 r5177 63 63 } 64 64 65 public override IOperation Apply( ) {65 public override IOperation Apply(IExecutionContext context) { 66 66 InversionMove move = InversionMoveParameter.ActualValue; 67 67 Permutation permutation = PermutationParameter.ActualValue; … … 72 72 quality.Value = moveQuality.Value; 73 73 74 return base.Apply( );74 return base.Apply(context); 75 75 } 76 76 } -
branches/ParallelEngine/HeuristicLab.Encodings.PermutationEncoding/3.3/Moves/TwoOpt/InversionMoveSoftTabuCriterion.cs
r4722 r5177 84 84 } 85 85 86 public override IOperation Apply( ) {86 public override IOperation Apply(IExecutionContext context) { 87 87 ItemList<IItem> tabuList = TabuListParameter.ActualValue; 88 88 InversionMove move = InversionMoveParameter.ActualValue; … … 157 157 } 158 158 MoveTabuParameter.ActualValue = new BoolValue(isTabu); 159 return base.Apply( );159 return base.Apply(context); 160 160 } 161 161 } -
branches/ParallelEngine/HeuristicLab.Encodings.PermutationEncoding/3.3/PermutationCrossover.cs
r4722 r5177 60 60 } 61 61 62 public sealed override IOperation Apply( ) {62 public sealed override IOperation Apply(IExecutionContext context) { 63 63 ChildParameter.ActualValue = Cross(RandomParameter.ActualValue, ParentsParameter.ActualValue); 64 return base.Apply( );64 return base.Apply(context); 65 65 } 66 66 -
branches/ParallelEngine/HeuristicLab.Encodings.PermutationEncoding/3.3/PermutationManipulator.cs
r4722 r5177 54 54 } 55 55 56 public sealed override IOperation Apply( ) {56 public sealed override IOperation Apply(IExecutionContext context) { 57 57 Manipulate(RandomParameter.ActualValue, PermutationParameter.ActualValue); 58 return base.Apply( );58 return base.Apply(context); 59 59 } 60 60
Note: See TracChangeset
for help on using the changeset viewer.