Changeset 9591
- Timestamp:
- 06/05/13 15:28:06 (12 years ago)
- Location:
- trunk/sources
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.EvolutionStrategy/3.3/EvolutionStrategyMainLoop.cs
r9569 r9591 111 111 : base() { 112 112 Initialize(); 113 } 114 115 [StorableHook(HookType.AfterDeserialization)] 116 private void AfterDeserialization() { 117 #region Backwards compatible code, remove with 3.4 118 if (!Parameters.ContainsKey("ReevaluateElites")) { 119 Parameters.Add(new ValueLookupParameter<BoolValue>("ReevaluateElites", "Flag to determine if elite individuals should be reevaluated (i.e., if stochastic fitness functions are used.)")); 120 } 121 #endregion 113 122 } 114 123 -
trunk/sources/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/GeneticAlgorithm.cs
r9554 r9591 216 216 [StorableHook(HookType.AfterDeserialization)] 217 217 private void AfterDeserialization() { 218 #region Backwards compatible code, remove with 3.4 218 219 if (!Parameters.ContainsKey("ReevaluateElites")) { 219 220 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 }); 220 221 } 222 #endregion 223 221 224 Initialize(); 222 225 } 226 227 223 228 224 229 private GeneticAlgorithm(GeneticAlgorithm original, Cloner cloner) -
trunk/sources/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/GeneticAlgorithmMainLoop.cs
r9555 r9591 245 245 [StorableHook(HookType.AfterDeserialization)] 246 246 private void AfterDeserialization() { 247 #region Backwards compatible code, remove with 3.4 247 248 if (!Parameters.ContainsKey("ReevaluateElites")) { 248 249 Parameters.Add(new ValueLookupParameter<BoolValue>("ReevaluateElites", "Flag to determine if elite individuals should be reevaluated (i.e., if stochastic fitness functions are used.)")); 249 250 } 251 #endregion 250 252 } 251 253 -
trunk/sources/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/IslandGeneticAlgorithm.cs
r9569 r9591 206 206 [StorableHook(HookType.AfterDeserialization)] 207 207 private void AfterDeserialization() { 208 #region Backwards compatible code, remove with 3.4 208 209 if (!Parameters.ContainsKey("ReevaluateElites")) { 209 210 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 }); 210 211 } 212 #endregion 213 211 214 Initialize(); 212 215 } -
trunk/sources/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/IslandGeneticAlgorithmMainLoop.cs
r9569 r9591 381 381 [StorableHook(HookType.AfterDeserialization)] 382 382 private void AfterDeserialization() { 383 #region Backwards compatible code, remove with 3.4 383 384 if (!Parameters.ContainsKey("ReevaluateElites")) { 384 385 Parameters.Add(new ValueLookupParameter<BoolValue>("ReevaluateElites", "Flag to determine if elite individuals should be reevaluated (i.e., if stochastic fitness functions are used.)")); 385 386 } 387 #endregion 386 388 } 387 389 -
trunk/sources/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/IslandOffspringSelectionGeneticAlgorithmMainLoop.cs
r9569 r9591 421 421 [StorableHook(HookType.AfterDeserialization)] 422 422 private void AfterDeserialization() { 423 #region Backwards compatible code, remove with 3.4 423 424 if (!Parameters.ContainsKey("ReevaluateElites")) { 424 425 Parameters.Add(new ValueLookupParameter<BoolValue>("ReevaluateElites", "Flag to determine if elite individuals should be reevaluated (i.e., if stochastic fitness functions are used.)")); 425 426 } 427 #endregion 426 428 } 427 429 -
trunk/sources/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/OffspringSelectionGeneticAlgorithmMainLoop.cs
r9569 r9591 113 113 [StorableHook(HookType.AfterDeserialization)] 114 114 private void AfterDeserialization() { 115 #region Backwards compatible code, remove with 3.4 115 116 if (!Parameters.ContainsKey("ReevaluateElites")) { 116 117 Parameters.Add(new ValueLookupParameter<BoolValue>("ReevaluateElites", "Flag to determine if elite individuals should be reevaluated (i.e., if stochastic fitness functions are used.)")); 117 118 } 119 #endregion 118 120 } 119 121 -
trunk/sources/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/OffspringSelectionGeneticAlgorithmMainOperator.cs
r9569 r9591 105 105 [StorableHook(HookType.AfterDeserialization)] 106 106 private void AfterDeserialization() { 107 #region Backwards compatible code, remove with 3.4 107 108 if (!Parameters.ContainsKey("ReevaluateElites")) { 108 109 Parameters.Add(new ValueLookupParameter<BoolValue>("ReevaluateElites", "Flag to determine if elite individuals should be reevaluated (i.e., if stochastic fitness functions are used.)")); 109 110 } 111 #endregion 110 112 } 111 113 -
trunk/sources/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/SASEGASAMainLoop.cs
r9569 r9591 431 431 [StorableHook(HookType.AfterDeserialization)] 432 432 private void AfterDeserialization() { 433 #region Backwards compatible code, remove with 3.4 433 434 if (!Parameters.ContainsKey("ReevaluateElites")) { 434 435 Parameters.Add(new ValueLookupParameter<BoolValue>("ReevaluateElites", "Flag to determine if elite individuals should be reevaluated (i.e., if stochastic fitness functions are used.)")); 435 436 } 437 #endregion 436 438 } 437 439 -
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.