题目
A bakery makes three types of doughnut. These are ring, jam and custard. The bakery has the following constraints on the number of doughnuts it must make each day.
- The total number of doughnuts made must be at least 200
- They must make at least three times as many ring doughnuts as jam doughnuts
- At most 70% of the doughnuts the bakery makes must be ring doughnuts
- At least a fifth of the doughnuts the bakery makes must be jam doughnuts
It costs 8 pence to make each ring doughnut, 10 pence to make each jam doughnut and 14 pence to make each custard doughnut. The bakery wants to minimise the total daily costs of making the required doughnuts.
Let represent the number of ring doughnuts, let represent the number of jam doughnuts and let represent the number of custard doughnuts the bakery makes each day.
(a) Formulate this as a linear programming problem stating the objective and listing the constraints as simplified inequalities with integer coefficients.
On a given day, instead of making at least 200 doughnuts, the bakery requires that exactly 200 doughnuts are made. Furthermore, the bakery decides to make the minimum number of jam doughnuts which satisfy all the remaining constraints.
Given that the bakery still wants to minimise the total cost of making the required doughnuts, use algebra to
(b) (i) calculate the number of each type of doughnut the bakery will make on that day,
(ii) calculate the corresponding total cost of making all the doughnuts.
题目中文翻译
一家面包店制作三种类型的甜甜圈:环形、果酱和奶油。面包店对每天必须制作的甜甜圈数量有以下约束。
- 制作的甜甜圈总数必须至少 200 个
- 环形甜甜圈必须至少是果酱甜甜圈的三倍
- 面包店制作的甜甜圈中最多 70% 必须是环形甜甜圈
- 面包店制作的甜甜圈中至少五分之一必须是果酱甜甜圈
制作每个环形甜甜圈成本为 8 便士,每个果酱甜甜圈为 10 便士,每个奶油甜甜圈为 14 便士。面包店希望最小化制作所需甜甜圈的每日总成本。
设 表示环形甜甜圈数量, 表示果酱甜甜圈数量, 表示面包店每天制作的奶油甜甜圈数量。
(a) 将此表述为线性规划问题,说明目标并列出简化为整数系数不等式的约束条件。
在某一天,面包店要求恰好制作 200 个甜甜圈,而不是至少 200 个。此外,面包店决定制作满足所有剩余约束的最少数量的果酱甜甜圈。
已知面包店仍然希望最小化制作所需甜甜圈的总成本,使用代数方法
(b) (i) 计算面包店当天将制作的每种甜甜圈的数量,
(ii) 计算制作所有甜甜圈的相应总成本。
解答
(a)
解法一
思路
展开
先用三种甜甜圈的单位成本写出目标函数,再逐句翻译约束。两个百分比条件先以总数 表示,随后展开并整理成整数系数不等式。
答题过程
展开
Let be the total daily cost in pence. The objective is
The total number of doughnuts must be at least , so
There must be at least three times as many ring doughnuts as jam doughnuts, so
At most may be ring doughnuts. Therefore
Multiplying by and simplifying gives
At least one fifth must be jam doughnuts, so
Multiplying by and simplifying gives
Hence the constraints, with integer coefficients, are
In context, , and are integers.
(b)(i)
解法一
思路
展开
总数固定为 200 后,70% 与五分之一条件直接给出 和 。题目另外指定果酱甜甜圈取最少,因此先令 。把 代入成本函数后,可看出成本随 增加而下降,所以在约束范围内取最大的 。
答题过程
展开
Since exactly doughnuts are made,
The percentage constraints give
and
The bakery chooses the minimum possible number of jam doughnuts, so
Also,
Substituting into the cost function,
Thus the cost is minimised by taking the greatest permitted value of , namely
This also satisfies , since . Finally,
Therefore the bakery makes
(b)(ii)
解法一
思路
展开
把 (b)(i) 得到的三种数量代回成本函数。由于单价以便士给出,先得到总便士数,再换算为英镑。
答题过程
展开
The total cost is
Therefore the corresponding total cost is