Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/24/12 17:57:51 (12 years ago)
Author:
abeham
Message:

#1855:

  • Added possibility to name row and column in matrix (to have more interpretable results)
  • Added a "standard" assignment problem
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.LinearAssignment/3.3/LAPAssignment.cs

    r8022 r8093  
    4444
    4545    [Storable]
     46    private StringArray rowNames;
     47    public StringArray RowNames {
     48      get { return rowNames; }
     49      set {
     50        bool changed = (rowNames != value);
     51        rowNames = value;
     52        if (changed) OnPropertyChanged("RowNames");
     53      }
     54    }
     55
     56    [Storable]
     57    private StringArray columnNames;
     58    public StringArray ColumnNames {
     59      get { return columnNames; }
     60      set {
     61        bool changed = (columnNames != value);
     62        columnNames = value;
     63        if (changed) OnPropertyChanged("ColumnNames");
     64      }
     65    }
     66
     67    [Storable]
    4668    private Permutation assignment;
    4769    public Permutation Assignment {
     
    81103      this.quality = quality;
    82104    }
     105    public LAPAssignment(DoubleMatrix costs, StringArray rowNames, StringArray columnNames, Permutation assignment)
     106      : this(costs, assignment) {
     107      this.rowNames = rowNames;
     108      this.columnNames = columnNames;
     109    }
     110    public LAPAssignment(DoubleMatrix costs, StringArray rowNames, StringArray columnNames, Permutation assignment, DoubleValue quality)
     111      : this(costs, rowNames, columnNames, assignment) {
     112      this.quality = quality;
     113    }
    83114
    84115    public override IDeepCloneable Clone(Cloner cloner) {
Note: See TracChangeset for help on using the changeset viewer.