Slide the objective line
The baker earns ₹2 on a cake and ₹5 on a tart. Every mix that earns, say, ₹10 lies on one straight line. More money means the line moves further out.
2x + 5y = Z 2 x + 5 y = z
Drag to move · pinch or scroll to zoom · tap to read a point
Z at O(0, 0)0
Z at A(4, 0)8
Z at B(3, 1)11
Z at C(0, 2)10
largest Z over the corners11
Step by step
- Z = 2x + 5y is the profit. For one value of Z, the points form a line. Move Z: the line slides, always parallel.
- While the line crosses the shaded region, that profit can be made.
- Slide Z up until the line only just touches the region. That happens at a corner: B(3, 1), Z = 11.
- That is why the best value is always at a corner. You only need to check the corners.
Try this
- Find the largest Z at which the line still touches the region.
- Which corner gives the smallest Z?
- Make the line pass through C. What is Z there?
Practise this
Problems on Linear Programming with checks, marks and help from Sir are on the exam site (sign in). Practise Linear Programming on the exam site →