Say each box b has a positive weight w, and the maximum weight each truck can carry is W. To pack the boxes into N trucks preserving the order is to assign each box to one of the trucks 1, . . . , N so that:
บอกว่า b แต่ละกล่องมีบวกน้ำหนัก w และแต่ละรถบรรทุกสามารถบรรทุกน้ำหนักสูงสุด W. แพ็คกล่องเป็นรถบรรทุก N รักษาใบสั่งเป็นการ กำหนดให้กล่องแต่ละกล่องของรถบรรทุก 1,..., N เพื่อให้: