algorithm - Variation of Bin packing- with bin and object classes and mutual constraints -



algorithm - Variation of Bin packing- with bin and object classes and mutual constraints -

i'm working on problem variation of bin-packing, bit more general form constraints. problem definition follows-

we have objects of varying sizes, can grouped object classes. have bins of differing capacities, grouped bin classes (all bins within same class have same capacity). object classes have constraints on bins may placed into- example, object of class 'a' can placed in either of bin classes 'x' or 'y'. objective find minimum number of bins in each class, can yield optimal packing of given set of objects.

is there mathematical formulation of problem, , solution methods have come across? extension of bin-packing problem same methods can applied? understand np hard. unable find much how tackle problem, quite helpful if can point me in right direction.

finding exact solution np-hard. finding optimal solution easy.

since objective minimize number of bins each class this.

from input constraints generate map stores object classes each bin class can pack. e.g. constraint "object of class 'a' can placed in either of bin classes 'x' or 'y'. "

m[x] = {a}; m[y] = {a};

generate map processing through constraints. start bin class has minimum number of objects , start packing , mark objects packed[object_a] = true;

now repeat above step bin classes in map in decreasing order of count.

after left objects has no constraints , bin classes has 0 or more objects.

we can extend first fit algorithm solve part. sort bin classes based on object count in them in increasing order. run loop on left on objects set first fit bin class. in each iteration need reorder bin classes based on object count.

i hope helps.

algorithm optimization np bin-packing

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -