Changeset 12286 for branches/LinearLinkage/HeuristicLab.Encodings.LinearLinkageEncoding/3.3/ShakingOperators
- Timestamp:
- 04/04/15 23:58:27 (10 years ago)
- Location:
- branches/LinearLinkage/HeuristicLab.Encodings.LinearLinkageEncoding/3.3/ShakingOperators
- Files:
-
- 1 deleted
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/LinearLinkage/HeuristicLab.Encodings.LinearLinkageEncoding/3.3/ShakingOperators/LLEShakingOperator.cs
r12285 r12286 34 34 /// A shaking operator for VNS. 35 35 /// </summary> 36 [Item(" Split Group Shaking Operator", "A shaking operator for VNS which uses split groupmanipulators to perform the shaking.")]36 [Item("LLE Shaking Operator", "A shaking operator for VNS which LLE manipulators to perform the shaking.")] 37 37 [StorableClass] 38 public class SplitGroupShakingOperator : ShakingOperator<ILinearLinkageManipulator>, IStochasticOperator, ILinearLinkageShakingOperator {38 public class LLEShakingOperator : ShakingOperator<ILinearLinkageManipulator>, IStochasticOperator, ILinearLinkageShakingOperator { 39 39 40 40 public ILookupParameter<IRandom> RandomParameter { … … 51 51 52 52 [StorableConstructor] 53 protected SplitGroupShakingOperator(bool deserializing) : base(deserializing) { }54 protected SplitGroupShakingOperator(SplitGroupShakingOperator original, Cloner cloner) : base(original, cloner) { }55 public SplitGroupShakingOperator()53 protected LLEShakingOperator(bool deserializing) : base(deserializing) { } 54 protected LLEShakingOperator(LLEShakingOperator original, Cloner cloner) : base(original, cloner) { } 55 public LLEShakingOperator() 56 56 : base() { 57 57 Parameters.Add(new LookupParameter<LinearLinkage>("LLE", "The encoding to shake.")); 58 58 Parameters.Add(new LookupParameter<IRandom>("Random", "The random number generator that will be used for stochastic shaking operators.")); 59 for (var i = 1; i < 6; i++) Operators.Add(new SplitGroupManipulator(i)); 59 for (var i = 1; i < 4; i++) { 60 Operators.Add(new MoveItemManipulator(i * 2)); 61 Operators.Add(new SwapItemManipulator(i * 2)); 62 Operators.Add(new SplitGroupManipulator(i * 2)); 63 Operators.Add(new MergeGroupManipulator(i * 2)); 64 } 60 65 } 61 66 62 67 public override IDeepCloneable Clone(Cloner cloner) { 63 return new SplitGroupShakingOperator(this, cloner);68 return new LLEShakingOperator(this, cloner); 64 69 } 65 70
Note: See TracChangeset
for help on using the changeset viewer.