简体   繁体   English

如何计算卡车负载中的最大托盘数?

[英]How to calculate the max number of pallets in a truck load?

I want to maximise the number of pallets of material I can send in a shipment. 我想最大程度地增加装运中可以发送的材料托盘的数量。 My pallets of material are one of three different classes: 我的材料托盘是三种不同的类别之一:

  • Material Type 1 (fragile): Can be stacked with another pallet of type 1, can be stacked on top of a pallet of material type 2. 材料类型1(易碎):可以与另一个类型1的托盘堆叠,可以堆叠在材料类型2的托盘顶部。
  • Material Type 2 (sturdy): Can be stacked with another pallet of material type 2, can be stacked underneath material type 1. Cannot be stacked on top of Material 1 物料类型2(坚固):可以与另一个物料类型2的托盘堆叠,可以堆叠在物料类型1的下面。不能堆叠在物料1的顶部
  • Material Type 3 (very fragile): Cannot be stacked. 物料类型3(非常易碎):无法堆叠。

I need to calculate how many pallet footprints or bottom pallets are required for any order if I am given a list of the materials pallets are ordered. 如果给定了我要订购的材料托盘清单,那么我需要计算任何订单需要多少个托盘占地面积或底部托盘。 For example: 10 Pallets of Material Type 1 and 20 pallets of Material Type 2 and 3 pallets of Material type 3. How many Bottom Pallets would the order take up? 例如:物料类型1的10个托盘,物料类型2的20个托盘和物料类型3的3个托盘。该订单将占用多少个底部托盘?

EDIT: Let's set the limit of bottom pallets for the truck to 24. The max pallets stackable are two, that is to say, you can not stack more than two pallets on top of each other. 编辑:让我们将卡车的底部托盘的限制设置为24。可堆叠的最大托盘数为两个,也就是说,您不能在彼此顶部堆叠两个以上的托盘。 Note: Material 2 cannot be stacked on top of Material 1. 注意:物料2不能堆叠在物料1的顶部。

Given the current constaints, the number of footprints necessary for the stacking would be 在目前的情况下,堆叠所需的脚印数量为

t3 + ( 1 if t1 + t2 > 0, 0 otherwise )

where t1 denotes number of pallets of Type 1, t2 denotes the number of pallets of Type 2 and t3 denotes the number of pallets of Type 3. The pallets of Type 3 cannot be stacked together with anything else; 其中t1表示类型1的托盘数, t2表示类型2的托盘数, t3表示类型3的托盘数。类型3的托盘不能与其他东西堆叠在一起。 if pallets of Type 1 or Type 2 are present, they can be stacked together, first the pallets of Type 2 and then the pallets of Type 1. 如果存在类型1或类型2的托盘,则可以将它们堆叠在一起,首先堆叠类型2的托盘,然后堆叠类型1的托盘。

Edit 编辑

Since at most 2 pallets can be stacked on top of each other and each truck can load at most 24 stacks, the answer is different. 由于最多可以将2个托盘堆叠在一起,并且每辆卡车最多可以装载24个堆叠,因此答案是不同的。 The number of total stacks would be 总堆栈数为

#Stacks = t3 + ceil( ( t1 + t2 ) / 2 )

where ceil denotes rounding up to the nearest integer. 其中ceil表示四舍五入到最接近的整数。 Each pallet of Type 3 must be stacked alone, so at least t3 stacks are necessary. 每个3型托盘必须单独堆放,因此至少需要t3堆。 The remaining pallets of Type 1 and Type 2 can be organized in stacks of height at most 2 with apparently no real limitation; 类型1和类型2的其余货盘最多可以堆叠成高度2的堆栈,显然没有实际限制。 if Type 1 and Type 2 go alone into one stack there is no problem, if both Type 1 and Type 2 are present, put Type 2 to the bottom. 如果将类型1和类型2单独放入一个堆栈中,则没有问题,如果同时存在类型1和类型2,则将类型2放在底部。

Finally, the total number of trucks necessary would be 最后,所需的卡车总数为

#Trucks = ceil(#Stacks/24)

where the last truck possibly has some unused space left. 最后一辆卡车可能还有一些未使用的空间。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM