Тёмный

Greedy bin packing algorithm 

Sebastian Bitsch
Подписаться 38
Просмотров 6 тыс.
50% 1

This video demonstrates the running process for a 2D implementation of a greedy two-level search algorithm for the 2D rectangular packing problem - following the process outlined in Chen and Huang (2007) (see sources).
In the right pane is an overview of all the rectangles that are to be packed. The rectangles colored in blue are the boxes that have not yet been packed, and the ones colored grey have already been packed into the left pane.
The left pane is the packing area, where the goal is to fit in as many of the boxes from the right pane as possible. The algorithm is said to converge successfully if all the boxes are packed in the left pane with no gaps.
The rectangles are placed into the container one by one and each rectangle is packed at a position by a corner-occupying action so that it touches at least two items without overlapping other already packed rectangles. At the first level of the algorithm, a simple algorithm called A0 selects and packs one rectangle according to the highest degree first rule at every iteration of packing. At the second level, A0 is itself used to evaluate the benefit of a CCOA more globally.
The algorithm is implemented in python using matplotlib for visualization where the running time has been slowed for the sake of recording.
Sources:
doi.org/10.1016/j.cie.2007.04...
doi.org/10.1016/S0377-2217(99...
en.wikipedia.org/wiki/Bin_pac...
Source code:
github.com/SebastianBitsch/bi...

Наука

Опубликовано:

 

29 май 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 11   
@muhammedmertulupinar7662
@muhammedmertulupinar7662 5 месяцев назад
I want to fill a closed box that does not have a specific geometric shape with small circles. The circle packing algorithm is my starting point. Do you have any advice on this subject?
@sebastianbitsch
@sebastianbitsch 5 месяцев назад
Hi, circle packing is an entirely different problem. Read through the wiki page there a a bunch of example algorithms you could try implementing. Maybe try a physics based approach for packing an arbitrary shape
@Bmonney1985
@Bmonney1985 7 месяцев назад
Thanks! It works! Does the code have a license or can it be used freely?
@sebastianbitsch
@sebastianbitsch 7 месяцев назад
No license, use it as you please
@TheKir3z
@TheKir3z 7 месяцев назад
Hello again, I cloned your project but it gave an error in util file (line 48). I changed rects with all_rects and it started to run. It just gave the best solution for first test cases but it didnt find a successful config for others. In the paper, they said that for first three testcases, there would be no gap. Btw, I changed the plotting variable to false bc when it's true, it takes too much time.
@sebastianbitsch
@sebastianbitsch 7 месяцев назад
It is a greedy algorithm so it isn’t guaranteed to converge optimally - usually you run it multiple times and pick the best packing
@TheKir3z
@TheKir3z 7 месяцев назад
@@sebastianbitsch I know but every time I tried, it give me the same solution. But ty, i'll try again later
@sebastianbitsch
@sebastianbitsch 6 месяцев назад
@@TheKir3z ok, otherwise open a issue on GitHub if the problem persists
@TheKir3z
@TheKir3z 7 месяцев назад
Bro, if the source code is working, you'll help me a lot :)
@sebastianbitsch
@sebastianbitsch 7 месяцев назад
I am not actively maintaining it - but it should still work. If not let me know
@TheKir3z
@TheKir3z 7 месяцев назад
@sebastianbitsch ok, I'll check it out at weekend.
Далее
Bin Packing Approximation
6:21
Просмотров 14 тыс.
КАК Я ЭТО СДЕЛАЛА?
00:13
Просмотров 303 тыс.
Викторина от МАМЫ 🆘 | WICSUR #shorts
00:58
The hidden beauty of the A* algorithm
19:22
Просмотров 849 тыс.
OCR Discrete: Algorithms 3-4
10:00
Просмотров 5 тыс.
Solving the 3D Packing Problem
9:24
Просмотров 2,5 тыс.
15 Sorting Algorithms in 6 Minutes
5:50
Просмотров 24 млн
Bin Packing Algorithms
13:26
Просмотров 65 тыс.
Optimizing Container Space with AI and LiDAR
6:29
Просмотров 1,3 тыс.
A new way to generate worlds (stitched WFC)
10:51
Просмотров 519 тыс.
Quest To Find The Largest Number
11:43
Просмотров 297 тыс.
КРУТОЙ ТЕЛЕФОН
0:16
Просмотров 6 млн
ЗАБЫТЫЙ IPHONE 😳
0:31
Просмотров 20 тыс.
Проверил, как вам?
0:58
Просмотров 106 тыс.