Changeset 10507 for stable/HeuristicLab.Encodings.PermutationEncoding
- Timestamp:
- 02/25/14 14:00:47 (11 years ago)
- Location:
- stable
- Files:
-
- 7 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.PermutationEncoding
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Encodings.PermutationEncoding (added) merged: 10291,10295
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Encodings.PermutationEncoding/3.3/Creators/RandomPermutationCreator.cs
r9456 r10507 34 34 [Item("RandomPermutationCreator", "An operator which creates a new random permutation of integer values.")] 35 35 [StorableClass] 36 public sealed class RandomPermutationCreator : SingleSuccessorOperator, IPermutationCreator, IStochasticOperator {36 public sealed class RandomPermutationCreator : InstrumentedOperator, IPermutationCreator, IStochasticOperator { 37 37 public override bool CanChangeName { 38 38 get { return false; } … … 72 72 } 73 73 74 public override IOperation Apply() {74 public override IOperation InstrumentedApply() { 75 75 PermutationParameter.ActualValue = new Permutation(PermutationType, LengthParameter.ActualValue.Value, RandomParameter.ActualValue); 76 return base. Apply();76 return base.InstrumentedApply(); 77 77 } 78 78 } -
stable/HeuristicLab.Encodings.PermutationEncoding/3.3/Crossovers/MultiPermutationCrossover.cs
r9456 r10507 90 90 } 91 91 92 public override IOperation Apply() {92 public override IOperation InstrumentedApply() { 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.InstrumentedApply(); 95 95 } 96 96 } -
stable/HeuristicLab.Encodings.PermutationEncoding/3.3/Manipulators/MultiPermutationManipulator.cs
r9456 r10507 82 82 } 83 83 84 public override IOperation Apply() {84 public override IOperation InstrumentedApply() { 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.InstrumentedApply(); 87 87 } 88 88 } -
stable/HeuristicLab.Encodings.PermutationEncoding/3.3/PermutationCrossover.cs
r9456 r10507 33 33 [Item("PermutationCrossover", "A base class for permutation crossover operators.")] 34 34 [StorableClass] 35 public abstract class PermutationCrossover : SingleSuccessorOperator, IPermutationCrossover, IStochasticOperator {35 public abstract class PermutationCrossover : InstrumentedOperator, IPermutationCrossover, IStochasticOperator { 36 36 public override bool CanChangeName { 37 37 get { return false; } … … 60 60 } 61 61 62 public sealed override IOperation Apply() {62 public sealed override IOperation InstrumentedApply() { 63 63 ChildParameter.ActualValue = Cross(RandomParameter.ActualValue, ParentsParameter.ActualValue); 64 return base. Apply();64 return base.InstrumentedApply(); 65 65 } 66 66 -
stable/HeuristicLab.Encodings.PermutationEncoding/3.3/PermutationManipulator.cs
r9456 r10507 33 33 [Item("PermutationManipulator", "A base class for permutation manipulation operators.")] 34 34 [StorableClass] 35 public abstract class PermutationManipulator : SingleSuccessorOperator, IPermutationManipulator, IStochasticOperator {35 public abstract class PermutationManipulator : InstrumentedOperator, IPermutationManipulator, IStochasticOperator { 36 36 public override bool CanChangeName { 37 37 get { return false; } … … 54 54 } 55 55 56 public sealed override IOperation Apply() {56 public sealed override IOperation InstrumentedApply() { 57 57 Manipulate(RandomParameter.ActualValue, PermutationParameter.ActualValue); 58 return base. Apply();58 return base.InstrumentedApply(); 59 59 } 60 60
Note: See TracChangeset
for help on using the changeset viewer.