Practice: Recurring Shapes of Linear Programs
Question
Recognition · Interpretation
A haulage firm is told: "Each depot must receive at least its scheduled tonnage. Dispatch at the lowest fuel cost." Which shape is this, and on what evidence?
2 hints available, least help first.
Hint 1: Retrieval cue
Which phrase in the description states something that must be achieved, rather than something that is scarce?
Hint 2: Concept cue
Read the two halves separately: one fixes the direction of the constraints, the other the direction of the objective.
Construction · Direct application
A dairy has 480 litres of milk and 90 worker-hours this week. A batch of yoghurt uses 12 litres and 1.5 worker-hours and contributes £9; a batch of cheese uses 30 litres and 3 worker-hours and contributes £21. A supermarket contract obliges the dairy to deliver at least 8 batches of cheese. Maximise contribution.
(a) Name the shape, including anything hybrid about it, and say which clause makes it so.
(b) Write the program, keeping each restriction in the direction the description states it.
(c) The shape predicts which constraints will bind. Test that prediction at the point where both resources are exhausted, and say whether the contract row is satisfied there.
(d) Suppose the contract instead required at least 14 batches of cheese. Say what happens to the point you found, and which constraint then binds in its place.
Write your answer, then compare it with the worked solution.
3 hints available, least help first.
Hint 1: Retrieval cue
Which clause states an obligation rather than a limit, and which direction does an obligation take?
Hint 2: Concept cue
Solve the two resource rows as simultaneous equalities before assuming they meet somewhere usable.
Hint 3: Strategy cue
When a predicted corner comes out negative, check each resource separately: how much of each product would exhaust it, and whether the other resource permits that.
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) The shape. Predominantly packing: "has 480 litres and 90 worker-hours" is capacity language and the objective maximises. The contract clause, "at least 8 batches of cheese", is a requirement floor, so the problem is a hybrid carrying one covering row among its packing rows. (b) The program. Let
The contract row stays
From the second,
A complete answer does each of these:
- names the shape
- recognises hybrid
- states directions
Error diagnosis · Explanation
A colleague models a clinic's staffing week. The description reads: "Each of the three shifts must be covered by at least 4, 6 and 3 nurses respectively. Nurses work one of two patterns; pattern A costs £620 a week and covers shifts 1 and 2, pattern B costs £700 and covers shifts 2 and 3. Meet the cover at least cost."
The submitted model is
The solver returns
(a) Name the shape the description has, and the shape the model was written in.
(b) Identify every direction that is wrong, and say what each wrong row asserts about the clinic.
(c) Explain why the solver reported success, and what that says about using a clean solver status as evidence of a correct model.
(d) Write the model the description asks for, and name the terminal outcome its shape makes most likely.
Write your answer, then compare it with the worked solution.
3 hints available, least help first.
Hint 1: Retrieval cue
Read each constraint aloud as an English sentence about nurses, and compare it with the description.
Hint 2: Concept cue
Check the reported answer against the stated requirements one shift at a time.
Hint 3: Strategy cue
Ask what a solver's status message is a statement about: the program it received, or the problem someone meant to pose.
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) The two shapes. The description is a covering problem: "must be covered by at least" states requirement floors, and "at least cost" minimises. The model is written as a packing problem, maximisation with
|---|---|---|
|
|
|
|
The covering shape makes infeasibility the outcome to watch for: it cannot run to
A complete answer does each of these:
- names the shape
- states directions
- predicts the failure
Classification · Method selection · Explanation
For each description below, name the shape, quote the wording that fixes it, state the direction of the objective and of the constraints, and name the terminal outcome the shape makes most likely.
(a) A water authority must supply at least 40 Ml/day to the north zone and at least 25 Ml/day to the south. Three sources can each feed either zone at different pumping costs. Minimise pumping cost.
(b) A print shop has 60 press-hours and 3,000 sheets this week. A run of leaflets uses 0.5 press-hours and 40 sheets and earns £22; a run of posters uses 1.5 press-hours and 30 sheets and earns £48. Earn as much as possible.
(c) A regional fund of £12m must be placed entirely across four programmes. No programme may take less than 5% or more than 40% of the fund. Programmes have different measured benefit per pound. Maximise total benefit.
(d) One of the three descriptions would change shape if a single clause were added. Choose one, state the clause, and say what the description becomes.
Write your answer, then compare it with the worked solution.
3 hints available, least help first.
Hint 1: Retrieval cue
In each description, find the clause that says what must be achieved or what is scarce, before looking at any number.
Hint 2: Concept cue
A fixed total that must be placed entirely is an equality, not a ceiling. Ask whether the description permits leaving part of it unused.
Hint 3: Strategy cue
For the failure, ask which is possible at all: a problem with nonnegative costs and floors cannot run to
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) Covering. The wording is "must supply at least 40 Ml/day … at least 25 Ml/day": requirement floors, one per zone. The objective minimises pumping cost; the constraints read
A complete answer does each of these:
- names the shape
- cites the language
- states directions
- recognises hybrid
- predicts the failure
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.