Changeset 3232 for trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Moves/ThreeOpt/TranslocationMoveMaker.cs
- Timestamp:
- 03/29/10 18:49:55 (14 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Moves/ThreeOpt/TranslocationMoveMaker.cs
r3231 r3232 29 29 30 30 namespace HeuristicLab.Encodings.PermutationEncoding { 31 [Item("T hreeOptMoveMaker", "Peforms a 3-opt moveon a given permutation and updates the quality.")]31 [Item("TranslocationMoveMaker", "Peforms a translocation or insertion move (3-opt) on a given permutation and updates the quality.")] 32 32 [StorableClass] 33 public class T hreeOptMoveMaker : SingleSuccessorOperator, IThreeOptPermutationMoveOperator, IMoveMaker {33 public class TranslocationMoveMaker : SingleSuccessorOperator, IPermutationTranslocationMoveOperator, IMoveMaker { 34 34 public override bool CanChangeName { 35 35 get { return false; } … … 41 41 get { return (ILookupParameter<DoubleValue>)Parameters["MoveQuality"]; } 42 42 } 43 public ILookupParameter<T hreeOptMove> ThreeOptMoveParameter {44 get { return (ILookupParameter<T hreeOptMove>)Parameters["ThreeOptMove"]; }43 public ILookupParameter<TranslocationMove> TranslocationMoveParameter { 44 get { return (ILookupParameter<TranslocationMove>)Parameters["TranslocationMove"]; } 45 45 } 46 46 public ILookupParameter<Permutation> PermutationParameter { … … 48 48 } 49 49 50 public T hreeOptMoveMaker()50 public TranslocationMoveMaker() 51 51 : base() { 52 52 Parameters.Add(new LookupParameter<DoubleValue>("Quality", "The quality of the solution.")); 53 Parameters.Add(new LookupParameter<T hreeOptMove>("ThreeOptMove", "The move to evaluate."));53 Parameters.Add(new LookupParameter<TranslocationMove>("TranslocationMove", "The move to evaluate.")); 54 54 Parameters.Add(new LookupParameter<DoubleValue>("MoveQuality", "The relative quality of the move.")); 55 55 Parameters.Add(new LookupParameter<Permutation>("Permutation", "The solution as permutation.")); … … 57 57 58 58 public override IOperation Apply() { 59 T hreeOptMove move = ThreeOptMoveParameter.ActualValue;59 TranslocationMove move = TranslocationMoveParameter.ActualValue; 60 60 Permutation permutation = PermutationParameter.ActualValue; 61 61 DoubleValue moveQuality = MoveQualityParameter.ActualValue;
Note: See TracChangeset
for help on using the changeset viewer.