Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/18/17 10:54:23 (7 years ago)
Author:
rhanghof
Message:

#2817:

  • Added some comments and regions to the source code
  • Addes reference instance files created by the test algoritm of S. Martello, D. Pisinger, D. Vigo
Location:
branches/2817-BinPackingSpeedup/HeuristicLab.Problems.BinPacking/3.3/3D
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2817-BinPackingSpeedup/HeuristicLab.Problems.BinPacking/3.3/3D/BinPacking3D.cs

    r15308 r15424  
    203203    }
    204204
     205    #region Projections
     206       
    205207    private Vector3D ProjectBackward(Vector3D pos) {
    206208      var line = new Line3D(pos, new Vector3D(0, 0, -1));
     
    262264                  .MinItems(x => x.Y).First();
    263265    }
    264 
     266    #endregion
     267
     268    #region Get items
     269
     270   
    265271    private IEnumerable<Tuple<PackingPosition, PackingItem>> GetItemsAbove(PackingPosition pos) {
    266272      var line = new Line3D(pos, new Vector3D(0, 1, 0));
     
    292298        .Select(x => Tuple.Create(x.Position, x.Item));
    293299    }
     300    #endregion
    294301
    295302    public override PackingPosition FindExtremePointForItem(PackingItem item, bool rotated, bool stackingConstraints) {
     
    316323    }
    317324
     325    #region Sliding based packing   
    318326    public override PackingPosition FindPositionBySliding(PackingItem item, bool rotated, bool stackingConstraints) {
    319327      //Starting-position at upper right corner (=left bottom point of item-rectangle is at position item.width,item.height)
     
    365373      }
    366374    }
     375    #endregion
    367376    public override void ExtremePointBasedPacking(ref IList<int> sequence, IList<PackingItem> items, bool stackingConstraints) {
    368377      var temp = new List<int>(sequence);
  • branches/2817-BinPackingSpeedup/HeuristicLab.Problems.BinPacking/3.3/3D/Instances/RandomInstanceProviderWithSRand.cs

    r15423 r15424  
    9999    /// Number of created test items. This items are used for packing them into the bin
    100100    /// </summary>
    101     private static readonly int[] numberOfGeneratedTestItems = new int[] { 10, 15, 20, 25, 30, 35, 40, 45, 50, 60, 70, 80, 90, 100, 150, 200 };   
     101    //private static readonly int[] numberOfGeneratedTestItems = new int[] { 10, 15, 20, 25, 30, 35, 40, 45, 50, 60, 70, 80, 90, 100, 150, 200 };
     102    private static readonly int[] numberOfGeneratedTestItems = new int[] { 50, 100, 150, 200 };
    102103
    103104    /// <summary>
    104105    /// Number of instance for which should be created for each instance
    105106    /// </summary>
    106     private static readonly int numberOfGeneratedInstances = 30;
     107    private static readonly int numberOfGeneratedInstances = 10;
    107108
    108109    #region Random Generator srand48
Note: See TracChangeset for help on using the changeset viewer.