Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/27/12 02:01:25 (12 years ago)
Author:
abeham
Message:

#1614

  • Added shaking operator based on n-moves
  • Added pareto analyzer regarding flowdistance and installation qualities
Location:
branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Views/3.3
Files:
3 added
2 edited

Legend:

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

    r7415 r7418  
    4646    protected override void DeregisterContentEvents() {
    4747      Content.PropertyChanged -= new PropertyChangedEventHandler(Content_PropertyChanged);
     48      Content.Solution.PropertyChanged -= new PropertyChangedEventHandler(ContentSolution_PropertyChanged);
    4849      base.DeregisterContentEvents();
    4950    }
     
    5152      base.RegisterContentEvents();
    5253      Content.PropertyChanged += new PropertyChangedEventHandler(Content_PropertyChanged);
     54      Content.Solution.PropertyChanged += new PropertyChangedEventHandler(ContentSolution_PropertyChanged);
    5355    }
    5456    #endregion
     
    5759      base.OnContentChanged();
    5860      UpdateQuality();
     61      UpdateFlowDistanceQuality();
     62      UpdateInstallationQuality();
     63      UpdateOverbookedCapacity();
    5964      UpdateAssignment();
    6065    }
     
    6772    private void Content_PropertyChanged(object sender, PropertyChangedEventArgs e) {
    6873      switch (e.PropertyName) {
     74        case "EquipmentNames": UpdateAssignment(); break;
     75        case "LocationNames": UpdateAssignment(); break;
     76        default: break;
     77      }
     78    }
     79    private void ContentSolution_PropertyChanged(object sender, PropertyChangedEventArgs e) {
     80      switch (e.PropertyName) {
    6981        case "Quality": UpdateQuality(); break;
    7082        case "FlowDistanceQuality": UpdateFlowDistanceQuality(); break;
     
    7284        case "OverbookedCapacity": UpdateOverbookedCapacity(); break;
    7385        case "Assignment": UpdateAssignment(); break;
    74         case "EquipmentNames": UpdateAssignment(); break;
    75         case "LocationNames": UpdateAssignment(); break;
    7686        default: break;
    7787      }
     
    8595          qualityLabel.Text = "-";
    8696        } else {
    87           qualityLabel.Text = Content.Quality.ToString();
     97          qualityLabel.Text = Content.Solution.Quality.ToString();
    8898        }
    8999      }
     
    93103      if (InvokeRequired) Invoke((Action)UpdateFlowDistanceQuality);
    94104      else {
    95         if (Content == null || Content.FlowDistanceQuality == null) {
     105        if (Content == null || Content.Solution.FlowDistanceQuality == null) {
    96106          flowDistanceQualityLabel.Text = "-";
    97107        } else {
    98           flowDistanceQualityLabel.Text = Content.FlowDistanceQuality.ToString();
     108          flowDistanceQualityLabel.Text = Content.Solution.FlowDistanceQuality.ToString();
    99109        }
    100110      }
     
    104114      if (InvokeRequired) Invoke((Action)UpdateInstallationQuality);
    105115      else {
    106         if (Content == null || Content.InstallationQuality == null) {
     116        if (Content == null || Content.Solution.InstallationQuality == null) {
    107117          installationQualityLabel.Text = "-";
    108118        } else {
    109           installationQualityLabel.Text = Content.InstallationQuality.ToString();
     119          installationQualityLabel.Text = Content.Solution.InstallationQuality.ToString();
    110120        }
    111121      }
     
    115125      if (InvokeRequired) Invoke((Action)UpdateOverbookedCapacity);
    116126      else {
    117         if (Content == null || Content.OverbookedCapacity == null) {
     127        if (Content == null || Content.Solution.OverbookedCapacity == null) {
    118128          overbookedCapacityLabel.Text = "-";
    119129        } else {
    120           overbookedCapacityLabel.Text = Content.OverbookedCapacity.ToString();
     130          overbookedCapacityLabel.Text = Content.Solution.OverbookedCapacity.ToString();
    121131        }
    122132      }
     
    128138        assignmentTreeView.Nodes.Clear();
    129139        if (Content != null) {
    130           IntegerVector assignment = Content.Assignment;
     140          IntegerVector assignment = Content.Solution.Assignment;
    131141          Dictionary<int, TreeNode> locationNodes = new Dictionary<int, TreeNode>();
    132142          for (int i = 0; i < assignment.Length; i++) {
  • branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Views/3.3/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Views-3.3.csproj

    r7412 r7418  
    3838  </PropertyGroup>
    3939  <ItemGroup>
     40    <Reference Include="HeuristicLab.Collections-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL" />
    4041    <Reference Include="HeuristicLab.Common-3.3">
    4142      <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Common-3.3.dll</HintPath>
     
    7475      <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.PluginInfrastructure-3.3.dll</HintPath>
    7576    </Reference>
     77    <Reference Include="HeuristicLab.Visualization.ChartControlsExtensions-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL" />
    7678    <Reference Include="System" />
    7779    <Reference Include="System.Core" />
    7880    <Reference Include="System.Drawing" />
    7981    <Reference Include="System.Windows.Forms" />
     82    <Reference Include="System.Windows.Forms.DataVisualization" />
    8083    <Reference Include="System.Xml.Linq" />
    8184    <Reference Include="System.Data.DataSetExtensions" />
     
    8588  </ItemGroup>
    8689  <ItemGroup>
     90    <Compile Include="GQAPAssignmentArchiveView.cs">
     91      <SubType>UserControl</SubType>
     92    </Compile>
     93    <Compile Include="GQAPAssignmentArchiveView.Designer.cs">
     94      <DependentUpon>GQAPAssignmentArchiveView.cs</DependentUpon>
     95    </Compile>
    8796    <Compile Include="GQAPAssignmentView.cs">
    8897      <SubType>UserControl</SubType>
     
    106115  </ItemGroup>
    107116  <ItemGroup>
     117    <EmbeddedResource Include="GQAPAssignmentArchiveView.resx">
     118      <DependentUpon>GQAPAssignmentArchiveView.cs</DependentUpon>
     119    </EmbeddedResource>
    108120    <EmbeddedResource Include="GQAPAssignmentView.resx">
    109121      <DependentUpon>GQAPAssignmentView.cs</DependentUpon>
Note: See TracChangeset for help on using the changeset viewer.