- Timestamp:
- 12/28/10 01:44:33 (14 years ago)
- Location:
- branches/ParallelEngine/HeuristicLab.Encodings.BinaryVectorEncoding/3.3
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ParallelEngine/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/BinaryVectorCreator.cs
r5177 r5178 58 58 } 59 59 60 public sealed override IOperation Apply( IExecutionContext context) {60 public sealed override IOperation Apply() { 61 61 BinaryVectorParameter.ActualValue = Create(RandomParameter.ActualValue, LengthParameter.ActualValue); 62 return base.Apply( context);62 return base.Apply(); 63 63 } 64 64 -
branches/ParallelEngine/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/BinaryVectorCrossover.cs
r5177 r5178 59 59 } 60 60 61 public sealed override IOperation Apply( IExecutionContext context) {61 public sealed override IOperation Apply() { 62 62 ChildParameter.ActualValue = Cross(RandomParameter.ActualValue, ParentsParameter.ActualValue); 63 return base.Apply( context);63 return base.Apply(); 64 64 } 65 65 -
branches/ParallelEngine/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/BinaryVectorManipulator.cs
r5177 r5178 53 53 } 54 54 55 public sealed override IOperation Apply( IExecutionContext context) {55 public sealed override IOperation Apply() { 56 56 Manipulate(RandomParameter.ActualValue, BinaryVectorParameter.ActualValue); 57 return base.Apply( context);57 return base.Apply(); 58 58 } 59 59 -
branches/ParallelEngine/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Crossovers/MultiBinaryVectorCrossover.cs
r5177 r5178 90 90 } 91 91 92 public override IOperation Apply( IExecutionContext context) {92 public override IOperation Apply() { 93 93 if (Operators.Count == 0) throw new InvalidOperationException(Name + ": Please add at least one binary vector crossover to choose from."); 94 return base.Apply( context);94 return base.Apply(); 95 95 } 96 96 } -
branches/ParallelEngine/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Moves/OneBitflipMove/OneBitflipMoveGenerator.cs
r5177 r5178 54 54 } 55 55 56 public override IOperation Apply( IExecutionContext context) {56 public override IOperation Apply() { 57 57 BinaryVector v = BinaryVectorParameter.ActualValue; 58 58 OneBitflipMove[] moves = GenerateMoves(v); … … 63 63 } 64 64 CurrentScopeParameter.ActualValue.SubScopes.AddRange(moveScopes); 65 return base.Apply( context);65 return base.Apply(); 66 66 } 67 67 -
branches/ParallelEngine/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Moves/OneBitflipMove/OneBitflipMoveMaker.cs
r5177 r5178 63 63 } 64 64 65 public override IOperation Apply( IExecutionContext context) {65 public override IOperation Apply() { 66 66 OneBitflipMove move = OneBitflipMoveParameter.ActualValue; 67 67 BinaryVector binaryVector = BinaryVectorParameter.ActualValue; … … 73 73 quality.Value = moveQuality.Value; 74 74 75 return base.Apply( context);75 return base.Apply(); 76 76 } 77 77 } -
branches/ParallelEngine/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Moves/OneBitflipMove/OneBitflipMoveTabuChecker.cs
r5177 r5178 80 80 } 81 81 82 public override IOperation Apply( IExecutionContext context) {82 public override IOperation Apply() { 83 83 ItemList<IItem> tabuList = TabuListParameter.ActualValue; 84 84 OneBitflipMove move = OneBitflipMoveParameter.ActualValue; … … 101 101 } 102 102 MoveTabuParameter.ActualValue = new BoolValue(isTabu); 103 return base.Apply( context);103 return base.Apply(); 104 104 } 105 105 }
Note: See TracChangeset
for help on using the changeset viewer.