🏅 SS 3🔢 Mathematics📅 First Term

Linear Programming

Hello SS 3 learners! Today we will explore how to make the best decisions using mathematics. Linear programming helps us find the maximum profit or minimum cost when resources are limited. We will learn the steps and try some real‑life Nigerian examples.

💡 1. What is Linear Programming?

Linear programming (LP) is a method to optimise a linear objective function subject to a set of linear inequalities (constraints). The objective could be to maximise profit or minimise cost. The feasible region is the set of all points that satisfy the constraints, and the optimum occurs at a corner point of this region.

🧠 2. Formulating an LP Problem

First, define decision variables (e.g., x = number of shirts, y = number of trousers). Next, write the objective function (e.g., maximise Z = 1500x + 2500y). Then express each limitation as a linear inequality (e.g., 2x + 3y ≤ 120 hours of labour). Finally, add non‑negativity conditions x ≥ 0, y ≥ 0.

🔍 3. Solving by the Graphical Method

For two variables, draw each inequality on a graph, shade the common feasible region, and locate the corner points. Evaluate the objective function at each corner point; the largest (or smallest) value gives the optimum. Remember to check that the point satisfies all constraints.

📌 4. Interpreting the Solution

The optimal values of the decision variables tell you how much of each activity to undertake. The optimum value of the objective function tells you the maximum profit or minimum cost. If the feasible region is unbounded, the problem may have no finite optimum.

✏️ Worked examples

Example 1: A small bakery makes akara (bean cake) and puff‑puff. Each akara yields a profit of N500 and each puff‑puff yields N300. The bakery has at most 8 hours of cooking time per day. Making one akara needs 0.5 hour, and one puff‑puff needs 0.25 hour. Also, the bakery can sell at most 12 units of akara per day. Formulate and solve the LP to maximise daily profit.
Solution: Let x = number of akara, y = number of puff‑puff. Objective: maximise Z = 500x + 300y. Constraints: 0.5x + 0.25y ≤ 8 (time) x ≤ 12 (sales limit) x ≥ 0, y ≥ 0. Convert time constraint: multiply by 4 → 2x + y ≤ 32. Graph the lines 2x + y = 32 and x = 12. Corner points: (0,0), (0,32), (12,8), (12,0). Evaluate Z: (0,0) → 0 (0,32) → 300×32 = 9600 (12,8) → 500×12 + 300×8 = 6000 + 2400 = 8400 (12,0) → 500×12 = 6000 Maximum profit = N9600 at (0,32). Hence the bakery should produce 0 akara and 32 puff‑puff per day.
Example 2: A farmer can plant maize and soybeans on a 10‑hectare farm. Profit per hectare: maize N150,000, soybeans N120,000. Each hectare of maize needs 3 labour‑days, soybeans need 2 labour‑days. The farmer has at most 20 labour‑days available. Also, at least 2 hectares must be soybeans for soil health. Formulate and solve the LP for maximum profit.
Solution: Let x = hectares of maize, y = hectares of soybeans. Objective: maximise P = 150000x + 120000y. Constraints: 3x + 2y ≤ 20 (labour) x + y ≤ 10 (land) y ≥ 2 (soil health) x ≥ 0, y ≥ 0. Rewrite labour: 3x + 2y = 20 → y = (20‑3x)/2. Plot the three lines and find feasible corner points: A (0,2) from y=2 and land limit. B (0,10) from land limit (but labour gives y ≤10, ok). C (4,2) from intersection of labour and y=2. D (2,8) from intersection of labour and land. Evaluate profit: A: 150000×0 + 120000×2 = 240,000 B: 150000×0 + 120000×10 = 1,200,000 C: 150000×4 + 120000×2 = 600,000 + 240,000 = 840,000 D: 150000×2 + 120000×8 = 300,000 + 960,000 = 1,260,000 Maximum profit = N1,260,000 at (x=2, y=8). So plant 2 ha maize and 8 ha soybeans.

⭐ Remember

  • Define decision variables clearly before writing equations.
  • All constraints must be linear (no squares or products).
  • The optimum of a two‑variable LP lies at a corner (vertex) of the feasible region.
  • Check non‑negativity conditions; negative production is not realistic.
  • If the feasible region is empty, the problem has no solution; if unbounded, there may be no finite optimum.

🙌 Try this

A shop sells two types of Nigerian snacks: chin chin (profit N200 each) and plantain chips (profit N350 each). The shop has 6 hours of preparation time daily. Making one chin chin takes 0.1 hour, one plantain chip takes 0.2 hour. At most 30 chin chin can be sold each day. Formulate the LP and determine the maximum possible daily profit.

🎬 Watch and learn

Optimization Techniques Using Linear Programming
Math in 5 Minutes or Less · YouTube

Videos are chosen by YouTube search with SafeSearch on. Grown-ups: tell us if one isn't right.

Sign up free to take the exam and save progress

✍️ Sign up free

10 questions · pass mark 50% · Have an account? Log in to take the exam

✨ Lesson written by AI from the Nigerian curriculum. Please tell us if you spot a mistake.