怎样安排车辆费用最低

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

怎样安排车辆费用最低?货场到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(元)。应该就是最低的费用了。

推荐阅读:
4 Mistakes Newbie Travel Bloggers Make  The Best Ways to Avoid Distractions whilst Blogging  7 Content Marketing Tips for First-Time Bloggers  How to Check if Array/List Contains Duplicate Numbers or Strings  Counting the Stepping Numbers between A Range using Depth/Breadt  Intersection of Three Sorted Arrays using Three Pointers  How to Reverse Substrings Between Each Pair of Parentheses using  Backpacking Problem Variation via Greedy Approach: How Many Appl  Sliding Window to Get Equal Substrings Within MaxCost Budget  Beginner’s Guide to Python’ Enumerate Function 
评论列表
添加评论