Skip to content

← Grade 12 Mathematics

Exam practice

Every question from the end of every unit, with hints and answers to open. After you check an answer, mark how you did, and come back to the ones you didn’t get.

3 questions

Unit 16 · Linear Programming Problems

Short questions

1.

Using the simplex method, maximize Z = 3x − y subject to 2x + y ≤ 6, x + 3y ≤ 9, x, y ≥ 0. (3 marks)

Hint

One pivot is enough here.

Answer
Basic x y s₁ s₂ RHS Ratio
s₁ 2 1 1 0 6 3
s₂ 1 3 0 1 9 9
Z −3 1 0 0 0

x comes in, s₁ goes out. R1→12R1 R_1 \to \frac{1}{2}R_1 , R₂ → R₂ − R₁, R₃ → R₃ + 3R₁:

Basic x y s₁ s₂ RHS
x 1 12 \frac{1}{2} 12 \frac{1}{2} 0 3
s₂ 0 52 \frac{5}{2} −12 -\frac{1}{2} 1 6
Z 0 52 \frac{5}{2} 32 \frac{3}{2} 0 9

No negative entry: Zmax⁡=9 Z_{\max} = 9 at x = 3, y = 0.

2.

Using the simplex method, maximize Z = 3x + 4y subject to x + 2y ≤ 8, 3x + 2y ≤ 12, x, y ≥ 0. Name the corners the method passes through. (5 marks)

Hint

y comes in first; the second tableau still has a negative entry.

Answer
Basic x y s₁ s₂ RHS Ratio
s₁ 1 2 1 0 8 4
s₂ 3 2 0 1 12 6
Z −3 −4 0 0 0

R1→12R1 R_1 \to \frac{1}{2}R_1 , R₂ → R₂ − 2R₁, R₃ → R₃ + 4R₁:

Basic x y s₁ s₂ RHS Ratio
y 12 \frac{1}{2} 1 12 \frac{1}{2} 0 4 8
s₂ 2 0 −1 1 4 2
Z −1 0 2 0 16

R2→12R2 R_2 \to \frac{1}{2}R_2 , R1→R1−12R2 R_1 \to R_1 - \frac{1}{2}R_2 , R₃ → R₃ + R₂:

Basic x y s₁ s₂ RHS
y 0 1 34 \frac{3}{4} −14 -\frac{1}{4} 3
x 1 0 −12 -\frac{1}{2} 12 \frac{1}{2} 2
Z 0 0 32 \frac{3}{2} 12 \frac{1}{2} 18

Zmax⁡=18 Z_{\max} = 18 at x = 2, y = 3, through the corners (0, 0), (0, 4) with Z = 16, and (2, 3). Check: 2 + 6 = 8 ✓, 6 + 6 = 12 ✓.

Long question

3.

A weavers’ cooperative makes dhaka shawls and lengths of topi cloth. A shawl takes 4 hours on the loom and 1 hour of finishing; a length of topi cloth takes 2 hours on the loom and 2 of finishing. Each week there are 40 loom hours and 16 finishing hours. A shawl earns Rs 800 and a length of cloth Rs 600. (The numbers are made up.)

  • a.Write the problem as a linear programming problem. (2 marks)
  • b.Solve it by the simplex method. (5 marks)
  • c.Which is worth more to the cooperative, one more loom hour or one more finishing hour? (1 mark)
Hint

c. Read the final bottom row under s₁ and s₂.

Answer
  • a.Let x shawls and y lengths of cloth be made. Maximize Z = 800x + 600y subject to 4x + 2y ≤ 40 (loom), x + 2y ≤ 16 (finishing), x, y ≥ 0.
  • b.x comes in (−800); ratios 404=10 \frac{40}{4} = 10 , 161=16 \frac{16}{1} = 16 : row 1, pivot 4. R1→14R1 R_1 \to \frac{1}{4}R_1 , R₂ → R₂ − R₁, R₃ → R₃ + 800R₁:
Basic x y s₁ s₂ RHS Ratio
x 1 12 \frac{1}{2} 14 \frac{1}{4} 0 10 20
s₂ 0 32 \frac{3}{2} −14 -\frac{1}{4} 1 6 4
Z 0 −200 200 0 8000

y comes in; row 2, pivot 32 \frac{3}{2} . R2→23R2 R_2 \to \frac{2}{3}R_2 , R1→R1−12R2 R_1 \to R_1 - \frac{1}{2}R_2 , R₃ → R₃ + 200R₂:

Basic x y s₁ s₂ RHS
x 1 0 13 \frac{1}{3} −13 -\frac{1}{3} 8
y 0 1 −16 -\frac{1}{6} 23 \frac{2}{3} 4
Z 0 0 5003 \frac{500}{3} 4003 \frac{400}{3} 8800

8 shawls and 4 lengths of cloth a week, Rs 8,800. Check: 32 + 8 = 40 loom hours, 8 + 8 = 16 finishing hours: both used up.
c. The shadow prices: a loom hour is worth 5003≈ \frac{500}{3} \approx Rs 167, a finishing hour 4003≈ \frac{400}{3} \approx Rs 133. One more loom hour is worth more.