Re: [Help-glpk] Ordered bin packing

2013-01-27 Thread Dmitri Goutnik
gt; 140 > 260 > 330 > 4 70 > 550 > 640 > 715 > 825 ; > > end; > > > Bin 1: total weight 100 > item 1 (40) > item 2 (60) > > Bin 2: total weight 100 > item 3 (30) &

Re: [Help-glpk] Ordered bin packing

2013-01-27 Thread Dmitri Goutnik
t; > This could be done through the objective function. But before going there, > I'm wondering a bit > about the solution you're showing for your example. Wouldn't you want move > item 7 from Bin 3 to Bin 2 to meet your primary objective? > > Jeff > > &

[Help-glpk] Ordered bin packing

2013-01-27 Thread Dmitri Goutnik
Hello everyone, I modified bpp.mod to pack items in predefined number of bins of unlimited capacity so that weight is (approximately) evenly distributed between bins. In addition to weight, each item has an "order" or "position". Is there a way to write an additional model constraint so that it