Decision Mathematics 1 (Paper 3D or 4D), topic 5 (Linear programming), spec point 5.1
The three parts
- Decision variables: say exactly what each letter means, with units (for example " is the number of chairs made each week").
- Objective: the expression to maximise or minimise, such as profit .
- Constraints: inequalities for each limited resource, plus non-negativity: .
Worked example
A workshop makes chairs and tables. A chair needs 1 hour of cutting and 2 hours of finishing; a table needs 1 hour of cutting and 1 hour of finishing. Also, a chair uses 1 unit of fabric and a table 3 units. Each week there are 8 hours of cutting, 12 hours of finishing and 18 units of fabric. A chair makes £3 profit, a table £2.
Let be the number of chairs and the number of tables made each week.
Maximise subject to
Slack, surplus and artificial variables
To use the Simplex algorithm, inequalities become equations.
- For a constraint, add a slack variable (the unused amount): becomes .
- For a constraint, subtract a surplus variable (the amount over): becomes .
- A constraint also needs an artificial variable, so that the starting point (all others zero) is allowed: .
All slack, surplus and artificial variables are .
Words to watch
- "at least" means ; "at most" or "no more than" means .
- "at least twice as many chairs as tables" means .
- "at least 30% of the items are tables" means .
Common mistake: defining variables vaguely (" = chairs"). Say what is counted and over what time, for example "the number of chairs made per week".
Exam tip: simplify each constraint (clear fractions, collect terms) and state the non-negativity conditions. Most formulation questions give a mark for each correct constraint.
Check yourself
Write "the number of is at least half the number of " as an inequality.
, or .
What does a slack variable represent?
The unused amount of a resource.
Which constraints need an artificial variable?
constraints (and equalities).