# 7.2 Application of Linear Programming

SPM Form 5 Additional Mathematics (KSSM) · Chapter 7 Linear Programming. Interactive version with diagrams: https://spmtuition.com/add-math/form-5/chapter-7-linear-programming/7-2-application-of-linear-programming/

## Objective function

*Diagram: Move the objective line. Find its last contact with the feasible region.* (interactive on the web page)

Write the quantity to maximise or minimise as a linear expression, such as P = ax + by.

For a bounded polygonal feasible region, a linear objective reaches an optimum at a vertex.

Evaluate all vertices, or slide an objective line parallel to itself until its final contact with the region.

**Worked example:** Maximise P = 3x + 2y subject to x,y ≥ 0, x + y ≤ 4 and x ≤ 3.

1. Vertices are (0,0), (3,0), (3,1) and (0,4).
2. Corresponding P values are 0, 9, 11 and 8.
3. The greatest value is 11 at (3,1).

**Answer:** Maximum P = 11 at (3,1)

### Practice questions: Objective function

1. An objective is profit RM5 per A and RM8 per B. What is P?
   A. 5x + 8y
   B. 8x + 5y
   C. 13xy
   D. 5x − 8y
   **Answer:** A. 5x + 8y. Add each unit profit multiplied by its quantity.

2. For P = 2x + 3y, find P at (4, 1).
   A. 9
   B. 11
   C. 14
   D. 10
   **Answer:** B. 11. P = 2(4) + 3(1).

3. Where should you test a linear objective on a bounded feasible polygon?
   A. Only at the centre
   B. At random points only
   C. At every vertex
   D. Only at the origin
   **Answer:** C. At every vertex. At least one vertex achieves the optimum.

## Interpreting the optimum

![Two feasible regions. In the first, the objective line last touches the region at one vertex. In the second, the objective line is parallel to an edge, so the whole edge is optimal.](https://spmtuition.com/diagrams/addmath-optimum-cases.svg)

*Move the line in the direction that improves the objective. Its last contact gives the optimum.*

If two adjacent vertices give the same objective value, every point on their joining feasible edge is also optimal.

When x and y count whole items, check feasible integer points. A fractional optimum may not be usable.

> **Exam tip:** State both the best objective value and the quantities that achieve it.

### Practice questions: Interpreting the optimum

1. A solution gives 2.6 buses. What should you do?
   A. Use 2.6 buses
   B. Round automatically without checking
   C. Ignore all constraints
   D. Check feasible whole-number alternatives
   **Answer:** D. Check feasible whole-number alternatives. A rounded point can violate a constraint.

2. Two adjacent optimal vertices give equal profit. What follows?
   A. Every point on their feasible edge has that profit
   B. Only the midpoint works
   C. There is no optimum
   D. Profit is zero
   **Answer:** A. Every point on their feasible edge has that profit. The linear objective is constant along that edge.

---

Online SPM tuition for Physics, Chemistry, Biology, Mathematics and Additional Mathematics, Form 4–5, in English or BM. Students who want tuition or extra help can request it at https://spmtuition.com/tuition/.
