Can someone point me in the right direction to solve the following?
I have a machine that is able to process a batch containing any number of items, each with some length $L_n$, as long as the total length of all items in each batch does not exceed some quantity $Q$.
If I have a large set of items, how do I find the optimal allocation of items into $j$ batches that minimize the total "wasted" space:
$\sum_{i=1}^{j} (Q - L_1 - L_2 - .. - L_n)$
I've looked at job shop and single-machine scheduling, but I'm unsure of how to apply these methods in practice.
Please let me know if the question needs clarification. Thanks for your help!