Changeset 9591 for trunk/sources/HeuristicLab.Algorithms.RAPGA/3.3
- Timestamp:
- 06/05/13 15:28:06 (11 years ago)
- Location:
- trunk/sources/HeuristicLab.Algorithms.RAPGA/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.RAPGA/3.3/RAPGA.cs
r9569 r9591 200 200 [StorableHook(HookType.AfterDeserialization)] 201 201 private void AfterDeserialization() { 202 #region Backwards compatible code, remove with 3.4 202 203 if (!Parameters.ContainsKey("ReevaluateElites")) { 203 204 Parameters.Add(new FixedValueParameter<BoolValue>("ReevaluateElites", "Flag to determine if elite individuals should be reevaluated (i.e., if stochastic fitness functions are used.)", (BoolValue)new BoolValue(false).AsReadOnly()) { Hidden = true }); 204 205 } 206 #endregion 205 207 Initialize(); 206 208 } -
trunk/sources/HeuristicLab.Algorithms.RAPGA/3.3/RAPGAMainLoop.cs
r9569 r9591 119 119 public override IDeepCloneable Clone(Cloner cloner) { 120 120 return new RAPGAMainLoop(this, cloner); 121 } 122 123 [StorableHook(HookType.AfterDeserialization)] 124 private void AfterDeserialization() { 125 #region Backwards compatible code, remove with 3.4 126 if (!Parameters.ContainsKey("ReevaluateElites")) { 127 Parameters.Add(new ValueLookupParameter<BoolValue>("ReevaluateElites", "Flag to determine if elite individuals should be reevaluated (i.e., if stochastic fitness functions are used.)")); 128 } 129 #endregion 121 130 } 122 131
Note: See TracChangeset
for help on using the changeset viewer.