Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/01/12 00:14:00 (12 years ago)
Author:
abeham
Message:

#1614

  • Allowed to view the solution of a certain point in the pareto chart
  • Added multi crossovers and manipulators
  • Added population diversity analyzer
  • Fixed a few bugs
Location:
branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Views/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Views/3.3/GQAPAssignmentArchiveView.Designer.cs

    r7418 r7437  
    5656      chartArea1.AxisX.Title = "FlowDistanceQuality";
    5757      chartArea1.AxisY.Title = "InstallationQuality";
     58      chartArea1.CursorX.IsUserEnabled = true;
     59      chartArea1.CursorX.IsUserSelectionEnabled = true;
     60      chartArea1.CursorY.IsUserEnabled = true;
     61      chartArea1.CursorY.IsUserSelectionEnabled = true;
    5862      chartArea1.Name = "ChartArea1";
    5963      this.paretoFrontChart.ChartAreas.Add(chartArea1);
     
    7276      this.paretoFrontChart.TabIndex = 0;
    7377      this.paretoFrontChart.Text = "Pareto Front";
     78      this.paretoFrontChart.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.paretoFrontChart_MouseDoubleClick);
    7479      //
    7580      // messageLabel
  • branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Views/3.3/GQAPAssignmentArchiveView.cs

    r7418 r7437  
    2222using System;
    2323using System.ComponentModel;
     24using System.Linq;
    2425using System.Windows.Forms;
     26using System.Windows.Forms.DataVisualization.Charting;
    2527using HeuristicLab.Collections;
    2628using HeuristicLab.Core.Views;
     
    8385          if (Content == null) return;
    8486          foreach (var solution in Content.Solutions) {
    85             if (solution.OverbookedCapacity.Value <= 0.0)
     87            if (solution.OverbookedCapacity.Value <= 0.0) {
    8688              paretoFrontChart.Series[0].Points.AddXY(solution.FlowDistanceQuality.Value, solution.InstallationQuality.Value);
     89              paretoFrontChart.Series[0].Points.Last().Tag = solution;
     90            }
    8791          }
    8892        } finally {
     
    9296      }
    9397    }
     98
     99    private void paretoFrontChart_MouseDoubleClick(object sender, MouseEventArgs e) {
     100      HitTestResult h = paretoFrontChart.HitTest(e.X, e.Y, ChartElementType.DataPoint);
     101      if (h.ChartElementType == ChartElementType.DataPoint) {
     102        var solution = (GQAPSolution)((DataPoint)h.Object).Tag;
     103        var assignment = new GQAPAssignment(solution.Assignment, solution.Quality, solution.FlowDistanceQuality, solution.InstallationQuality, solution.OverbookedCapacity, Content.EquipmentNames, Content.LocationNames, Content.Distances, Content.Weights, Content.InstallationCosts, Content.Demands, Content.Capacities, Content.TransportationCosts, Content.OverbookedCapacityPenalty);
     104
     105        var view = MainFormManager.MainForm.ShowContent(assignment);
     106        if (view != null) {
     107          view.ReadOnly = this.ReadOnly;
     108          view.Locked = this.Locked;
     109        }
     110      }
     111    }
    94112  }
    95113}
Note: See TracChangeset for help on using the changeset viewer.