怎样安排车辆费用最低

  • 时间:2020-06-17 18:37:02
  • 分类:数学世界
  • 阅读:142 次

怎样安排车辆费用最低?货场到A城1154米,大卡车每辆每次的运输费是150元,小卡车每辆每次的运输费是120元,大卡车每次装24箱,小卡车每次装15箱。总货物是135箱。求把这些货物运送到A城,怎样安排车辆费用最低?

数学题解答:大卡车运一箱的成本是:150÷24=50/8(元);小卡车运一箱的成本是:120÷15=8(元)。显然50/8小于8,所以大卡车运成本会低一些。

尽量安排大卡车,同时考虑尽量不要让货厢空余。至于“1154千米”,是起干扰作用的条件,不必考虑它。

列出24与15各自的倍数,然后找出合适的搭配,使加起来的总箱数为135箱且大卡车尽可能地多。所以最好的方法就是5辆大卡车,一辆小卡车。也可以说让大卡车运5次,小卡车运1次。因为:
135=24×5+15×1。

这样一来,费用就是:150×5+120×1=870(元)。应该就是最低的费用了。

推荐阅读:
Prefix Sum Algorithm to Count Number of Nice Subarrays  How to Append Another List to a Existing List in Python? (Differ  Linear Algorithm to Check If All 1’s Are at Least Length K  Finding the Root of a Tree (Finding the Common Destination)  Does WIFI Extender Boost Wireless Signal? How to Fix Slow WIFI?  Bruteforce with Memoization to Count the Square Digit Chains  How to Merge Two List/Iterators in Java?  How to Design a First Unique Number Class with O(1)?  Get Help With SQL Database Design and Development For Your Busin  Compute the Minimum Value to Get Positive Step by Step Sum using 
评论列表
添加评论