S
S
S0mnium2013-08-21 13:40:17
Mathematics
S0mnium, 2013-08-21 13:40:17

Algorithm for calculating the minimum volume

Khabrovchan tell me the algorithm for calculating the minimum volume of packaging, taking into account that I have n items of different sizes.

Answer the question

In order to leave comments, you need to log in

6 answer(s)
D
DeVitoz, 2013-08-21
@DeVitoz

In general, the minimum volume of packaging is equal to the sum of the volumes of items that need to be placed in the package)) There is no task context. Or you need to calculate the length, width and height of the package, which would fit all the items. Most likely this is the issue. Explain

V
Vladimir F, 2013-08-21
@esvaf

I think it will be interesting habrahabr.ru/post/136225/

M
m08pvv, 2013-08-21
@m08pvv

en.wikipedia.org/wiki/Problem_of_packing_in_to_containers
Well, or start with a volume equal to the sum and try to pack until it fits, increasing the volume.

D
DeVitoz, 2013-08-21
@DeVitoz

Do the shape and dimensions of the packaging side matter or can they be arbitrary?

H
hasu0, 2013-08-21
@hasu0

I think that you will not find a ready-made algorithm right off the bat. As you have already been pointed out, you need to look at the problems of two-dimensional packing and generalize them for yourself, and then solve them with some kind of local descent or simulated annealing.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question