- Timestamp:
- 09/25/15 14:39:59 (9 years ago)
- Location:
- branches/gteufl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gteufl
- Property svn:ignore
-
old new 8 8 FxCopResults.txt 9 9 Google.ProtocolBuffers-0.9.1.dll 10 Google.ProtocolBuffers-2.4.1.473.dll 10 11 HeuristicLab 3.3.5.1.ReSharper.user 11 12 HeuristicLab 3.3.6.0.ReSharper.user 12 13 HeuristicLab.4.5.resharper.user 13 14 HeuristicLab.ExtLibs.6.0.ReSharper.user 15 HeuristicLab.Scripting.Development 14 16 HeuristicLab.resharper.user 15 17 ProtoGen.exe … … 17 19 _ReSharper.HeuristicLab 18 20 _ReSharper.HeuristicLab 3.3 21 _ReSharper.HeuristicLab 3.3 Tests 19 22 _ReSharper.HeuristicLab.ExtLibs 20 23 bin 21 24 protoc.exe 22 _ReSharper.HeuristicLab 3.3 Tests 23 Google.ProtocolBuffers-2.4.1.473.dll 25 obj
-
- Property svn:mergeinfo changed
-
Property
svn:global-ignores
set to
*.nuget
packages
- Property svn:ignore
-
branches/gteufl/HeuristicLab.Algorithms.NSGA2/3.3/NSGA2.cs
r9456 r12969 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 3Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 39 39 /// </summary> 40 40 [Item("NSGA-II", "The Nondominated Sorting Genetic Algorithm II was introduced in Deb et al. 2002. A Fast and Elitist Multiobjective Genetic Algorithm: NSGA-II. IEEE Transactions on Evolutionary Computation, 6(2), pp. 182-197.")] 41 [Creatable( "Algorithms")]41 [Creatable(CreatableAttribute.Categories.Algorithms, Priority = 100)] 42 42 [StorableClass] 43 43 public class NSGA2 : HeuristicOptimizationEngineAlgorithm, IStorableContent { … … 87 87 private ValueParameter<IntValue> SelectedParentsParameter { 88 88 get { return (ValueParameter<IntValue>)Parameters["SelectedParents"]; } 89 } 90 91 private IFixedValueParameter<BoolValue> DominateOnEqualQualitiesParameter { 92 get { return (IFixedValueParameter<BoolValue>)Parameters["DominateOnEqualQualities"]; } 89 93 } 90 94 #endregion … … 135 139 set { SelectedParentsParameter.Value = value; } 136 140 } 141 public bool DominateOnEqualQualities { 142 get { return DominateOnEqualQualitiesParameter.Value.Value; } 143 set { DominateOnEqualQualitiesParameter.Value.Value = value; } 144 } 145 137 146 private RandomCreator RandomCreator { 138 147 get { return (RandomCreator)OperatorGraph.InitialOperator; } … … 171 180 Parameters.Add(new ValueParameter<IntValue>("MaximumGenerations", "The maximum number of generations which should be processed.", new IntValue(1000))); 172 181 Parameters.Add(new ValueParameter<IntValue>("SelectedParents", "Each two parents form a new child, typically this value should be twice the population size, but because the NSGA-II is maximally elitist it can be any multiple of 2 greater than 0.", new IntValue(200))); 182 Parameters.Add(new FixedValueParameter<BoolValue>("DominateOnEqualQualities", "Flag which determines wether solutions with equal quality values should be treated as dominated.", new BoolValue(false))); 173 183 174 184 RandomCreator randomCreator = new RandomCreator(); … … 195 205 subScopesCounter.Successor = rankAndCrowdingSorter; 196 206 207 rankAndCrowdingSorter.DominateOnEqualQualitiesParameter.ActualName = DominateOnEqualQualitiesParameter.Name; 197 208 rankAndCrowdingSorter.CrowdingDistanceParameter.ActualName = "CrowdingDistance"; 198 209 rankAndCrowdingSorter.RankParameter.ActualName = "Rank"; … … 311 322 [StorableHook(HookType.AfterDeserialization)] 312 323 private void AfterDeserialization() { 324 // BackwardsCompatibility3.3 325 #region Backwards compatible code, remove with 3.4 326 if (!Parameters.ContainsKey("DominateOnEqualQualities")) 327 Parameters.Add(new FixedValueParameter<BoolValue>("DominateOnEqualQualities", "Flag which determines wether solutions with equal quality values should be treated as dominated.", new BoolValue(false))); 328 #endregion 329 313 330 PopulationSizeParameter.ValueChanged += new EventHandler(PopulationSizeParameter_ValueChanged); 314 331 PopulationSize.ValueChanged += new EventHandler(PopulationSize_ValueChanged);
Note: See TracChangeset
for help on using the changeset viewer.