Changeset 12144 for trunk/sources
- Timestamp:
- 03/05/15 15:53:02 (10 years ago)
- Location:
- trunk/sources/HeuristicLab.Optimization.Operators/3.3/MultiObjective
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization.Operators/3.3/MultiObjective/FastNonDominatedSort.cs
r12123 r12144 46 46 } 47 47 public IValueLookupParameter<BoolValue> DominateOnEqualQualitiesParameter { 48 get { return (ValueLookupParameter<BoolValue>)Parameters["DominateOnEqualQualities 48 get { return (ValueLookupParameter<BoolValue>)Parameters["DominateOnEqualQualities"]; } 49 49 } 50 50 public IScopeTreeLookupParameter<DoubleArray> QualitiesParameter { … … 61 61 public FastNonDominatedSort() { 62 62 Parameters.Add(new ValueLookupParameter<BoolArray>("Maximization", "Whether each objective is maximization or minimization.")); 63 Parameters.Add(new ValueLookupParameter<BoolValue>("DominateOnEqualQualities 63 Parameters.Add(new ValueLookupParameter<BoolValue>("DominateOnEqualQualities", "Flag which determines wether solutions with equal quality values should be treated as dominated.")); 64 64 Parameters.Add(new ScopeTreeLookupParameter<DoubleArray>("Qualities", "The qualities of a solution.", 1)); 65 65 Parameters.Add(new ScopeTreeLookupParameter<IntValue>("Rank", "The rank of a solution.", 1)); … … 173 173 // BackwardsCompatibility3.3 174 174 #region Backwards compatible code, remove with 3.4 175 if (!Parameters.ContainsKey("DominateOnEqualQualities 176 Parameters.Add(new ValueLookupParameter<BoolValue>("DominateOnEqualQualities 175 if (!Parameters.ContainsKey("DominateOnEqualQualities")) 176 Parameters.Add(new ValueLookupParameter<BoolValue>("DominateOnEqualQualities", "Flag which determines wether solutions with equal quality values should be treated as dominated.")); 177 177 #endregion 178 178 } -
trunk/sources/HeuristicLab.Optimization.Operators/3.3/MultiObjective/RankAndCrowdingSorter.cs
r12123 r12144 44 44 } 45 45 public IValueLookupParameter<BoolValue> DominateOnEqualQualitiesParameter { 46 get { return (ValueLookupParameter<BoolValue>)Parameters["DominateOnEqualQualities 46 get { return (ValueLookupParameter<BoolValue>)Parameters["DominateOnEqualQualities"]; } 47 47 } 48 48 #endregion … … 54 54 : base() { 55 55 Parameters.Add(new ValueLookupParameter<BoolArray>("Maximization", "For each objective a value that is true if that objective should be maximized, or false if it should be minimized.")); 56 Parameters.Add(new ValueLookupParameter<BoolValue>("DominateOnEqualQualities 56 Parameters.Add(new ValueLookupParameter<BoolValue>("DominateOnEqualQualities", "Flag which determines wether solutions with equal quality values should be treated as dominated.")); 57 57 Parameters.Add(new ScopeTreeLookupParameter<DoubleArray>("Qualities", "The vector of quality values.")); 58 58 Parameters.Add(new ScopeTreeLookupParameter<IntValue>("Rank", "The rank of a solution (to which front it belongs).")); … … 93 93 // BackwardsCompatibility3.3 94 94 #region Backwards compatible code, remove with 3.4 95 if (!Parameters.ContainsKey("DominateOnEqualQualities 96 Parameters.Add(new ValueLookupParameter<BoolValue>("DominateOnEqualQualities 95 if (!Parameters.ContainsKey("DominateOnEqualQualities")) 96 Parameters.Add(new ValueLookupParameter<BoolValue>("DominateOnEqualQualities", "Flag which determines wether solutions with equal quality values should be treated as dominated.")); 97 97 #endregion 98 98 }
Note: See TracChangeset
for help on using the changeset viewer.