Practice: Constrained Optimization
Question
Recognition · Classification
A bakery decides how many loaves and how many cakes to bake tomorrow. Ovens allow at most 9 hours of baking; a loaf takes 15 minutes, a cake 40. Loaves sell for 3, cakes for 7.
Which of the following is a decision variable?
1 hint available, least help first.
Hint 1: Retrieval cue
Ask which of these the bakery gets to decide, rather than being told or working out.
Direct application
A workshop builds
Select every constraint of the corresponding linear program.
Interpretation
A workshop builds two products. Each chair yields \$40 of profit and each table \$65. The workshop wants the most profitable production plan it can manage within its labour and timber limits.
Select every statement that correctly states the objective of the corresponding linear program.
Classification · Explanation
For each situation, state the decision variables, the objective and its direction, and the constraints.
(a) A haulier has three lorries and must deliver to five depots today. Each lorry costs a different amount per kilometre, each depot must be visited once, and no lorry may drive more than 400 km. The haulier wants the cheapest schedule.
(b) A student has 20 hours before three exams. Each hour spent on a subject raises the expected mark in it, with diminishing returns, and each exam has a pass threshold that must be met. The student wants the highest total mark.
For one of the two, name a quantity mentioned in the description that is not a decision variable, and say why.
Write your answer, then compare it with the worked solution.
2 hints available, least help first.
Hint 1: Retrieval cue
Ask first what the decision maker actually gets to set. Everything else follows from that.
Hint 2: Strategy cue
A quantity you would have to compute after the decisions are made is not a decision variable. Check whether it belongs in the objective or in a constraint.
Compare with the worked solution
Comparing does not record a result. Judging your own written answer cannot show that you can do this without help.
(a) Decision variables: which depots each lorry visits, equivalently the assignment of depots to lorries and the route taken. Objective: minimize total cost, maximize nothing. Constraints: every depot visited exactly once; each lorry's distance at most 400 km; three lorries available. (b) Decision variables: hours allocated to each of the three subjects. Objective: maximize total expected mark. Constraints: hours sum to at most 20; each subject's expected mark at least its pass threshold; hours nonnegative.
Not a decision variable: in (a), total cost. It is determined once the routes are fixed, and it is what the objective measures. In (b), the expected mark in a subject is determined by the hours allocated, so it is not something the student sets directly; it appears in the objective and in the pass-threshold constraints.
A complete answer does each of these:
- variables are choices
- objective with direction
- constraints identified
Error diagnosis · Explanation
A student writes:
A courier must deliver 12 parcels using vans that each hold at most 5 parcels and cost 30 per van sent out. Let
be the total cost. Minimise subject to all 12 parcels being delivered.
This formulation cannot be solved as written. Say precisely what has gone wrong, and rewrite it correctly.
Write your answer, then compare it with the worked solution.
2 hints available, least help first.
Hint 1: Retrieval cue
Ask what the courier actually decides.
Hint 2: Next step
Check whether each named variable could be written down before the others are known. One of them cannot.
Compare with the worked solution
Comparing does not record a result. Judging your own written answer cannot show that you can do this without help.
The fault is that
Correctly: let
A complete answer does each of these:
- variables are choices
- objective with direction
- constraints identified
Session complete
Every question in this set has been through once. What you can do now depends on how it went — practising again is worth more than moving on if any of it was uncertain.
Practice data
Your practice record is stored in this browser only. Clearing it removes every answer and every scheduled review, and cannot be undone.