Changeset 14108
- Timestamp:
- 07/19/16 13:46:15 (8 years ago)
- Location:
- branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Analyzers/HypervolumeAnalyzer.cs
r14097 r14108 50 50 51 51 [StorableConstructor] 52 protected HypervolumeAnalyzer(bool deserializing) : base(deserializing) { 52 protected HypervolumeAnalyzer(bool deserializing) 53 : base(deserializing) { 53 54 } 54 55 … … 87 88 double hv = Hypervolume.Calculate(front, referencePoint.ToArray(), testFunction.Maximization(objectives)); 88 89 89 if ( !double.IsNaN(hv) || best < hv) {90 if (hv > best) { 90 91 best = hv; 91 92 } -
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Analyzers/InvertedGenerationalDistanceAnalyzer.cs
r14097 r14108 32 32 [Item("InvertedGenerationalDistanceAnalyzer", "The inverted generational distance between the current and the best known front (see Multi-Objective Performance Metrics - Shodhganga for more information)")] 33 33 public class InvertedGenerationalDistanceAnalyzer : MOTFAnalyzer { 34 34 public override bool EnabledByDefault { get { return false; } } 35 35 36 36 private IFixedValueParameter<DoubleValue> DampeningParameter { -
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Analyzers/MOTFAnalyzer.cs
r14044 r14108 33 33 [StorableClass] 34 34 public abstract class MOTFAnalyzer : SingleSuccessorOperator, IMultiObjectiveTestFunctionAnalyzer { 35 public bool EnabledByDefault { get { return true; } }35 public virtual bool EnabledByDefault { get { return true; } } 36 36 37 37 public IScopeTreeLookupParameter<DoubleArray> QualitiesParameter { -
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Calculators/Spacing.cs
r14030 r14108 37 37 if (!front.Any()) throw new ArgumentException("Front must not be empty."); 38 38 39 List<double> d = new List<double>(); 40 foreach (double[] r in front) { 39 var points = front.ToList(); 40 var d = new List<double>(); 41 42 foreach (double[] r in points) { 41 43 var point = r; 42 var otherPoints = front.Where(p => p != point).DefaultIfEmpty(point);44 var otherPoints = points.Where(p => p != point).DefaultIfEmpty(point); 43 45 double dist = Utilities.MinimumDistance(point, otherPoints); 44 46 d.Add(dist); -
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Plugin.cs.frame
r14073 r14108 27 27 [PluginDependency("HeuristicLab.Collections", "3.3")] 28 28 [PluginDependency("HeuristicLab.Common", "3.3")] 29 [PluginDependency("HeuristicLab.Common.Resources", "3.3")]30 29 [PluginDependency("HeuristicLab.Core", "3.3")] 31 30 [PluginDependency("HeuristicLab.Data", "3.3")] -
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Views/MOFrontScatterPlotView.cs
r14092 r14108 20 20 #endregion 21 21 using System; 22 using System.Data;23 22 using System.Drawing; 24 23 using System.Linq; … … 47 46 48 47 public MOQualitiesScatterPlotView() 49 48 : base() { 50 49 InitializeComponent(); 51 50 … … 57 56 this.chart.TextAntiAliasingQuality = TextAntiAliasingQuality.High; 58 57 this.chart.AxisViewChanged += new EventHandler<System.Windows.Forms.DataVisualization.Charting.ViewEventArgs>(chart_AxisViewChanged); 58 this.chart.GetToolTipText += new System.EventHandler<ToolTipEventArgs>(this.Chart_GetToolTipText); 59 59 60 60 //configure axis … … 72 72 } 73 73 74 protected override void RegisterContentEvents() {75 base.RegisterContentEvents();76 this.chart.GetToolTipText += new System.EventHandler<ToolTipEventArgs>(this.Chart_GetToolTipText);77 }78 79 protected override void DeregisterContentEvents() {80 base.DeregisterContentEvents();81 this.chart.GetToolTipText -= new System.EventHandler<ToolTipEventArgs>(this.Chart_GetToolTipText);82 }83 74 84 75 private void Chart_GetToolTipText(object sender, ToolTipEventArgs e) {
Note: See TracChangeset
for help on using the changeset viewer.