Changeset 9756 for branches/DataAnalysis.IslandAlgorithms
- Timestamp:
- 07/25/13 13:39:13 (11 years ago)
- Location:
- branches/DataAnalysis.IslandAlgorithms
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis.IslandAlgorithms/HeuristicLab.Algorithms.GeneticAlgorithm
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Algorithms.GeneticAlgorithm (added) merged: 9076,9456,9462,9553-9555,9569,9591-9592
- Property svn:mergeinfo changed
-
branches/DataAnalysis.IslandAlgorithms/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/GeneticAlgorithm.cs
r8351 r9756 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 79 79 get { return (ValueParameter<IntValue>)Parameters["Elites"]; } 80 80 } 81 private IFixedValueParameter<BoolValue> ReevaluateElitesParameter { 82 get { return (IFixedValueParameter<BoolValue>)Parameters["ReevaluateElites"]; } 83 } 81 84 private ValueParameter<MultiAnalyzer> AnalyzerParameter { 82 85 get { return (ValueParameter<MultiAnalyzer>)Parameters["Analyzer"]; } … … 119 122 get { return ElitesParameter.Value; } 120 123 set { ElitesParameter.Value = value; } 124 } 125 public bool ReevaluteElites { 126 get { return ReevaluateElitesParameter.Value.Value; } 127 set { ReevaluateElitesParameter.Value.Value = value; } 121 128 } 122 129 public MultiAnalyzer Analyzer { … … 151 158 Parameters.Add(new OptionalConstrainedValueParameter<IManipulator>("Mutator", "The operator used to mutate solutions.")); 152 159 Parameters.Add(new ValueParameter<IntValue>("Elites", "The numer of elite solutions which are kept in each generation.", new IntValue(1))); 160 Parameters.Add(new FixedValueParameter<BoolValue>("ReevaluateElites", "Flag to determine if elite individuals should be reevaluated (i.e., if stochastic fitness functions are used.)", new BoolValue(false)) { Hidden = true }); 153 161 Parameters.Add(new ValueParameter<MultiAnalyzer>("Analyzer", "The operator used to analyze each generation.", new MultiAnalyzer())); 154 162 Parameters.Add(new ValueParameter<IntValue>("MaximumGenerations", "The maximum number of generations which should be processed.", new IntValue(1000))); … … 182 190 mainLoop.CrossoverParameter.ActualName = CrossoverParameter.Name; 183 191 mainLoop.ElitesParameter.ActualName = ElitesParameter.Name; 192 mainLoop.ReevaluateElitesParameter.ActualName = ReevaluateElitesParameter.Name; 184 193 mainLoop.MaximumGenerationsParameter.ActualName = MaximumGenerationsParameter.Name; 185 194 mainLoop.MutatorParameter.ActualName = MutatorParameter.Name; … … 207 216 [StorableHook(HookType.AfterDeserialization)] 208 217 private void AfterDeserialization() { 218 // BackwardsCompatibility3.3 219 #region Backwards compatible code, remove with 3.4 220 if (!Parameters.ContainsKey("ReevaluateElites")) { 221 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 }); 222 } 223 #endregion 224 209 225 Initialize(); 210 226 } 227 228 211 229 212 230 private GeneticAlgorithm(GeneticAlgorithm original, Cloner cloner) -
branches/DataAnalysis.IslandAlgorithms/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/GeneticAlgorithmMainLoop.cs
r7259 r9756 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 63 63 public ValueLookupParameter<IntValue> ElitesParameter { 64 64 get { return (ValueLookupParameter<IntValue>)Parameters["Elites"]; } 65 } 66 public IValueLookupParameter<BoolValue> ReevaluateElitesParameter { 67 get { return (IValueLookupParameter<BoolValue>)Parameters["ReevaluateElites"]; } 65 68 } 66 69 public ValueLookupParameter<IntValue> MaximumGenerationsParameter { … … 112 115 Parameters.Add(new ValueLookupParameter<IOperator>("Evaluator", "The operator used to evaluate solutions. This operator is executed in parallel, if an engine is used which supports parallelization.")); 113 116 Parameters.Add(new ValueLookupParameter<IntValue>("Elites", "The numer of elite solutions which are kept in each generation.")); 117 Parameters.Add(new ValueLookupParameter<BoolValue>("ReevaluateElites", "Flag to determine if elite individuals should be reevaluated (i.e., if stochastic fitness functions are used.)")); 114 118 Parameters.Add(new ValueLookupParameter<IntValue>("MaximumGenerations", "The maximum number of generations which should be processed.")); 115 119 Parameters.Add(new ValueLookupParameter<VariableCollection>("Results", "The variable collection where results should be stored.")); … … 143 147 Placeholder analyzer2 = new Placeholder(); 144 148 ConditionalBranch conditionalBranch = new ConditionalBranch(); 149 ConditionalBranch reevaluateElitesBranch = new ConditionalBranch(); 145 150 146 151 variableCreator.CollectedValues.Add(new ValueParameter<IntValue>("Generations", new IntValue(0))); // Class GeneticAlgorithm expects this to be called Generations … … 193 198 194 199 conditionalBranch.ConditionParameter.ActualName = "Terminate"; 200 201 reevaluateElitesBranch.ConditionParameter.ActualName = "ReevaluateElites"; 202 reevaluateElitesBranch.Name = "Reevaluate elites ?"; 195 203 #endregion 196 204 … … 221 229 subScopesProcessor2.Successor = mergingReducer; 222 230 bestSelector.Successor = rightReducer; 223 rightReducer.Successor = null; 231 rightReducer.Successor = reevaluateElitesBranch; 232 reevaluateElitesBranch.TrueBranch = uniformSubScopesProcessor2; 233 reevaluateElitesBranch.FalseBranch = null; 234 reevaluateElitesBranch.Successor = null; 224 235 mergingReducer.Successor = intCounter; 225 236 intCounter.Successor = comparator; … … 232 243 } 233 244 245 [StorableHook(HookType.AfterDeserialization)] 246 private void AfterDeserialization() { 247 // BackwardsCompatibility3.3 248 #region Backwards compatible code, remove with 3.4 249 if (!Parameters.ContainsKey("ReevaluateElites")) { 250 Parameters.Add(new ValueLookupParameter<BoolValue>("ReevaluateElites", "Flag to determine if elite individuals should be reevaluated (i.e., if stochastic fitness functions are used.)")); 251 } 252 #endregion 253 } 254 234 255 public override IOperation Apply() { 235 256 if (CrossoverParameter.ActualValue == null) -
branches/DataAnalysis.IslandAlgorithms/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/IslandGeneticAlgorithm.cs
r9077 r9756 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 41 41 [Creatable("Algorithms")] 42 42 [StorableClass] 43 public class IslandGeneticAlgorithm : HeuristicOptimizationEngineAlgorithm, IStorableContent {43 public sealed class IslandGeneticAlgorithm : HeuristicOptimizationEngineAlgorithm, IStorableContent { 44 44 public string Filename { get; set; } 45 45 … … 55 55 56 56 #region Parameter Properties 57 p ublicValueParameter<IntValue> SeedParameter {57 private ValueParameter<IntValue> SeedParameter { 58 58 get { return (ValueParameter<IntValue>)Parameters["Seed"]; } 59 59 } 60 p ublicValueParameter<BoolValue> SetSeedRandomlyParameter {60 private ValueParameter<BoolValue> SetSeedRandomlyParameter { 61 61 get { return (ValueParameter<BoolValue>)Parameters["SetSeedRandomly"]; } 62 62 } 63 p ublicValueParameter<IntValue> NumberOfIslandsParameter {63 private ValueParameter<IntValue> NumberOfIslandsParameter { 64 64 get { return (ValueParameter<IntValue>)Parameters["NumberOfIslands"]; } 65 65 } 66 p ublicValueParameter<IntValue> MigrationIntervalParameter {66 private ValueParameter<IntValue> MigrationIntervalParameter { 67 67 get { return (ValueParameter<IntValue>)Parameters["MigrationInterval"]; } 68 68 } 69 p ublicValueParameter<PercentValue> MigrationRateParameter {69 private ValueParameter<PercentValue> MigrationRateParameter { 70 70 get { return (ValueParameter<PercentValue>)Parameters["MigrationRate"]; } 71 71 } … … 79 79 get { return (IConstrainedValueParameter<IReplacer>)Parameters["ImmigrationReplacer"]; } 80 80 } 81 p ublicValueParameter<IntValue> PopulationSizeParameter {81 private ValueParameter<IntValue> PopulationSizeParameter { 82 82 get { return (ValueParameter<IntValue>)Parameters["PopulationSize"]; } 83 83 } 84 p ublicValueParameter<IntValue> MaximumGenerationsParameter {84 private ValueParameter<IntValue> MaximumGenerationsParameter { 85 85 get { return (ValueParameter<IntValue>)Parameters["MaximumGenerations"]; } 86 86 } … … 91 91 get { return (IConstrainedValueParameter<ICrossover>)Parameters["Crossover"]; } 92 92 } 93 p ublicValueParameter<PercentValue> MutationProbabilityParameter {93 private ValueParameter<PercentValue> MutationProbabilityParameter { 94 94 get { return (ValueParameter<PercentValue>)Parameters["MutationProbability"]; } 95 95 } … … 97 97 get { return (IConstrainedValueParameter<IManipulator>)Parameters["Mutator"]; } 98 98 } 99 p ublicValueParameter<IntValue> ElitesParameter {99 private ValueParameter<IntValue> ElitesParameter { 100 100 get { return (ValueParameter<IntValue>)Parameters["Elites"]; } 101 101 } 102 public ValueParameter<MultiAnalyzer> AnalyzerParameter { 102 private IFixedValueParameter<BoolValue> ReevaluateElitesParameter { 103 get { return (IFixedValueParameter<BoolValue>)Parameters["ReevaluateElites"]; } 104 } 105 private ValueParameter<MultiAnalyzer> AnalyzerParameter { 103 106 get { return (ValueParameter<MultiAnalyzer>)Parameters["Analyzer"]; } 104 107 } 105 p ublicValueParameter<MultiAnalyzer> IslandAnalyzerParameter {108 private ValueParameter<MultiAnalyzer> IslandAnalyzerParameter { 106 109 get { return (ValueParameter<MultiAnalyzer>)Parameters["IslandAnalyzer"]; } 107 110 } … … 169 172 set { ElitesParameter.Value = value; } 170 173 } 174 public bool ReevaluteElites { 175 get { return ReevaluateElitesParameter.Value.Value; } 176 set { ReevaluateElitesParameter.Value.Value = value; } 177 } 171 178 public MultiAnalyzer Analyzer { 172 179 get { return AnalyzerParameter.Value; } … … 177 184 set { IslandAnalyzerParameter.Value = value; } 178 185 } 179 pr otectedRandomCreator RandomCreator {186 private RandomCreator RandomCreator { 180 187 get { return (RandomCreator)OperatorGraph.InitialOperator; } 181 188 } 182 pr otectedUniformSubScopesProcessor IslandProcessor {189 private UniformSubScopesProcessor IslandProcessor { 183 190 get { return OperatorGraph.Iterate().OfType<UniformSubScopesProcessor>().First(x => x.Operator is SolutionsCreator); } 184 191 } 185 pr otectedSolutionsCreator SolutionsCreator {192 private SolutionsCreator SolutionsCreator { 186 193 get { return (SolutionsCreator)IslandProcessor.Operator; } 187 194 } 188 pr otectedIslandGeneticAlgorithmMainLoop MainLoop {195 private IslandGeneticAlgorithmMainLoop MainLoop { 189 196 get { return FindMainLoop(IslandProcessor.Successor); } 190 197 } … … 196 203 197 204 [StorableConstructor] 198 pr otectedIslandGeneticAlgorithm(bool deserializing) : base(deserializing) { }205 private IslandGeneticAlgorithm(bool deserializing) : base(deserializing) { } 199 206 [StorableHook(HookType.AfterDeserialization)] 200 207 private void AfterDeserialization() { 208 // BackwardsCompatibility3.3 209 #region Backwards compatible code, remove with 3.4 210 if (!Parameters.ContainsKey("ReevaluateElites")) { 211 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 }); 212 } 213 #endregion 214 201 215 Initialize(); 202 216 } 203 pr otectedIslandGeneticAlgorithm(IslandGeneticAlgorithm original, Cloner cloner)217 private IslandGeneticAlgorithm(IslandGeneticAlgorithm original, Cloner cloner) 204 218 : base(original, cloner) { 205 219 islandQualityAnalyzer = cloner.Clone(original.islandQualityAnalyzer); … … 228 242 Parameters.Add(new OptionalConstrainedValueParameter<IManipulator>("Mutator", "The operator used to mutate solutions.")); 229 243 Parameters.Add(new ValueParameter<IntValue>("Elites", "The numer of elite solutions which are kept in each generation.", new IntValue(1))); 244 Parameters.Add(new FixedValueParameter<BoolValue>("ReevaluateElites", "Flag to determine if elite individuals should be reevaluated (i.e., if stochastic fitness functions are used.)", new BoolValue(false)) { Hidden = true }); 230 245 Parameters.Add(new ValueParameter<MultiAnalyzer>("Analyzer", "The operator used to analyze the islands.", new MultiAnalyzer())); 231 246 Parameters.Add(new ValueParameter<MultiAnalyzer>("IslandAnalyzer", "The operator used to analyze each island.", new MultiAnalyzer())); … … 260 275 // BackwardsCompatibility3.3 261 276 // the global random is resetted to ensure the same algorithm results 262 #region Backwards compatible code, remove with 3.4277 #region Backwards compatible code, remove global random resetter with 3.4 and rewire the operator graph 263 278 globalRandomResetter.RandomParameter.ActualName = "GlobalRandom"; 264 279 globalRandomResetter.SeedParameter.ActualName = SeedParameter.Name; … … 301 316 mainLoop.CrossoverParameter.ActualName = CrossoverParameter.Name; 302 317 mainLoop.ElitesParameter.ActualName = ElitesParameter.Name; 318 mainLoop.ReevaluateElitesParameter.ActualName = ReevaluateElitesParameter.Name; 303 319 mainLoop.MutatorParameter.ActualName = MutatorParameter.Name; 304 320 mainLoop.MutationProbabilityParameter.ActualName = MutationProbabilityParameter.Name; … … 417 433 } 418 434 } 419 pr otected virtualvoid ParameterizeSolutionsCreator() {435 private void ParameterizeSolutionsCreator() { 420 436 SolutionsCreator.EvaluatorParameter.ActualName = Problem.EvaluatorParameter.Name; 421 437 SolutionsCreator.SolutionCreatorParameter.ActualName = Problem.SolutionCreatorParameter.Name; 422 438 } 423 pr otected virtualvoid ParameterizeMainLoop() {439 private void ParameterizeMainLoop() { 424 440 MainLoop.BestKnownQualityParameter.ActualName = Problem.BestKnownQualityParameter.Name; 425 441 MainLoop.EvaluatorParameter.ActualName = Problem.EvaluatorParameter.Name; … … 427 443 MainLoop.QualityParameter.ActualName = Problem.Evaluator.QualityParameter.ActualName; 428 444 } 429 pr otectedvoid ParameterizeStochasticOperator(IOperator op) {445 private void ParameterizeStochasticOperator(IOperator op) { 430 446 IStochasticOperator stochasticOp = op as IStochasticOperator; 431 447 if (stochasticOp != null) { … … 434 450 } 435 451 } 436 pr otectedvoid ParameterizeStochasticOperatorForIsland(IOperator op) {452 private void ParameterizeStochasticOperatorForIsland(IOperator op) { 437 453 IStochasticOperator stochasticOp = op as IStochasticOperator; 438 454 if (stochasticOp != null) { -
branches/DataAnalysis.IslandAlgorithms/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/IslandGeneticAlgorithmMainLoop.cs
r9039 r9756 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 91 91 public ValueLookupParameter<IntValue> ElitesParameter { 92 92 get { return (ValueLookupParameter<IntValue>)Parameters["Elites"]; } 93 } 94 public IValueLookupParameter<BoolValue> ReevaluateElitesParameter { 95 get { return (IValueLookupParameter<BoolValue>)Parameters["ReevaluateElites"]; } 93 96 } 94 97 public ValueLookupParameter<ResultCollection> ResultsParameter { … … 144 147 Parameters.Add(new ValueLookupParameter<IOperator>("Evaluator", "The operator used to evaluate solutions.")); 145 148 Parameters.Add(new ValueLookupParameter<IntValue>("Elites", "The numer of elite solutions which are kept in each generation.")); 149 Parameters.Add(new ValueLookupParameter<BoolValue>("ReevaluateElites", "Flag to determine if elite individuals should be reevaluated (i.e., if stochastic fitness functions are used.)")); 146 150 Parameters.Add(new ValueLookupParameter<ResultCollection>("Results", "The results collection to store the results.")); 147 151 Parameters.Add(new ValueLookupParameter<IOperator>("Analyzer", "The operator used to the analyze the islands.")); … … 194 198 Placeholder analyzer2 = new Placeholder(); 195 199 ConditionalBranch generationsTerminationCondition = new ConditionalBranch(); 200 ConditionalBranch reevaluateElitesBranch = new ConditionalBranch(); 196 201 197 202 … … 305 310 generationsTerminationCondition.Name = "Terminate?"; 306 311 generationsTerminationCondition.ConditionParameter.ActualName = "TerminateGenerations"; 312 313 reevaluateElitesBranch.ConditionParameter.ActualName = "ReevaluateElites"; 314 reevaluateElitesBranch.Name = "Reevaluate elites ?"; 307 315 #endregion 308 316 … … 315 323 // BackwardsCompatibility3.3 316 324 //the local randoms are created by the island GA itself and are only here to ensure same algorithm results 317 #region Backwards compatible code, remove with 3.4325 #region Backwards compatible code, remove local random creator with 3.4 and rewire the operator graph 318 326 islandAnalyzer1.Successor = localRandomCreator; 319 327 localRandomCreator.Successor = null; … … 345 353 evaluator.Successor = null; 346 354 subScopesCounter.Successor = null; 347 subScopesCounter.Successor = null;348 355 subScopesProcessor2.Operators.Add(bestSelector); 349 356 subScopesProcessor2.Operators.Add(new EmptyOperator()); … … 351 358 mergingReducer.Successor = islandAnalyzer2; 352 359 bestSelector.Successor = rightReducer; 353 rightReducer.Successor = null; 360 rightReducer.Successor = reevaluateElitesBranch; 361 reevaluateElitesBranch.TrueBranch = uniformSubScopesProcessor3; 362 reevaluateElitesBranch.FalseBranch = null; 363 reevaluateElitesBranch.Successor = null; 354 364 islandAnalyzer2.Successor = islandGenerationsCounter; 355 365 islandGenerationsCounter.Successor = checkIslandGenerationsReachedMaximum; … … 369 379 } 370 380 381 [StorableHook(HookType.AfterDeserialization)] 382 private void AfterDeserialization() { 383 // BackwardsCompatibility3.3 384 #region Backwards compatible code, remove with 3.4 385 if (!Parameters.ContainsKey("ReevaluateElites")) { 386 Parameters.Add(new ValueLookupParameter<BoolValue>("ReevaluateElites", "Flag to determine if elite individuals should be reevaluated (i.e., if stochastic fitness functions are used.)")); 387 } 388 #endregion 389 } 390 371 391 public override IOperation Apply() { 372 392 if (CrossoverParameter.ActualValue == null) -
branches/DataAnalysis.IslandAlgorithms/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/Plugin.cs.frame
r8399 r9756 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 26 26 /// Plugin class for HeuristicLab.Algorithms.GeneticAlgorithm plugin. 27 27 /// </summary> 28 [Plugin("HeuristicLab.Algorithms.GeneticAlgorithm", "3.3. 7.$WCREV$")]28 [Plugin("HeuristicLab.Algorithms.GeneticAlgorithm", "3.3.8.$WCREV$")] 29 29 [PluginFile("HeuristicLab.Algorithms.GeneticAlgorithm-3.3.dll", PluginFileType.Assembly)] 30 30 [PluginDependency("HeuristicLab.Analysis", "3.3")] -
branches/DataAnalysis.IslandAlgorithms/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/Properties/AssemblyInfo.cs.frame
r8246 r9756 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 31 31 [assembly: AssemblyCompany("")] 32 32 [assembly: AssemblyProduct("HeuristicLab")] 33 [assembly: AssemblyCopyright("(c) 2002-201 2HEAL")]33 [assembly: AssemblyCopyright("(c) 2002-2013 HEAL")] 34 34 [assembly: AssemblyTrademark("")] 35 35 [assembly: AssemblyCulture("")] … … 53 53 // by using the '*' as shown below: 54 54 [assembly: AssemblyVersion("3.3.0.0")] 55 [assembly: AssemblyFileVersion("3.3. 7.$WCREV$")]55 [assembly: AssemblyFileVersion("3.3.8.$WCREV$")] -
branches/DataAnalysis.IslandAlgorithms/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm (added) merged: 9456,9462,9569,9591-9592
- Property svn:mergeinfo changed
-
branches/DataAnalysis.IslandAlgorithms/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/IslandOffspringSelectionGeneticAlgorithm.cs
r8121 r9756 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 100 100 get { return (ValueParameter<IntValue>)Parameters["Elites"]; } 101 101 } 102 private IFixedValueParameter<BoolValue> ReevaluateElitesParameter { 103 get { return (IFixedValueParameter<BoolValue>)Parameters["ReevaluateElites"]; } 104 } 102 105 private ValueLookupParameter<DoubleValue> SuccessRatioParameter { 103 106 get { return (ValueLookupParameter<DoubleValue>)Parameters["SuccessRatio"]; } … … 192 195 get { return ElitesParameter.Value; } 193 196 set { ElitesParameter.Value = value; } 197 } 198 public bool ReevaluteElites { 199 get { return ReevaluateElitesParameter.Value.Value; } 200 set { ReevaluateElitesParameter.Value.Value = value; } 194 201 } 195 202 private DoubleValue SuccessRatio { … … 257 264 [StorableHook(HookType.AfterDeserialization)] 258 265 private void AfterDeserialization() { 259 #region Backwards Compatibility 266 // BackwardsCompatibility3.3 267 #region Backwards compatible code, remove with 3.4 260 268 if (successfulOffspringAnalyzer == null) 261 269 successfulOffspringAnalyzer = new SuccessfulOffspringAnalyzer(); 270 if (!Parameters.ContainsKey("ReevaluateElites")) { 271 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 }); 272 } 262 273 #endregion 263 274 … … 293 304 Parameters.Add(new OptionalConstrainedValueParameter<IManipulator>("Mutator", "The operator used to mutate solutions.")); 294 305 Parameters.Add(new ValueParameter<IntValue>("Elites", "The numer of elite solutions which are kept in each generation.", new IntValue(1))); 306 Parameters.Add(new FixedValueParameter<BoolValue>("ReevaluateElites", "Flag to determine if elite individuals should be reevaluated (i.e., if stochastic fitness functions are used.)", new BoolValue(false)) { Hidden = true }); 295 307 Parameters.Add(new ValueLookupParameter<DoubleValue>("SuccessRatio", "The ratio of successful to total children that should be achieved.", new DoubleValue(1))); 296 308 Parameters.Add(new ValueLookupParameter<DoubleValue>("ComparisonFactorLowerBound", "The lower bound of the comparison factor (start).", new DoubleValue(0))); … … 355 367 mainLoop.CrossoverParameter.ActualName = CrossoverParameter.Name; 356 368 mainLoop.ElitesParameter.ActualName = ElitesParameter.Name; 369 mainLoop.ReevaluateElitesParameter.ActualName = ReevaluateElitesParameter.Name; 357 370 mainLoop.MutatorParameter.ActualName = MutatorParameter.Name; 358 371 mainLoop.MutationProbabilityParameter.ActualName = MutationProbabilityParameter.Name; -
branches/DataAnalysis.IslandAlgorithms/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/IslandOffspringSelectionGeneticAlgorithmMainLoop.cs
r7259 r9756 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 90 90 public ValueLookupParameter<IntValue> ElitesParameter { 91 91 get { return (ValueLookupParameter<IntValue>)Parameters["Elites"]; } 92 } 93 public IValueLookupParameter<BoolValue> ReevaluateElitesParameter { 94 get { return (IValueLookupParameter<BoolValue>)Parameters["ReevaluateElites"]; } 92 95 } 93 96 public ValueLookupParameter<ResultCollection> ResultsParameter { … … 158 161 Parameters.Add(new ValueLookupParameter<IOperator>("Evaluator", "The operator used to evaluate solutions. This operator is executed in parallel, if an engine is used which supports parallelization.")); 159 162 Parameters.Add(new ValueLookupParameter<IntValue>("Elites", "The numer of elite solutions which are kept in each generation.")); 163 Parameters.Add(new ValueLookupParameter<BoolValue>("ReevaluateElites", "Flag to determine if elite individuals should be reevaluated (i.e., if stochastic fitness functions are used.)")); 160 164 Parameters.Add(new ValueLookupParameter<ResultCollection>("Results", "The results collection to store the results.")); 161 165 Parameters.Add(new ValueLookupParameter<IOperator>("Visualizer", "The operator used to visualize solutions.")); … … 248 252 mainOperator.CurrentSuccessRatioParameter.ActualName = "CurrentSuccessRatio"; 249 253 mainOperator.ElitesParameter.ActualName = ElitesParameter.Name; 254 mainOperator.ReevaluateElitesParameter.ActualName = ReevaluateElitesParameter.Name; 250 255 mainOperator.EvaluatedSolutionsParameter.ActualName = EvaluatedSolutionsParameter.Name; 251 256 mainOperator.EvaluatorParameter.ActualName = EvaluatorParameter.Name; … … 414 419 } 415 420 421 [StorableHook(HookType.AfterDeserialization)] 422 private void AfterDeserialization() { 423 // BackwardsCompatibility3.3 424 #region Backwards compatible code, remove with 3.4 425 if (!Parameters.ContainsKey("ReevaluateElites")) { 426 Parameters.Add(new ValueLookupParameter<BoolValue>("ReevaluateElites", "Flag to determine if elite individuals should be reevaluated (i.e., if stochastic fitness functions are used.)")); 427 } 428 #endregion 429 } 430 416 431 public override IOperation Apply() { 417 432 if (CrossoverParameter.ActualValue == null) -
branches/DataAnalysis.IslandAlgorithms/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/OffspringSelectionGeneticAlgorithm.cs
r8121 r9756 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 79 79 get { return (ValueParameter<IntValue>)Parameters["Elites"]; } 80 80 } 81 private IFixedValueParameter<BoolValue> ReevaluateElitesParameter { 82 get { return (IFixedValueParameter<BoolValue>)Parameters["ReevaluateElites"]; } 83 } 81 84 private ValueParameter<IntValue> MaximumGenerationsParameter { 82 85 get { return (ValueParameter<IntValue>)Parameters["MaximumGenerations"]; } … … 143 146 get { return ElitesParameter.Value; } 144 147 set { ElitesParameter.Value = value; } 148 } 149 public bool ReevaluteElites { 150 get { return ReevaluateElitesParameter.Value.Value; } 151 set { ReevaluateElitesParameter.Value.Value = value; } 145 152 } 146 153 public IntValue MaximumGenerations { … … 205 212 [StorableHook(HookType.AfterDeserialization)] 206 213 private void AfterDeserialization() { 207 #region Backwards Compatibility 214 // BackwardsCompatibility3.3 215 #region Backwards compatible code, remove with 3.4 208 216 if (successfulOffspringAnalyzer == null) 209 217 successfulOffspringAnalyzer = new SuccessfulOffspringAnalyzer(); 218 if (!Parameters.ContainsKey("ReevaluateElites")) { 219 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 } 210 221 #endregion 211 222 … … 232 243 Parameters.Add(new OptionalConstrainedValueParameter<IManipulator>("Mutator", "The operator used to mutate solutions.")); 233 244 Parameters.Add(new ValueParameter<IntValue>("Elites", "The numer of elite solutions which are kept in each generation.", new IntValue(1))); 245 Parameters.Add(new FixedValueParameter<BoolValue>("ReevaluateElites", "Flag to determine if elite individuals should be reevaluated (i.e., if stochastic fitness functions are used.)", new BoolValue(false)) { Hidden = true }); 234 246 Parameters.Add(new ValueParameter<IntValue>("MaximumGenerations", "The maximum number of generations which should be processed.", new IntValue(1000))); 235 247 Parameters.Add(new ValueLookupParameter<DoubleValue>("SuccessRatio", "The ratio of successful to total children that should be achieved.", new DoubleValue(1))); … … 274 286 mainLoop.CrossoverParameter.ActualName = CrossoverParameter.Name; 275 287 mainLoop.ElitesParameter.ActualName = ElitesParameter.Name; 288 mainLoop.ReevaluateElitesParameter.ActualName = ReevaluateElitesParameter.Name; 276 289 mainLoop.EvaluatedSolutionsParameter.ActualName = "EvaluatedSolutions"; 277 290 mainLoop.MaximumGenerationsParameter.ActualName = MaximumGenerationsParameter.Name; -
branches/DataAnalysis.IslandAlgorithms/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/OffspringSelectionGeneticAlgorithmMainLoop.cs
r7259 r9756 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 63 63 get { return (ValueLookupParameter<IntValue>)Parameters["Elites"]; } 64 64 } 65 public IValueLookupParameter<BoolValue> ReevaluateElitesParameter { 66 get { return (IValueLookupParameter<BoolValue>)Parameters["ReevaluateElites"]; } 67 } 65 68 public ValueLookupParameter<IntValue> MaximumGenerationsParameter { 66 69 get { return (ValueLookupParameter<IntValue>)Parameters["MaximumGenerations"]; } … … 106 109 : base() { 107 110 Initialize(); 111 } 112 113 [StorableHook(HookType.AfterDeserialization)] 114 private void AfterDeserialization() { 115 // BackwardsCompatibility3.3 116 #region Backwards compatible code, remove with 3.4 117 if (!Parameters.ContainsKey("ReevaluateElites")) { 118 Parameters.Add(new ValueLookupParameter<BoolValue>("ReevaluateElites", "Flag to determine if elite individuals should be reevaluated (i.e., if stochastic fitness functions are used.)")); 119 } 120 #endregion 108 121 } 109 122 … … 120 133 Parameters.Add(new ValueLookupParameter<IOperator>("Evaluator", "The operator used to evaluate solutions. This operator is executed in parallel, if an engine is used which supports parallelization.")); 121 134 Parameters.Add(new ValueLookupParameter<IntValue>("Elites", "The numer of elite solutions which are kept in each generation.")); 135 Parameters.Add(new ValueLookupParameter<BoolValue>("ReevaluateElites", "Flag to determine if elite individuals should be reevaluated (i.e., if stochastic fitness functions are used.)")); 122 136 Parameters.Add(new ValueLookupParameter<IntValue>("MaximumGenerations", "The maximum number of generations which should be processed.")); 123 137 Parameters.Add(new ValueLookupParameter<VariableCollection>("Results", "The variable collection where results should be stored.")); … … 170 184 mainOperator.CurrentSuccessRatioParameter.ActualName = "CurrentSuccessRatio"; 171 185 mainOperator.ElitesParameter.ActualName = ElitesParameter.Name; 186 mainOperator.ReevaluateElitesParameter.ActualName = ReevaluateElitesParameter.Name; 172 187 mainOperator.EvaluatedSolutionsParameter.ActualName = EvaluatedSolutionsParameter.Name; 173 188 mainOperator.EvaluatorParameter.ActualName = EvaluatorParameter.Name; -
branches/DataAnalysis.IslandAlgorithms/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/OffspringSelectionGeneticAlgorithmMainOperator.cs
r7259 r9756 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 67 67 get { return (ValueLookupParameter<IntValue>)Parameters["Elites"]; } 68 68 } 69 public IValueLookupParameter<BoolValue> ReevaluateElitesParameter { 70 get { return (IValueLookupParameter<BoolValue>)Parameters["ReevaluateElites"]; } 71 } 69 72 public LookupParameter<DoubleValue> ComparisonFactorParameter { 70 73 get { return (LookupParameter<DoubleValue>)Parameters["ComparisonFactor"]; } … … 98 101 : base() { 99 102 Initialize(); 103 } 104 105 [StorableHook(HookType.AfterDeserialization)] 106 private void AfterDeserialization() { 107 // BackwardsCompatibility3.3 108 #region Backwards compatible code, remove with 3.4 109 if (!Parameters.ContainsKey("ReevaluateElites")) { 110 Parameters.Add(new ValueLookupParameter<BoolValue>("ReevaluateElites", "Flag to determine if elite individuals should be reevaluated (i.e., if stochastic fitness functions are used.)")); 111 } 112 #endregion 100 113 } 101 114 … … 112 125 Parameters.Add(new LookupParameter<IntValue>("EvaluatedSolutions", "The number of evaluated solutions.")); 113 126 Parameters.Add(new ValueLookupParameter<IntValue>("Elites", "The numer of elite solutions which are kept in each generation.")); 127 Parameters.Add(new ValueLookupParameter<BoolValue>("ReevaluateElites", "Flag to determine if elite individuals should be reevaluated (i.e., if stochastic fitness functions are used.)")); 114 128 Parameters.Add(new LookupParameter<DoubleValue>("ComparisonFactor", "The comparison factor is used to determine whether the offspring should be compared to the better parent, the worse parent or a quality value linearly interpolated between them. It is in the range [0;1].")); 115 129 Parameters.Add(new LookupParameter<DoubleValue>("CurrentSuccessRatio", "The current success ratio.")); … … 159 173 LeftReducer leftReducer = new LeftReducer(); 160 174 MergingReducer mergingReducer2 = new MergingReducer(); 175 ConditionalBranch reevaluateElitesBranch = new ConditionalBranch(); 176 UniformSubScopesProcessor uniformSubScopesProcessor7 = new UniformSubScopesProcessor(); 177 Placeholder evaluator4 = new Placeholder(); 178 SubScopesCounter subScopesCounter4 = new SubScopesCounter(); 161 179 162 180 selector.Name = "Selector (placeholder)"; … … 253 271 worstSelector.NumberOfSelectedSubScopesParameter.ActualName = ElitesParameter.Name; 254 272 worstSelector.QualityParameter.ActualName = QualityParameter.Name; 273 274 reevaluateElitesBranch.ConditionParameter.ActualName = "ReevaluateElites"; 275 reevaluateElitesBranch.Name = "Reevaluate elites ?"; 276 277 uniformSubScopesProcessor7.Parallel.Value = true; 278 279 evaluator4.Name = "Evaluator (placeholder)"; 280 evaluator4.OperatorParameter.ActualName = EvaluatorParameter.Name; 281 282 subScopesCounter4.Name = "Increment EvaluatedSolutions"; 283 subScopesCounter4.ValueParameter.ActualName = EvaluatedSolutionsParameter.Name; 255 284 #endregion 256 285 … … 310 339 subScopesProcessor3.Successor = mergingReducer2; 311 340 bestSelector.Successor = rightReducer; 312 rightReducer.Successor = null; 341 rightReducer.Successor = reevaluateElitesBranch; 342 reevaluateElitesBranch.TrueBranch = uniformSubScopesProcessor7; 343 uniformSubScopesProcessor7.Operator = evaluator4; 344 uniformSubScopesProcessor7.Successor = subScopesCounter4; 345 subScopesCounter4.Successor = null; 346 reevaluateElitesBranch.FalseBranch = null; 347 reevaluateElitesBranch.Successor = null; 313 348 worstSelector.Successor = leftReducer; 314 349 leftReducer.Successor = null; -
branches/DataAnalysis.IslandAlgorithms/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/Plugin.cs.frame
r8246 r9756 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 26 26 /// Plugin class for HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm plugin. 27 27 /// </summary> 28 [Plugin("HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm", "3.3. 7.$WCREV$")]28 [Plugin("HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm", "3.3.8.$WCREV$")] 29 29 [PluginFile("HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm-3.3.dll", PluginFileType.Assembly)] 30 30 [PluginDependency("HeuristicLab.Analysis", "3.3")] -
branches/DataAnalysis.IslandAlgorithms/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/Properties/AssemblyInfo.cs.frame
r8246 r9756 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 31 31 [assembly: AssemblyCompany("")] 32 32 [assembly: AssemblyProduct("HeuristicLab")] 33 [assembly: AssemblyCopyright("(c) 2002-201 2HEAL")]33 [assembly: AssemblyCopyright("(c) 2002-2013 HEAL")] 34 34 [assembly: AssemblyTrademark("")] 35 35 [assembly: AssemblyCulture("")] … … 53 53 // by using the '*' as shown below: 54 54 [assembly: AssemblyVersion("3.3.0.0")] 55 [assembly: AssemblyFileVersion("3.3. 7.$WCREV$")]55 [assembly: AssemblyFileVersion("3.3.8.$WCREV$")] -
branches/DataAnalysis.IslandAlgorithms/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/SASEGASA.cs
r8121 r9756 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 85 85 get { return (ValueParameter<IntValue>)Parameters["Elites"]; } 86 86 } 87 private IFixedValueParameter<BoolValue> ReevaluateElitesParameter { 88 get { return (IFixedValueParameter<BoolValue>)Parameters["ReevaluateElites"]; } 89 } 87 90 private ValueLookupParameter<DoubleValue> SuccessRatioParameter { 88 91 get { return (ValueLookupParameter<DoubleValue>)Parameters["SuccessRatio"]; } … … 160 163 get { return ElitesParameter.Value; } 161 164 set { ElitesParameter.Value = value; } 165 } 166 public bool ReevaluteElites { 167 get { return ReevaluateElitesParameter.Value.Value; } 168 set { ReevaluateElitesParameter.Value.Value = value; } 162 169 } 163 170 public DoubleValue SuccessRatio { … … 233 240 [StorableHook(HookType.AfterDeserialization)] 234 241 private void AfterDeserialization() { 235 #region Backwards Compatibility 242 // BackwardsCompatibility3.3 243 #region Backwards compatible code, remove with 3.4 236 244 if (successfulOffspringAnalyzer == null) 237 245 successfulOffspringAnalyzer = new SuccessfulOffspringAnalyzer(); 246 if (!Parameters.ContainsKey("ReevaluateElites")) { 247 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 }); 248 } 238 249 #endregion 239 250 … … 264 275 Parameters.Add(new OptionalConstrainedValueParameter<IManipulator>("Mutator", "The operator used to mutate solutions.")); 265 276 Parameters.Add(new ValueParameter<IntValue>("Elites", "The numer of elite solutions which are kept in each generation.", new IntValue(1))); 277 Parameters.Add(new FixedValueParameter<BoolValue>("ReevaluateElites", "Flag to determine if elite individuals should be reevaluated (i.e., if stochastic fitness functions are used.)", new BoolValue(false)) { Hidden = true }); 266 278 Parameters.Add(new ValueLookupParameter<DoubleValue>("SuccessRatio", "The ratio of successful to total children that should be achieved.", new DoubleValue(1))); 267 279 Parameters.Add(new ValueLookupParameter<DoubleValue>("ComparisonFactorLowerBound", "The lower bound of the comparison factor (start).", new DoubleValue(0.3))); … … 321 333 mainLoop.CrossoverParameter.ActualName = CrossoverParameter.Name; 322 334 mainLoop.ElitesParameter.ActualName = ElitesParameter.Name; 335 mainLoop.ReevaluateElitesParameter.ActualName = ReevaluateElitesParameter.Name; 323 336 mainLoop.MutatorParameter.ActualName = MutatorParameter.Name; 324 337 mainLoop.MutationProbabilityParameter.ActualName = MutationProbabilityParameter.Name; -
branches/DataAnalysis.IslandAlgorithms/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/SASEGASAMainLoop.cs
r7259 r9756 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 73 73 get { return (ValueLookupParameter<IntValue>)Parameters["Elites"]; } 74 74 } 75 public IValueLookupParameter<BoolValue> ReevaluateElitesParameter { 76 get { return (IValueLookupParameter<BoolValue>)Parameters["ReevaluateElites"]; } 77 } 75 78 public ValueLookupParameter<ResultCollection> ResultsParameter { 76 79 get { return (ValueLookupParameter<ResultCollection>)Parameters["Results"]; } … … 134 137 Parameters.Add(new ValueLookupParameter<IOperator>("Evaluator", "The operator used to evaluate solutions. This operator is executed in parallel, if an engine is used which supports parallelization.")); 135 138 Parameters.Add(new ValueLookupParameter<IntValue>("Elites", "The numer of elite solutions which are kept in each generation.")); 139 Parameters.Add(new ValueLookupParameter<BoolValue>("ReevaluateElites", "Flag to determine if elite individuals should be reevaluated (i.e., if stochastic fitness functions are used.)")); 136 140 Parameters.Add(new ValueLookupParameter<ResultCollection>("Results", "The results collection to store the results.")); 137 141 Parameters.Add(new ValueLookupParameter<IOperator>("Analyzer", "The operator used to the analyze the villages.")); … … 236 240 mainOperator.CurrentSuccessRatioParameter.ActualName = "CurrentSuccessRatio"; 237 241 mainOperator.ElitesParameter.ActualName = ElitesParameter.Name; 242 mainOperator.ReevaluateElitesParameter.ActualName = ReevaluateElitesParameter.Name; 238 243 mainOperator.EvaluatedSolutionsParameter.ActualName = EvaluatedSolutionsParameter.Name; 239 244 mainOperator.EvaluatorParameter.ActualName = EvaluatorParameter.Name; … … 424 429 } 425 430 431 [StorableHook(HookType.AfterDeserialization)] 432 private void AfterDeserialization() { 433 // BackwardsCompatibility3.3 434 #region Backwards compatible code, remove with 3.4 435 if (!Parameters.ContainsKey("ReevaluateElites")) { 436 Parameters.Add(new ValueLookupParameter<BoolValue>("ReevaluateElites", "Flag to determine if elite individuals should be reevaluated (i.e., if stochastic fitness functions are used.)")); 437 } 438 #endregion 439 } 440 426 441 public override IOperation Apply() { 427 442 if (CrossoverParameter.ActualValue == null) -
branches/DataAnalysis.IslandAlgorithms/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/SuccessfulOffspringAnalysis/SuccessfulOffspringAnalyzer.cs
r7259 r9756 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab.
Note: See TracChangeset
for help on using the changeset viewer.