- Timestamp:
- 10/18/17 10:54:23 (7 years ago)
- 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 203 203 } 204 204 205 #region Projections 206 205 207 private Vector3D ProjectBackward(Vector3D pos) { 206 208 var line = new Line3D(pos, new Vector3D(0, 0, -1)); … … 262 264 .MinItems(x => x.Y).First(); 263 265 } 264 266 #endregion 267 268 #region Get items 269 270 265 271 private IEnumerable<Tuple<PackingPosition, PackingItem>> GetItemsAbove(PackingPosition pos) { 266 272 var line = new Line3D(pos, new Vector3D(0, 1, 0)); … … 292 298 .Select(x => Tuple.Create(x.Position, x.Item)); 293 299 } 300 #endregion 294 301 295 302 public override PackingPosition FindExtremePointForItem(PackingItem item, bool rotated, bool stackingConstraints) { … … 316 323 } 317 324 325 #region Sliding based packing 318 326 public override PackingPosition FindPositionBySliding(PackingItem item, bool rotated, bool stackingConstraints) { 319 327 //Starting-position at upper right corner (=left bottom point of item-rectangle is at position item.width,item.height) … … 365 373 } 366 374 } 375 #endregion 367 376 public override void ExtremePointBasedPacking(ref IList<int> sequence, IList<PackingItem> items, bool stackingConstraints) { 368 377 var temp = new List<int>(sequence); -
branches/2817-BinPackingSpeedup/HeuristicLab.Problems.BinPacking/3.3/3D/Instances/RandomInstanceProviderWithSRand.cs
r15423 r15424 99 99 /// Number of created test items. This items are used for packing them into the bin 100 100 /// </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 }; 102 103 103 104 /// <summary> 104 105 /// Number of instance for which should be created for each instance 105 106 /// </summary> 106 private static readonly int numberOfGeneratedInstances = 30;107 private static readonly int numberOfGeneratedInstances = 10; 107 108 108 109 #region Random Generator srand48
Note: See TracChangeset
for help on using the changeset viewer.