HSC Maths · Linear Programming
Formulating a Linear Programming Problem
Turning a word problem into an L.P.P.: name the decision variables, write the objective function to be maximized or minimized, and write every condition as a linear inequation, with x ≥ 0 and y ≥ 0.
Why this matters
23 questions, two of them from board papers: a diet problem (two foods, two vitamins) to be formulated and then solved for the minimum cost (2015), and a problem on two machines to be formulated and then solved for the maximum profit (2024). The textbook rows are Exercise 7.3 and its solved examples, which ask for the formulation only, and the word problems of Part II of the Miscellaneous Exercise, which ask for the formulation and then the graphical solution.
Concept 1 of 4: The parts of a linear programming problem
Definition
- A linear programming problem is the problem of maximizing or minimizing a linear function subject to linear constraints.
- Linear means every variable appears with index at most one: no , no .
- The textbook studies L.P.P.s with at most two variables and with non-negativity constraints.
- Linear programming is used to make the best use of limited resources: raw materials, man-power, machine time, money.
| Part | What the textbook says | In a profit problem |
|---|---|---|
| Decision variables | The variables involved in the L.P.P. | , = numbers of items A and B made |
| Objective function | A linear function of the variables which is to be maximized or minimized | , the total profit in RsQ The Miscellaneous Exercise asks this as an MCQ: the objective function is the function to be maximized or minimized, not a constraint. |
| Constraints | Conditions under which the objective function is optimized, written as equations or inequations | Machine hours or raw material used, at most what is available |
| Non-negativity constraints | , | Numbers of items made cannot be negative |
Practise this conceptself-check · 2 quick reps
The same idea in a textbook question:
Example 1 · Linear Programming · Formulation of a Linear Programming Problem
Calling a constraint the objective
Not saying what x and y stand for
Concept 2 of 4: Maximum profit: limited resources give ≤ constraints
Definition
- Step 1: let and be the numbers of the two items; write , .
- Step 2: put the data in a table: one row for each resource, one column for each item, and a column for what is available.
- Step 3: each resource row gives one constraint: amount used amount available.
- Step 4: the objective: Maximize = (profit on one A) + (profit on one B).
- Step 5: write the L.P.P. in full: 'Maximize subject to ...'.
- Use one unit on both sides of a constraint: if times are in minutes, change the hours available into minutes.
A maximum-profit L.P.P.
- profit on one unit of each item
- amount of the first resource used by one unit of each item
- amount of the first resource available
Worked example
Practise this conceptself-check · 2 quick reps
The same idea in a textbook question:
Example 2 · Linear Programming · Formulation of a Linear Programming Problem
Mixing hours and minutes
Reading the table the wrong way round
Concept 3 of 4: Minimum cost: requirements give ≥ constraints
Definition
- Let and be the units of the two foods (fertilizers, fodders, compounds) mixed; , .
- Table: one row for each nutrient, a column for each food, and a last column for the minimum requirement.
- Each nutrient row gives: amount supplied minimum requirement.
- 'At least' and 'minimum of' give ; 'at most' and 'not more than' give .
- Objective: Minimize = (cost of one unit of the first food) + (cost of one unit of the second).
- A constraint may be divided by a common factor: is the same as .
A minimum-cost L.P.P.
- cost of one unit of each food
- units of the first nutrient in one unit of each food
- minimum requirement of the first nutrient
Worked example
Practise this conceptself-check · 2 quick reps
The same idea in a textbook question:
Example 3 · Linear Programming · Formulation of a Linear Programming Problem
Writing ≤ for 'at least'
Maximizing a cost
Concept 4 of 4: Formulate and solve: the full board answer
Definition
- Formulation: let , be ...; the table; the constraints; the objective; the L.P.P. in full.
- Graph: draw each boundary line from its intercepts, decide each side by the origin test, and shade the feasible region.
- Corners: name each vertex; find a meeting point of two lines by solving their equations, and check it in the other constraints.
- Table: the value of at every corner; choose the largest for a maximum, the smallest for a minimum.
- Answer in words: how many of each item, and the maximum profit or minimum cost in Rs.
Order of a full answer
Worked example
Practise this conceptself-check · 2 quick reps
The same idea in a real exam question:
Example 4 · Linear Programming · Formulation of a Linear Programming Problem
Stopping at the formulation
No final sentence
Summary — formulas & gotchas at a glance
A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.
Formulas (3)
- Maximum profit: limited resources give ≤ constraints
A maximum-profit L.P.P.
- Minimum cost: requirements give ≥ constraints
A minimum-cost L.P.P.
- Formulate and solve: the full board answer
Order of a full answer
Reference tables (1)
The parts of a linear programming problem4 rows
| Part | What the textbook says | In a profit problem |
|---|---|---|
| Decision variables | The variables involved in the L.P.P. | , = numbers of items A and B made |
| Objective function | A linear function of the variables which is to be maximized or minimized | , the total profit in RsQ The Miscellaneous Exercise asks this as an MCQ: the objective function is the function to be maximized or minimized, not a constraint. |
| Constraints | Conditions under which the objective function is optimized, written as equations or inequations | Machine hours or raw material used, at most what is available |
| Non-negativity constraints | , | Numbers of items made cannot be negative |
Watch out for (8)
- Calling a constraint the objective→ The parts of a linear programming problem
- Not saying what x and y stand for→ The parts of a linear programming problem
- Mixing hours and minutes→ Maximum profit: limited resources give ≤ constraints
- Reading the table the wrong way round→ Maximum profit: limited resources give ≤ constraints
- Writing ≤ for 'at least'→ Minimum cost: requirements give ≥ constraints
- Maximizing a cost→ Minimum cost: requirements give ≥ constraints
- Stopping at the formulation→ Formulate and solve: the full board answer
- No final sentence→ Formulate and solve: the full board answer
Test yourself on Linear Programming
10 past MH HSC 12 questions from this chapter, timed at 15 minutes and marked the way the exam marks it. You see your score and every answer the moment you finish. Free to start.