Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/03/12 18:22:41 (13 years ago)
Author:
abeham
Message:

#1614

  • Added Transpose() extension method for double[,] matrices
  • Added IProblemInstanceConsumer<T> interface
  • Implemented general ProblemView which auto-detects all instances a problem can consume
  • Added ability of IProblemInstanceProvider to directly feed a consumer
  • Implemented general view for problem instance providers
  • Fixed a few bugs
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment/3.3/Analyzers/GQAPSolutionArchiveUpdater.cs

    r7438 r7448  
    3131      for (int i = 0; i < front.Count - 1; i++) {
    3232        for (int j = i + 1; j < front.Count; j++) {
    33           if (front[i].FlowDistanceQuality.Value < front[j].FlowDistanceQuality.Value
    34             && front[i].InstallationQuality.Value < front[j].InstallationQuality.Value) {
     33          if (front[i].FlowDistanceQuality.Value <= front[j].FlowDistanceQuality.Value
     34            && front[i].InstallationQuality.Value <= front[j].InstallationQuality.Value) {
    3535            front.RemoveAt(j);
    3636            j--;
    37           } else if (front[i].FlowDistanceQuality.Value > front[j].FlowDistanceQuality.Value
    38             && front[i].InstallationQuality.Value > front[j].InstallationQuality.Value) {
     37          } else if (front[i].FlowDistanceQuality.Value >= front[j].FlowDistanceQuality.Value
     38            && front[i].InstallationQuality.Value >= front[j].InstallationQuality.Value) {
    3939            front.RemoveAt(i);
    4040            j = i;
Note: See TracChangeset for help on using the changeset viewer.