Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/02/13 04:26:26 (12 years ago)
Author:
jhelm
Message:

#1966: Implemented additional Operator-Wrappers for PackingSequence and GroupingVector; Implemented additional problem-class for Rosenbauer-Problemstatement; Added marker-interfaces for decoder-types;

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Shapes/CuboidPackingShape.cs

    r9440 r9563  
    130130      //Using "Clustered-Area-Height"-comparison as descr
    131131
    132       int result = this.MultipliedMeasures.CompareTo(other.MultipliedMeasures);
     132      int result = (this.Width * this.Depth).CompareTo (other.Width * other.Depth);
     133   
     134    if (result == 0)
     135    result = this.MultipliedMeasures.CompareTo(other.MultipliedMeasures);
    133136      //if (result == 0) {
    134137      //  result = this.Depth.CompareTo(other.Depth) + this.Width.CompareTo(other.Width);
    135138      //  if (result == 0) {       
    136139      //    result = this.Width.CompareTo(other.Width);
    137           if (result == 0)               
    138             result = this.Height.CompareTo(other.Height);
     140    if (result == 0)               
     141    result = this.Height.CompareTo(other.Height);
    139142      //  }
    140143      //}
Note: See TracChangeset for help on using the changeset viewer.