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
Printable PDFs
- Study notes 2 pages
- Worksheet 3 pages Answer key
- Harder practice questions 1 page Answer key
Short questions
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. , R₂ → R₂ − R₁, R₃ → R₃ + 3R₁:
| Basic | x | y | s₁ | s₂ | RHS |
|---|---|---|---|---|---|
| x | 1 | 0 | 3 | ||
| s₂ | 0 | 1 | 6 | ||
| Z | 0 | 0 | 9 |
No negative entry: at x = 3, y = 0.
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 |
, R₂ → R₂ − 2R₁, R₃ → R₃ + 4R₁:
| Basic | x | y | s₁ | s₂ | RHS | Ratio |
|---|---|---|---|---|---|---|
| y | 1 | 0 | 4 | 8 | ||
| s₂ | 2 | 0 | −1 | 1 | 4 | 2 |
| Z | −1 | 0 | 2 | 0 | 16 |
, , R₃ → R₃ + R₂:
| Basic | x | y | s₁ | s₂ | RHS |
|---|---|---|---|---|---|
| y | 0 | 1 | 3 | ||
| x | 1 | 0 | 2 | ||
| Z | 0 | 0 | 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
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 , : row 1, pivot 4. , R₂ → R₂ − R₁, R₃ → R₃ + 800R₁:
| Basic | x | y | s₁ | s₂ | RHS | Ratio |
|---|---|---|---|---|---|---|
| x | 1 | 0 | 10 | 20 | ||
| s₂ | 0 | 1 | 6 | 4 | ||
| Z | 0 | −200 | 200 | 0 | 8000 |
y comes in; row 2, pivot . , , R₃ → R₃ + 200R₂:
| Basic | x | y | s₁ | s₂ | RHS |
|---|---|---|---|---|---|
| x | 1 | 0 | 8 | ||
| y | 0 | 1 | 4 | ||
| Z | 0 | 0 | 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 Rs 167, a finishing hour Rs 133. One more loom hour is worth more.
