Changeset 14523 for trunk/sources/HeuristicLab.Algorithms.ParameterlessPopulationPyramid/3.3/ParameterlessPopulationPyramid.cs
- Timestamp:
- 12/22/16 15:47:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.ParameterlessPopulationPyramid/3.3/ParameterlessPopulationPyramid.cs
r14517 r14523 56 56 57 57 // Tracks all solutions in Pyramid for quick membership checks 58 private HashSet<BinaryVector> seen = new HashSet<BinaryVector>(new EnumerableBoolEqualityComparer());58 private readonly HashSet<BinaryVector> seen = new HashSet<BinaryVector>(new EnumerableBoolEqualityComparer()); 59 59 60 60 #region ParameterNames … … 153 153 #endregion 154 154 155 public override bool SupportsPause { get { return true; } } 156 155 157 [StorableConstructor] 156 158 protected ParameterlessPopulationPyramid(bool deserializing) : base(deserializing) { } … … 165 167 166 168 public ParameterlessPopulationPyramid() { 167 pausable = true;168 169 Parameters.Add(new FixedValueParameter<IntValue>(MaximumIterationsParameterName, "", new IntValue(Int32.MaxValue))); 169 170 Parameters.Add(new FixedValueParameter<IntValue>(MaximumEvaluationsParameterName, "", new IntValue(Int32.MaxValue))); … … 171 172 Parameters.Add(new FixedValueParameter<IntValue>(SeedParameterName, "The random seed used to initialize the new pseudo random number generator.", new IntValue(0))); 172 173 Parameters.Add(new FixedValueParameter<BoolValue>(SetSeedRandomlyParameterName, "True if the random seed should be set to a random value, otherwise false.", new BoolValue(true))); 173 }174 175 [StorableHook(HookType.AfterDeserialization)]176 private void AfterDeserialization() {177 // BackwardsCompatibility3.3178 #region Backwards compatible code, remove with 3.4179 pausable = true;180 #endregion181 174 } 182 175
Note: See TracChangeset
for help on using the changeset viewer.