Changeset 10507 for stable/HeuristicLab.Encodings.RealVectorEncoding
- Timestamp:
- 02/25/14 14:00:47 (10 years ago)
- Location:
- stable
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 10149,10231,10261,10291-10292,10295,10298
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Encodings.RealVectorEncoding/3.3/Crossovers/MultiRealVectorCrossover.cs
r9456 r10507 97 97 } 98 98 99 public override IOperation Apply() {99 public override IOperation InstrumentedApply() { 100 100 if (Operators.Count == 0) throw new InvalidOperationException(Name + ": Please add at least one real vector crossover to choose from."); 101 return base. Apply();101 return base.InstrumentedApply(); 102 102 } 103 103 } -
stable/HeuristicLab.Encodings.RealVectorEncoding/3.3/Manipulators/MultiRealVectorManipulator.cs
r9456 r10507 88 88 } 89 89 90 public override IOperation Apply() {90 public override IOperation InstrumentedApply() { 91 91 if (Operators.Count == 0) throw new InvalidOperationException(Name + ": Please add at least one real vector manipulator to choose from."); 92 return base. Apply();92 return base.InstrumentedApply(); 93 93 } 94 94 } -
stable/HeuristicLab.Encodings.RealVectorEncoding/3.3/RealVectorCreator.cs
r9456 r10507 34 34 [Item("RealVectorCreator", "A base class for operators creating real-valued vectors.")] 35 35 [StorableClass] 36 public abstract class RealVectorCreator : SingleSuccessorOperator, IRealVectorCreator, IStochasticOperator {36 public abstract class RealVectorCreator : InstrumentedOperator, IRealVectorCreator, IStochasticOperator { 37 37 public override bool CanChangeName { 38 38 get { return false; } … … 63 63 } 64 64 65 public sealed override IOperation Apply() {65 public sealed override IOperation InstrumentedApply() { 66 66 RealVectorParameter.ActualValue = Create(RandomParameter.ActualValue, LengthParameter.ActualValue, BoundsParameter.ActualValue); 67 return base. Apply();67 return base.InstrumentedApply(); 68 68 } 69 69 -
stable/HeuristicLab.Encodings.RealVectorEncoding/3.3/RealVectorCrossover.cs
r9456 r10507 35 35 [Item("RealVectorCrossover", "A base class for operators that perform a crossover of real-valued vectors.")] 36 36 [StorableClass] 37 public abstract class RealVectorCrossover : SingleSuccessorOperator, IRealVectorCrossover, IStochasticOperator {37 public abstract class RealVectorCrossover : InstrumentedOperator, IRealVectorCrossover, IStochasticOperator { 38 38 public override bool CanChangeName { 39 39 get { return false; } … … 96 96 } 97 97 98 public sealed override IOperation Apply() {98 public sealed override IOperation InstrumentedApply() { 99 99 RealVector result = Cross(RandomParameter.ActualValue, ParentsParameter.ActualValue); 100 100 ChildParameter.ActualValue = result; 101 101 102 IOperation successor = base. Apply();102 IOperation successor = base.InstrumentedApply(); 103 103 if (BoundsChecker != null) { 104 104 IOperation checkerOperation = ExecutionContext.CreateChildOperation(BoundsChecker); -
stable/HeuristicLab.Encodings.RealVectorEncoding/3.3/RealVectorManipulator.cs
r9456 r10507 35 35 [Item("RealVectorManipulator", "A base class for operators that manipulate real-valued vectors.")] 36 36 [StorableClass] 37 public abstract class RealVectorManipulator : SingleSuccessorOperator, IRealVectorManipulator, IStochasticOperator {37 public abstract class RealVectorManipulator : InstrumentedOperator, IRealVectorManipulator, IStochasticOperator { 38 38 public override bool CanChangeName { 39 39 get { return false; } … … 90 90 } 91 91 92 public sealed override IOperation Apply() {92 public sealed override IOperation InstrumentedApply() { 93 93 RealVector vector = RealVectorParameter.ActualValue; 94 94 Manipulate(RandomParameter.ActualValue, vector); 95 95 96 IOperation successor = base. Apply();96 IOperation successor = base.InstrumentedApply(); 97 97 if (BoundsChecker != null) { 98 98 IOperation checkerOperation = ExecutionContext.CreateChildOperation(BoundsChecker);
Note: See TracChangeset
for help on using the changeset viewer.