A furniture workshop has only so many hours of carpentry and finishing each week. How many chairs and tables should it make to earn the most profit? Questions like this, where you get the best result within limits, are called optimisation problems. When the limits and the goal are linear, the method is linear programming. Businesses use it to plan production, transport, diets and schedules. This HSC lesson shows how to set up a problem, draw the feasible region and find the best corner.
In this lesson you will learn
- Decision variables, constraints and the objective function
- Turning a word problem into inequalities
- Drawing the feasible region
- The corner point method
- Maximising and minimising, with a worked example
You should know linear inequalities and simultaneous equations.
The Parts of a Linear Programme
- Decision variables: the quantities you choose, such as x chairs and y tables.
- Constraints: the limits, written as linear inequalities. Usually x ≥ 0 and y ≥ 0 too, since you cannot make a negative number of items.
- Objective function: what you want to maximise or minimise, such as profit Z = 400x + 600y.
- Feasible region: the set of points that satisfy every constraint.
Setting Up a Problem
A workshop makes chairs and tables.
- A chair needs 1 hour of carpentry and 3 hours of finishing.
- A table needs 2 hours of carpentry and 2 hours of finishing.
- Each week there are 40 hours of carpentry and 60 hours of finishing.
- Profit is ৳400 per chair and ৳600 per table.
Let x = number of chairs, y = number of tables.
Maximise Z = 400x + 600y
subject to x + 2y ≤ 40 (carpentry)
3x + 2y ≤ 60 (finishing)
x ≥ 0, y ≥ 0
Drawing the Feasible Region
- Draw each boundary line, for example x + 2y = 40 through (40, 0) and (0, 20).
- Test a point such as (0, 0) to see which side satisfies the inequality, and shade it.
- The feasible region is where all the shaded parts overlap.
The Corner Point Method
Corner point theorem
If the objective function has a maximum or minimum on the feasible region, it happens at a corner (vertex) of the region.
Corners of the region:
(0, 0), (20, 0), (0, 20), and where the two lines cross:
x + 2y = 40 and 3x + 2y = 60 → subtract: 2x = 20, x = 10, y = 15
Corner Z = 400x + 600y
(0, 0) 0
(20, 0) 8,000
(0, 20) 12,000
(10, 15) 4,000 + 9,000 = 13,000 ← maximum
Make 10 chairs and 15 tables for the largest profit, ৳13,000.
Why corners? Lines of equal profit, like 400x + 600y = 12,000, are all parallel. As you slide this line outwards to increase profit, the last point of the region it touches is a corner.
Minimising
The same method finds a minimum, such as the lowest cost. The region is often open on the outside, and the minimum is at a corner nearest the origin.
Minimise C = 3x + 2y
subject to x + y ≥ 6, x + 3y ≥ 10, x ≥ 0, y ≥ 0
Corners: (0, 6), (10, 0), and the crossing point:
x + y = 6, x + 3y = 10 → 2y = 4, y = 2, x = 4 → (4, 2)
C(0, 6) = 12, C(4, 2) = 16, C(10, 0) = 30
Minimum C = 12 at (0, 6)
Common Mistakes
- Shading the wrong side of a line. Always test a point.
- Forgetting x ≥ 0 and y ≥ 0.
- Checking only some corners. Test every corner of the region.
- Giving a fractional answer when the items must be whole. Then check the nearby whole-number points.
Practice Exercises
Exercise 1. Maximise Z = 5x + 4y subject to x + y ≤ 8, x ≤ 5, x ≥ 0, y ≥ 0.
Show answer
Corners: (0, 0), (5, 0), (5, 3), (0, 8). Z values: 0, 25, 37, 32. Maximum Z = 37 at (5, 3).
Exercise 2. A farmer has 10 hectares. Rice gives ৳30,000 profit per hectare and jute ৳20,000. Rice needs 4 workers per hectare and jute 2, with 32 workers available. Set up the problem.
Show answer
Maximise Z = 30000x + 20000y subject to x + y ≤ 10, 4x + 2y ≤ 32, x, y ≥ 0. The corners are (0, 0), (8, 0), (6, 4) and (0, 10); the best is (6, 4), giving ৳260,000.
Exercise 3. In the workshop example, what is the best plan if the table profit falls to ৳200?
Show answer
Z = 400x + 200y. Corners give 0, 8,000, 4,000 and 7,000. The best is (20, 0): 20 chairs and no tables, for ৳8,000.
Frequently Asked Questions
What if there are more than two variables?
Then you cannot draw a graph. Computers use the simplex method, invented by George Dantzig in 1947, which moves from corner to corner of the region in many dimensions. Airlines and factories solve problems with thousands of variables this way.
Can there be more than one best answer?
Yes. If the profit line is parallel to an edge of the region, every point on that edge gives the same best value.
Summary
- A linear programme has decision variables, linear constraints and a linear objective.
- The feasible region is the overlap of all the constraints.
- The best value is at a corner: list the corners and evaluate the objective at each.
- The same method minimises costs; check that answers make sense in context.
