- Timestamp:
- 07/18/14 12:35:00 (10 years ago)
- Location:
- branches/HiveStatistics/sources
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources
- Property svn:ignore
-
old new 8 8 FxCopResults.txt 9 9 Google.ProtocolBuffers-0.9.1.dll 10 Google.ProtocolBuffers-2.4.1.473.dll11 10 HeuristicLab 3.3.5.1.ReSharper.user 12 11 HeuristicLab 3.3.6.0.ReSharper.user 13 12 HeuristicLab.4.5.resharper.user 14 13 HeuristicLab.ExtLibs.6.0.ReSharper.user 15 HeuristicLab.Scripting.Development16 14 HeuristicLab.resharper.user 17 15 ProtoGen.exe … … 19 17 _ReSharper.HeuristicLab 20 18 _ReSharper.HeuristicLab 3.3 21 _ReSharper.HeuristicLab 3.3 Tests22 19 _ReSharper.HeuristicLab.ExtLibs 23 20 bin 24 21 protoc.exe 22 _ReSharper.HeuristicLab 3.3 Tests 23 Google.ProtocolBuffers-2.4.1.473.dll
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/HiveStatistics/sources/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/GeneticAlgorithm.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 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 }84 81 private ValueParameter<MultiAnalyzer> AnalyzerParameter { 85 82 get { return (ValueParameter<MultiAnalyzer>)Parameters["Analyzer"]; } … … 122 119 get { return ElitesParameter.Value; } 123 120 set { ElitesParameter.Value = value; } 124 }125 public bool ReevaluteElites {126 get { return ReevaluateElitesParameter.Value.Value; }127 set { ReevaluateElitesParameter.Value.Value = value; }128 121 } 129 122 public MultiAnalyzer Analyzer { … … 158 151 Parameters.Add(new OptionalConstrainedValueParameter<IManipulator>("Mutator", "The operator used to mutate solutions.")); 159 152 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 });161 153 Parameters.Add(new ValueParameter<MultiAnalyzer>("Analyzer", "The operator used to analyze each generation.", new MultiAnalyzer())); 162 154 Parameters.Add(new ValueParameter<IntValue>("MaximumGenerations", "The maximum number of generations which should be processed.", new IntValue(1000))); … … 190 182 mainLoop.CrossoverParameter.ActualName = CrossoverParameter.Name; 191 183 mainLoop.ElitesParameter.ActualName = ElitesParameter.Name; 192 mainLoop.ReevaluateElitesParameter.ActualName = ReevaluateElitesParameter.Name;193 184 mainLoop.MaximumGenerationsParameter.ActualName = MaximumGenerationsParameter.Name; 194 185 mainLoop.MutatorParameter.ActualName = MutatorParameter.Name; … … 216 207 [StorableHook(HookType.AfterDeserialization)] 217 208 private void AfterDeserialization() { 218 // BackwardsCompatibility3.3219 #region Backwards compatible code, remove with 3.4220 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 #endregion224 225 209 Initialize(); 226 210 } 227 228 229 211 230 212 private GeneticAlgorithm(GeneticAlgorithm original, Cloner cloner) -
branches/HiveStatistics/sources/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/GeneticAlgorithmMainLoop.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 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"]; }68 65 } 69 66 public ValueLookupParameter<IntValue> MaximumGenerationsParameter { … … 115 112 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.")); 116 113 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.)"));118 114 Parameters.Add(new ValueLookupParameter<IntValue>("MaximumGenerations", "The maximum number of generations which should be processed.")); 119 115 Parameters.Add(new ValueLookupParameter<VariableCollection>("Results", "The variable collection where results should be stored.")); … … 147 143 Placeholder analyzer2 = new Placeholder(); 148 144 ConditionalBranch conditionalBranch = new ConditionalBranch(); 149 ConditionalBranch reevaluateElitesBranch = new ConditionalBranch();150 145 151 146 variableCreator.CollectedValues.Add(new ValueParameter<IntValue>("Generations", new IntValue(0))); // Class GeneticAlgorithm expects this to be called Generations … … 198 193 199 194 conditionalBranch.ConditionParameter.ActualName = "Terminate"; 200 201 reevaluateElitesBranch.ConditionParameter.ActualName = "ReevaluateElites";202 reevaluateElitesBranch.Name = "Reevaluate elites ?";203 195 #endregion 204 196 … … 229 221 subScopesProcessor2.Successor = mergingReducer; 230 222 bestSelector.Successor = rightReducer; 231 rightReducer.Successor = reevaluateElitesBranch; 232 reevaluateElitesBranch.TrueBranch = uniformSubScopesProcessor2; 233 reevaluateElitesBranch.FalseBranch = null; 234 reevaluateElitesBranch.Successor = null; 223 rightReducer.Successor = null; 235 224 mergingReducer.Successor = intCounter; 236 225 intCounter.Successor = comparator; … … 243 232 } 244 233 245 [StorableHook(HookType.AfterDeserialization)]246 private void AfterDeserialization() {247 // BackwardsCompatibility3.3248 #region Backwards compatible code, remove with 3.4249 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 #endregion253 }254 255 234 public override IOperation Apply() { 256 235 if (CrossoverParameter.ActualValue == null) -
branches/HiveStatistics/sources/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/IslandGeneticAlgorithm.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 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 }105 102 private ValueParameter<MultiAnalyzer> AnalyzerParameter { 106 103 get { return (ValueParameter<MultiAnalyzer>)Parameters["Analyzer"]; } … … 171 168 get { return ElitesParameter.Value; } 172 169 set { ElitesParameter.Value = value; } 173 }174 public bool ReevaluteElites {175 get { return ReevaluateElitesParameter.Value.Value; }176 set { ReevaluateElitesParameter.Value.Value = value; }177 170 } 178 171 public MultiAnalyzer Analyzer { … … 206 199 [StorableHook(HookType.AfterDeserialization)] 207 200 private void AfterDeserialization() { 208 // BackwardsCompatibility3.3209 #region Backwards compatible code, remove with 3.4210 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 #endregion214 215 201 Initialize(); 216 202 } … … 242 228 Parameters.Add(new OptionalConstrainedValueParameter<IManipulator>("Mutator", "The operator used to mutate solutions.")); 243 229 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 });245 230 Parameters.Add(new ValueParameter<MultiAnalyzer>("Analyzer", "The operator used to analyze the islands.", new MultiAnalyzer())); 246 231 Parameters.Add(new ValueParameter<MultiAnalyzer>("IslandAnalyzer", "The operator used to analyze each island.", new MultiAnalyzer())); … … 316 301 mainLoop.CrossoverParameter.ActualName = CrossoverParameter.Name; 317 302 mainLoop.ElitesParameter.ActualName = ElitesParameter.Name; 318 mainLoop.ReevaluateElitesParameter.ActualName = ReevaluateElitesParameter.Name;319 303 mainLoop.MutatorParameter.ActualName = MutatorParameter.Name; 320 304 mainLoop.MutationProbabilityParameter.ActualName = MutationProbabilityParameter.Name; -
branches/HiveStatistics/sources/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/IslandGeneticAlgorithmMainLoop.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 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"]; }96 93 } 97 94 public ValueLookupParameter<ResultCollection> ResultsParameter { … … 147 144 Parameters.Add(new ValueLookupParameter<IOperator>("Evaluator", "The operator used to evaluate solutions.")); 148 145 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.)"));150 146 Parameters.Add(new ValueLookupParameter<ResultCollection>("Results", "The results collection to store the results.")); 151 147 Parameters.Add(new ValueLookupParameter<IOperator>("Analyzer", "The operator used to the analyze the islands.")); … … 198 194 Placeholder analyzer2 = new Placeholder(); 199 195 ConditionalBranch generationsTerminationCondition = new ConditionalBranch(); 200 ConditionalBranch reevaluateElitesBranch = new ConditionalBranch();201 196 202 197 … … 310 305 generationsTerminationCondition.Name = "Terminate?"; 311 306 generationsTerminationCondition.ConditionParameter.ActualName = "TerminateGenerations"; 312 313 reevaluateElitesBranch.ConditionParameter.ActualName = "ReevaluateElites";314 reevaluateElitesBranch.Name = "Reevaluate elites ?";315 307 #endregion 316 308 … … 353 345 evaluator.Successor = null; 354 346 subScopesCounter.Successor = null; 347 subScopesCounter.Successor = null; 355 348 subScopesProcessor2.Operators.Add(bestSelector); 356 349 subScopesProcessor2.Operators.Add(new EmptyOperator()); … … 358 351 mergingReducer.Successor = islandAnalyzer2; 359 352 bestSelector.Successor = rightReducer; 360 rightReducer.Successor = reevaluateElitesBranch; 361 reevaluateElitesBranch.TrueBranch = uniformSubScopesProcessor3; 362 reevaluateElitesBranch.FalseBranch = null; 363 reevaluateElitesBranch.Successor = null; 353 rightReducer.Successor = null; 364 354 islandAnalyzer2.Successor = islandGenerationsCounter; 365 355 islandGenerationsCounter.Successor = checkIslandGenerationsReachedMaximum; … … 379 369 } 380 370 381 [StorableHook(HookType.AfterDeserialization)]382 private void AfterDeserialization() {383 // BackwardsCompatibility3.3384 #region Backwards compatible code, remove with 3.4385 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 #endregion389 }390 391 371 public override IOperation Apply() { 392 372 if (CrossoverParameter.ActualValue == null) -
branches/HiveStatistics/sources/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/Plugin.cs.frame
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 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. 10.$WCREV$")]28 [Plugin("HeuristicLab.Algorithms.GeneticAlgorithm", "3.3.7.$WCREV$")] 29 29 [PluginFile("HeuristicLab.Algorithms.GeneticAlgorithm-3.3.dll", PluginFileType.Assembly)] 30 30 [PluginDependency("HeuristicLab.Analysis", "3.3")] -
branches/HiveStatistics/sources/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/Properties/AssemblyInfo.cs.frame
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 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 4HEAL")]33 [assembly: AssemblyCopyright("(c) 2002-2012 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. 10.$WCREV$")]55 [assembly: AssemblyFileVersion("3.3.7.$WCREV$")]
Note: See TracChangeset
for help on using the changeset viewer.