All 30 questions UPSC has asked on linear programming: graphical and simplex methods in the Mathematics Optional (Paper II, Linear Programming) from 2009 to 2026, solved step by step – latest first.
Try them yourself first: the same questions, without solutions, are on our Linear Programming topic-wise PYQs page.
How we check these solutions
These are our own solutions, prepared with AI help. UPSC does not publish official answers. Every solution is checked a second way before it goes up, and says how:
- ✓ Checked by computer the answer was worked out again independently with a linear-programming solver (SciPy/HiGHS), with the simplex tables recomputed in exact fractions.
- ✓ Proof checked step by step for “prove that” questions, every step was checked against the definitions.
Spotted a mistake or a neater method? Tell us in the comments below or through Report an error.
Jump to a question (year · question number):
2026 · 1e 2026 · 4c 2025 · 1e 2024 · 1e 2023 · 1e 2023 · 3c 2022 · 1e 2022 · 3c 2021 · 4c 2020 · 1e 2020 · 3b 2019 · 1e 2019 · 3b 2018 · 1e 2018 · 2b 2018 · 3c 2017 · 1e 2017 · 3c 2016 · 1e 2016 · 2c 2015 · 3c 2015 · 4c 2014 · 1e 2014 · 4c 2013 · 1e 2013 · 4c 2012 · 1d 2011 · 1d 2009 · 1f 2009 · 4b
Solve the dual problem of the following linear programming problem by the graphical method : Minimize subject to the constraints :
Solution
The problem has 4 variables but only 2 constraints, so its dual has 2 variables and can be drawn.
Dual. With dual variables for the two constraints: subject to
Graphical solution. Draw the four lines , , , . The feasible region is the polygon on the origin side of all four lines, in the first quadrant. Its corner points come from intersecting neighbouring lines:
| Corner | Lines meeting | |
|---|---|---|
| axes | ||
| , | ||
| , | ||
| , | ||
| , | ||
| , |
So the dual optimum is at .
Back to the original problem. By the duality theorem, . Complementary slackness gives the primal solution:
- At , and , so and .
- , so both primal constraints hold with equality: and .
Hence and
✓ Checked by computer We checked by computer: an LP solver gives at for the dual and for the original problem.
Solve the following linear programming problem by the Simplex method : Maximize subject to the constraints Obtain an alternate optimal solution, if it exists, with explanation.
Solution
Add slack variables : In each table ; the most negative enters and the least non-negative ratio leaves.
Initial table — enters (most negative ), leaves (least ratio); pivot in bold.
| Basis | cB | xB | x1 | x2 | s1 | s2 | s3 | Ratio |
|---|---|---|---|---|---|---|---|---|
| cj | 4 | 10 | 0 | 0 | 0 | |||
| s1 | 0 | 10 | 2 | 1 | 1 | 0 | 0 | 10 |
| s2 | 0 | 20 | 2 | 5 | 0 | 1 | 0 | 4 |
| s3 | 0 | 18 | 2 | 3 | 0 | 0 | 1 | 6 |
| Δj | 0 | −4 | −10 | 0 | 0 | 0 |
Table 2 — all , so this table is optimal.
| Basis | cB | xB | x1 | x2 | s1 | s2 | s3 |
|---|---|---|---|---|---|---|---|
| cj | 4 | 10 | 0 | 0 | 0 | ||
| s1 | 0 | 6 | 8/5 | 0 | 1 | −1/5 | 0 |
| x2 | 10 | 4 | 2/5 | 1 | 0 | 1/5 | 0 |
| s3 | 0 | 6 | 4/5 | 0 | 0 | −3/5 | 1 |
| Δj | 40 | 0 | 0 | 0 | 2 | 0 |
So , .
Alternate optimum. In the optimal table the non-basic variable has . Bringing it into the basis cannot change , so a different optimal vertex exists (the objective is parallel to the second constraint).
Table 3 — is non-basic with ; bringing it in: enters, leaves (least ratio); pivot in bold.
| Basis | cB | xB | x1 | x2 | s1 | s2 | s3 | Ratio |
|---|---|---|---|---|---|---|---|---|
| cj | 4 | 10 | 0 | 0 | 0 | |||
| s1 | 0 | 6 | 8/5 | 0 | 1 | −1/5 | 0 | 15/4 |
| x2 | 10 | 4 | 2/5 | 1 | 0 | 1/5 | 0 | 10 |
| s3 | 0 | 6 | 4/5 | 0 | 0 | −3/5 | 1 | 15/2 |
| Δj | 40 | 0 | 0 | 0 | 2 | 0 |
Table 4 — all , so this table is optimal.
| Basis | cB | xB | x1 | x2 | s1 | s2 | s3 |
|---|---|---|---|---|---|---|---|
| cj | 4 | 10 | 0 | 0 | 0 | ||
| x1 | 4 | 15/4 | 1 | 0 | 5/8 | −1/8 | 0 |
| x2 | 10 | 5/2 | 0 | 1 | −1/4 | 1/4 | 0 |
| s3 | 0 | 3 | 0 | 0 | −1/2 | −1/2 | 1 |
| Δj | 40 | 0 | 0 | 0 | 2 | 0 |
This gives the alternate optimal solution , again with .
Every point of the segment joining and is optimal:
✓ Checked by computer We checked by computer: an LP solver gives ; both and give and satisfy all constraints.
How many basic solutions are there for the following system of equations? Find all of them. Furthermore, find the number of basic solutions, which are feasible/non-feasible/non-degenerate.
Solution
There are 2 equations in 4 unknowns. A basic solution sets variables to zero and solves for the other two, provided their columns are linearly independent. So there are at most basic solutions.
The columns are , , , . Since and , any pair taken from is linearly dependent and gives no basic solution.
| Basic variables | Equations | Solution | Type |
|---|---|---|---|
| singular | — | — | |
| feasible, non-degenerate | |||
| singular | — | — | |
| infeasible (), non-degenerate | |||
| singular | — | — | |
| feasible, non-degenerate |
(For example, with basic: from , ; then gives , .)
Summary. There are 3 basic solutions:
- 2 are feasible: and .
- 1 is non-feasible: .
- All 3 are non-degenerate, since no basic variable is zero.
✓ Checked by computer We checked by computer: the three non-singular bases were solved exactly, and the other three are singular.
Use two phase method to solve the following linear programming problem : Maximize subject to
Solution
Write the constraints with surplus , slack and an artificial variable :
Phase I. Maximize (that is, drive the artificial variable to zero).
Initial table — enters (most negative ), leaves (least ratio); pivot in bold.
| Basis | cB | xB | x1 | x2 | s1 | s2 | A1 | Ratio |
|---|---|---|---|---|---|---|---|---|
| cj | 0 | 0 | 0 | 0 | −1 | |||
| A1 | −1 | 3 | 1 | −1 | −1 | 0 | 1 | 3 |
| s2 | 0 | 10 | 2 | 1 | 0 | 1 | 0 | 5 |
| Δj | −3 | −1 | 1 | 1 | 0 | 0 |
Table 2 — all , so this table is optimal.
| Basis | cB | xB | x1 | x2 | s1 | s2 |
|---|---|---|---|---|---|---|
| cj | 0 | 0 | 0 | 0 | ||
| x1 | 0 | 3 | 1 | −1 | −1 | 0 |
| s2 | 0 | 4 | 0 | 3 | 2 | 1 |
| Δj | 0 | 0 | 0 | 0 | 0 |
Phase I ends with and out of the basis, so the problem is feasible. Drop the column.
Phase II. Restore the original objective .
Table 3 — enters (most negative ), leaves (least ratio); pivot in bold.
| Basis | cB | xB | x1 | x2 | s1 | s2 | Ratio |
|---|---|---|---|---|---|---|---|
| cj | 1 | 2 | 0 | 0 | |||
| x1 | 1 | 3 | 1 | −1 | −1 | 0 | – |
| s2 | 0 | 4 | 0 | 3 | 2 | 1 | 4/3 |
| Δj | 3 | 0 | −3 | −1 | 0 |
Table 4 — all , so this table is optimal.
| Basis | cB | xB | x1 | x2 | s1 | s2 |
|---|---|---|---|---|---|---|
| cj | 1 | 2 | 0 | 0 | ||
| x1 | 1 | 13/3 | 1 | 0 | −1/3 | 1/3 |
| x2 | 2 | 4/3 | 0 | 1 | 2/3 | 1/3 |
| Δj | 7 | 0 | 0 | 1 | 1 |
Optimal solution: , .
✓ Checked by computer We checked by computer: an LP solver gives at .
A person requires 24, 24 and 20 units of chemicals , and respectively for his garden. Product contains 2, 4 and 1 units of chemicals , and respectively per jar and product contains 2, 1 and 5 units of chemicals , and respectively per jar. If a jar of costs ₹ 30 and a jar of costs ₹ 50, then how many jars of each should be purchased in order to minimize the cost and meet the requirements?
Solution
Let = number of jars of and = number of jars of .
subject to
Graphical solution. The feasible region lies on the far side (away from the origin) of the three lines , , . It is unbounded, but the costs are positive, so the minimum is at a corner point:
| Corner | Lines meeting | |
|---|---|---|
| , | ||
| , | ||
| , | ||
| , |
Answer. Buy 10 jars of and 2 jars of ; the minimum cost is ₹400. (Check: A , B , C .)
✓ Checked by computer We checked by computer: an LP solver gives minimum cost ₹400 at .
Solve the following linear programming problem by Big M method : Minimize subject to Is the optimal solution unique? Justify your answer.
Solution
Since this is a minimisation, we maximise . Add surplus , slack and artificial (cost each, very large): An artificial variable that leaves the basis is dropped.
Initial table — enters (most negative ), leaves (least ratio); pivot in bold.
| Basis | cB | xB | x1 | x2 | s1 | s2 | s3 | A1 | A2 | Ratio |
|---|---|---|---|---|---|---|---|---|---|---|
| cj | −2 | −3 | 0 | 0 | 0 | −M | −M | |||
| A1 | −M | 9 | 1 | 1 | −1 | 0 | 0 | 1 | 0 | 9 |
| A2 | −M | 15 | 1 | 2 | 0 | −1 | 0 | 0 | 1 | 15/2 |
| s3 | 0 | 9 | 2 | −3 | 0 | 0 | 1 | 0 | 0 | – |
| Δj | −24M | −2M + 2 | −3M + 3 | M | M | 0 | 0 | 0 |
Table 2 — enters (most negative ), leaves (least ratio); pivot in bold.
| Basis | cB | xB | x1 | x2 | s1 | s2 | s3 | A1 | Ratio |
|---|---|---|---|---|---|---|---|---|---|
| cj | −2 | −3 | 0 | 0 | 0 | −M | |||
| A1 | −M | 3/2 | 1/2 | 0 | −1 | 1/2 | 0 | 1 | 3 |
| x2 | −3 | 15/2 | 1/2 | 1 | 0 | −1/2 | 0 | 0 | 15 |
| s3 | 0 | 63/2 | 7/2 | 0 | 0 | −3/2 | 1 | 0 | 9 |
| Δj | −3M/2 − 45/2 | −M/2 + 1/2 | 0 | M | −M/2 + 3/2 | 0 | 0 |
Table 3 — all , so this table is optimal.
| Basis | cB | xB | x1 | x2 | s1 | s2 | s3 |
|---|---|---|---|---|---|---|---|
| cj | −2 | −3 | 0 | 0 | 0 | ||
| x1 | −2 | 3 | 1 | 0 | −2 | 1 | 0 |
| x2 | −3 | 6 | 0 | 1 | 1 | −1 | 0 |
| s3 | 0 | 21 | 0 | 0 | 7 | −5 | 1 |
| Δj | −24 | 0 | 0 | 1 | 1 | 0 |
Optimal solution: , and .
Is it unique? Yes. In the optimal table the non-basic variables have . No non-basic variable has , so no other vertex gives the same value. Graphically, the corners of the (unbounded) feasible region are , and , with ; only gives 24.
✓ Checked by computer We checked by computer: an LP solver gives at ; the other corners and give 27.
Use two-phase method to solve the following linear programming problem : Minimize subject to
Solution
Write the constraints with surplus and artificial :
Phase I. Maximize .
Initial table — enters (most negative ), leaves (least ratio); pivot in bold.
| Basis | cB | xB | x1 | x2 | s1 | s2 | A1 | A2 | Ratio |
|---|---|---|---|---|---|---|---|---|---|
| cj | 0 | 0 | 0 | 0 | −1 | −1 | |||
| A1 | −1 | 4 | 2 | 1 | −1 | 0 | 1 | 0 | 4 |
| A2 | −1 | 7 | 1 | 7 | 0 | −1 | 0 | 1 | 1 |
| Δj | −11 | −3 | −8 | 1 | 1 | 0 | 0 |
Table 2 — enters (most negative ), leaves (least ratio); pivot in bold.
| Basis | cB | xB | x1 | x2 | s1 | s2 | A1 | Ratio |
|---|---|---|---|---|---|---|---|---|
| cj | 0 | 0 | 0 | 0 | −1 | |||
| A1 | −1 | 3 | 13/7 | 0 | −1 | 1/7 | 1 | 21/13 |
| x2 | 0 | 1 | 1/7 | 1 | 0 | −1/7 | 0 | 7 |
| Δj | −3 | −13/7 | 0 | 1 | −1/7 | 0 |
Table 3 — all , so this table is optimal.
| Basis | cB | xB | x1 | x2 | s1 | s2 |
|---|---|---|---|---|---|---|
| cj | 0 | 0 | 0 | 0 | ||
| x1 | 0 | 21/13 | 1 | 0 | −7/13 | 1/13 |
| x2 | 0 | 10/13 | 0 | 1 | 1/13 | −2/13 |
| Δj | 0 | 0 | 0 | 0 | 0 |
with both artificials out, so the problem is feasible. Drop .
Phase II. Maximize , starting from the final Phase I basis.
Table 4 — all , so this table is optimal.
| Basis | cB | xB | x1 | x2 | s1 | s2 |
|---|---|---|---|---|---|---|
| cj | −1 | −1 | 0 | 0 | ||
| x1 | −1 | 21/13 | 1 | 0 | −7/13 | 1/13 |
| x2 | −1 | 10/13 | 0 | 1 | 1/13 | −2/13 |
| Δj | −31/13 | 0 | 0 | 6/13 | 1/13 |
Optimal solution: , .
✓ Checked by computer We checked by computer: an LP solver gives at .
Solve the following linear programming problem by the simplex method. Write its dual. Also, write the optimal solution of the dual from the optimal table of the given problem : Maximize subject to
Solution
Add slacks : . When several tie, we take the first.
Initial table — enters (most negative ), leaves (least ratio); pivot in bold.
| Basis | cB | xB | x1 | x2 | x3 | s1 | s2 | Ratio |
|---|---|---|---|---|---|---|---|---|
| cj | 1 | 1 | 1 | 0 | 0 | |||
| s1 | 0 | 2 | 2 | 1 | 1 | 1 | 0 | 1 |
| s2 | 0 | 2 | 4 | 2 | 1 | 0 | 1 | 1/2 |
| Δj | 0 | −1 | −1 | −1 | 0 | 0 |
Table 2 — enters (most negative ), leaves (least ratio); pivot in bold.
| Basis | cB | xB | x1 | x2 | x3 | s1 | s2 | Ratio |
|---|---|---|---|---|---|---|---|---|
| cj | 1 | 1 | 1 | 0 | 0 | |||
| s1 | 0 | 1 | 0 | 0 | 1/2 | 1 | −1/2 | 2 |
| x1 | 1 | 1/2 | 1 | 1/2 | 1/4 | 0 | 1/4 | 2 |
| Δj | 1/2 | 0 | −1/2 | −3/4 | 0 | 1/4 |
Table 3 — enters (most negative ), leaves (least ratio); pivot in bold.
| Basis | cB | xB | x1 | x2 | x3 | s1 | s2 | Ratio |
|---|---|---|---|---|---|---|---|---|
| cj | 1 | 1 | 1 | 0 | 0 | |||
| x3 | 1 | 2 | 0 | 0 | 1 | 2 | −1 | – |
| x1 | 1 | 0 | 1 | 1/2 | 0 | −1/2 | 1/2 | 0 |
| Δj | 2 | 0 | −1/2 | 0 | 3/2 | −1/2 |
Table 4 — all , so this table is optimal.
| Basis | cB | xB | x1 | x2 | x3 | s1 | s2 |
|---|---|---|---|---|---|---|---|
| cj | 1 | 1 | 1 | 0 | 0 | ||
| x3 | 1 | 2 | 0 | 0 | 1 | 2 | −1 |
| x2 | 1 | 0 | 2 | 1 | 0 | −1 | 1 |
| Δj | 2 | 1 | 0 | 0 | 1 | 0 |
Optimal solution: , . (The basic variable is zero, so this solution is degenerate. It is still the only optimum: from the second constraint, , with equality only at .)
Dual. With dual variables : subject to
Dual solution from the optimal table. The optimal dual values are the of the starting slack columns: , . Then , as the duality theorem requires.
✓ Checked by computer We checked by computer: an LP solver gives at and for the dual.
Solve the following linear programming problem using Big M method : Maximize subject to
Solution
Add surplus , slack and artificial variables (cost ): An artificial variable that leaves the basis is dropped.
Initial table — enters (most negative ), leaves (least ratio); pivot in bold.
| Basis | cB | xB | x1 | x2 | x3 | s1 | s2 | A1 | A2 | Ratio |
|---|---|---|---|---|---|---|---|---|---|---|
| cj | 4 | 5 | 2 | 0 | 0 | −M | −M | |||
| A1 | −M | 10 | 2 | 1 | 1 | −1 | 0 | 1 | 0 | 5 |
| s2 | 0 | 12 | 1 | 3 | 1 | 0 | 1 | 0 | 0 | 12 |
| A2 | −M | 6 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 6 |
| Δj | −16M | −3M − 4 | −2M − 5 | −2M − 2 | M | 0 | 0 | 0 |
Table 2 — enters (most negative ), leaves (least ratio); pivot in bold.
| Basis | cB | xB | x1 | x2 | x3 | s1 | s2 | A2 | Ratio |
|---|---|---|---|---|---|---|---|---|---|
| cj | 4 | 5 | 2 | 0 | 0 | −M | |||
| x1 | 4 | 5 | 1 | 1/2 | 1/2 | −1/2 | 0 | 0 | 10 |
| s2 | 0 | 7 | 0 | 5/2 | 1/2 | 1/2 | 1 | 0 | 14/5 |
| A2 | −M | 1 | 0 | 1/2 | 1/2 | 1/2 | 0 | 1 | 2 |
| Δj | −M + 20 | 0 | −M/2 − 3 | −M/2 | −M/2 − 2 | 0 | 0 |
Table 3 — all , so this table is optimal.
| Basis | cB | xB | x1 | x2 | x3 | s1 | s2 |
|---|---|---|---|---|---|---|---|
| cj | 4 | 5 | 2 | 0 | 0 | ||
| x1 | 4 | 4 | 1 | 0 | 0 | −1 | 0 |
| s2 | 0 | 2 | 0 | 0 | −2 | −2 | 1 |
| x2 | 5 | 2 | 0 | 1 | 1 | 1 | 0 |
| Δj | 26 | 0 | 0 | 3 | 1 | 0 |
Optimal solution: , .
✓ Checked by computer We checked by computer: an LP solver gives at .
UPSC maintenance section has purchased sufficient number of curtain cloth pieces to meet the curtain requirement of its building. The length of each piece is 17 feet. The requirement according to curtain length is as follows : The width of all curtains is same as that of available pieces. Form a linear programming problem in standard form that decides the number of pieces cut in different ways so that the total trim loss is minimum. Also give a basic feasible solution to it.
Solution
Cutting patterns. A 17 ft piece can be cut into pieces of 5 ft, of 9 ft and of 7 ft if . We keep only patterns whose leftover (trim) is shorter than 5 ft, since otherwise another curtain could still be cut:
| Pattern | 5 ft | 9 ft | 7 ft | Length used | Trim loss (ft) |
|---|---|---|---|---|---|
| 3 | 0 | 0 | 15 | 2 | |
| 2 | 0 | 1 | 17 | 0 | |
| 1 | 1 | 0 | 14 | 3 | |
| 0 | 1 | 1 | 16 | 1 | |
| 0 | 0 | 2 | 14 | 3 |
Variables. = number of pieces cut by pattern ().
Constraints. The requirements must be met. Write for the extra curtains cut beyond the requirement:
Objective. Extra curtains are also wasted cloth, so the total trim loss is with all . This is the LPP in standard form (equality constraints, non-negative variables).
A basic feasible solution. Take as basic and set the rest to zero. The second equation gives , the third gives , and the first gives . So The columns of are independent (their determinant is ) and all values are , so this is a basic feasible solution. Its trim loss is ft.
✓ Checked by computer We checked by computer: every pattern was checked against , and the basic feasible solution satisfies all three equations.
Solve the linear programming problem using simplex method : Minimize subject to
Solution
Remove the lower bounds. Put with . The constraints become and . Minimising is the same as maximising Add slacks .
Initial table — enters (most negative ), leaves (least ratio); pivot in bold.
| Basis | cB | xB | y1 | y2 | y3 | s1 | s2 | s3 | Ratio |
|---|---|---|---|---|---|---|---|---|---|
| cj | 6 | 2 | 5 | 0 | 0 | 0 | |||
| s1 | 0 | 10 | 2 | −3 | 1 | 1 | 0 | 0 | 5 |
| s2 | 0 | 20 | −4 | 4 | 10 | 0 | 1 | 0 | – |
| s3 | 0 | 43 | 2 | 2 | −4 | 0 | 0 | 1 | 43/2 |
| Δj | 0 | −6 | −2 | −5 | 0 | 0 | 0 |
Table 2 — enters (most negative ), leaves (least ratio); pivot in bold.
| Basis | cB | xB | y1 | y2 | y3 | s1 | s2 | s3 | Ratio |
|---|---|---|---|---|---|---|---|---|---|
| cj | 6 | 2 | 5 | 0 | 0 | 0 | |||
| y1 | 6 | 5 | 1 | −3/2 | 1/2 | 1/2 | 0 | 0 | – |
| s2 | 0 | 40 | 0 | −2 | 12 | 2 | 1 | 0 | – |
| s3 | 0 | 33 | 0 | 5 | −5 | −1 | 0 | 1 | 33/5 |
| Δj | 30 | 0 | −11 | −2 | 3 | 0 | 0 |
Table 3 — enters (most negative ), leaves (least ratio); pivot in bold.
| Basis | cB | xB | y1 | y2 | y3 | s1 | s2 | s3 | Ratio |
|---|---|---|---|---|---|---|---|---|---|
| cj | 6 | 2 | 5 | 0 | 0 | 0 | |||
| y1 | 6 | 149/10 | 1 | 0 | −1 | 1/5 | 0 | 3/10 | – |
| s2 | 0 | 266/5 | 0 | 0 | 10 | 8/5 | 1 | 2/5 | 133/25 |
| y2 | 2 | 33/5 | 0 | 1 | −1 | −1/5 | 0 | 1/5 | – |
| Δj | 513/5 | 0 | 0 | −13 | 4/5 | 0 | 11/5 |
Table 4 — all , so this table is optimal.
| Basis | cB | xB | y1 | y2 | y3 | s1 | s2 | s3 |
|---|---|---|---|---|---|---|---|---|
| cj | 6 | 2 | 5 | 0 | 0 | 0 | ||
| y1 | 6 | 1011/50 | 1 | 0 | 0 | 9/25 | 1/10 | 17/50 |
| y3 | 5 | 133/25 | 0 | 0 | 1 | 4/25 | 1/10 | 1/25 |
| y2 | 2 | 298/25 | 0 | 1 | 0 | −1/25 | 1/10 | 6/25 |
| Δj | 4294/25 | 0 | 0 | 0 | 72/25 | 13/10 | 68/25 |
So and . Returning to : (All three constraints are tight at this point.)
✓ Checked by computer We checked by computer: an LP solver with the bounds gives at the same point.
Use graphical method to solve the linear programming problem. Maximize subject to and
Solution
As printed, the second constraint is , and does not appear in . Whatever value takes, we can choose , so that constraint never binds. The problem reduces to
Graph. The feasible region is the part of the first quadrant below the line , i.e. on the side away from the origin. It contains the points for every , so it is unbounded in the direction of increasing .
Along these points . So has no finite maximum: the solution is unbounded.
(If the second constraint is read as , the conclusion is the same: is feasible for all , and grows without limit.)
✓ Checked by computer We checked by computer: an LP solver reports the problem unbounded, both as printed and with .
Solve the linear programming problem using Simplex method. Minimize subject to and
Solution
Maximise . Both constraints are equations, so add artificial variables (cost ): An artificial variable that leaves the basis is dropped.
Initial table — enters (most negative ), leaves (least ratio); pivot in bold.
| Basis | cB | xB | x1 | x2 | x3 | x4 | A1 | A2 | Ratio |
|---|---|---|---|---|---|---|---|---|---|
| cj | −1 | −2 | 3 | 2 | −M | −M | |||
| A1 | −M | 4 | 1 | 2 | −3 | 1 | 1 | 0 | 2 |
| A2 | −M | 4 | 1 | 2 | 1 | 2 | 0 | 1 | 2 |
| Δj | −8M | −2M + 1 | −4M + 2 | 2M − 3 | −3M − 2 | 0 | 0 |
Table 2 — enters (most negative ), leaves (least ratio); pivot in bold.
| Basis | cB | xB | x1 | x2 | x3 | x4 | A2 | Ratio |
|---|---|---|---|---|---|---|---|---|
| cj | −1 | −2 | 3 | 2 | −M | |||
| x2 | −2 | 2 | 1/2 | 1 | −3/2 | 1/2 | 0 | – |
| A2 | −M | 0 | 0 | 0 | 4 | 1 | 1 | 0 |
| Δj | −4 | 0 | 0 | −4M | −M − 3 | 0 |
Table 3 — enters (most negative ), leaves (least ratio); pivot in bold.
| Basis | cB | xB | x1 | x2 | x3 | x4 | Ratio |
|---|---|---|---|---|---|---|---|
| cj | −1 | −2 | 3 | 2 | |||
| x2 | −2 | 2 | 1/2 | 1 | 0 | 7/8 | 16/7 |
| x3 | 3 | 0 | 0 | 0 | 1 | 1/4 | 0 |
| Δj | −4 | 0 | 0 | 0 | −3 |
Table 4 — all , so this table is optimal.
| Basis | cB | xB | x1 | x2 | x3 | x4 |
|---|---|---|---|---|---|---|
| cj | −1 | −2 | 3 | 2 | ||
| x2 | −2 | 2 | 1/2 | 1 | −7/2 | 0 |
| x4 | 2 | 0 | 0 | 0 | 4 | 1 |
| Δj | −4 | 0 | 0 | 12 | 0 |
Optimal solution: ( is basic at zero, so the solution is degenerate), and
Other optima. The non-basic has , so the optimum is not unique. In fact, subtracting the two equations gives , so for every feasible point. The problem is then just , on which everywhere. Every feasible solution, e.g. or , is optimal with .
✓ Checked by computer We checked by computer: an LP solver gives ; the points and both give .
An agricultural firm has 180 tons of nitrogen fertilizer, 250 tons of phosphate and 220 tons of potash. It will be able to sell a mixture of these substances in their respective ratio at a profit of Rs. 1500 per ton and a mixture in the ratio at a profit of Rs. 1200 per ton. Pose a linear programming problem to show how many tons of these two mixtures should be prepared to obtain the maximum profit.
Solution
Let = tons of mixture I (ratio ) and = tons of mixture II (ratio ).
One ton of mixture I contains t nitrogen, t phosphate and t potash. One ton of mixture II contains t nitrogen, t phosphate and t potash.
LPP. subject to (Multiplying through, these are , , .)
Its solution (for completeness). The feasible region is bounded by the three lines and the axes. Its corner points are:
| Corner | Lines meeting | (Rs) |
|---|---|---|
| axes | ||
| potash, | ||
| potash, nitrogen | ||
| nitrogen, phosphate | ||
| phosphate, |
So the firm should prepare 400 tons of mixture I and 240 tons of mixture II, for a maximum profit of Rs 8,88,000.
✓ Checked by computer We checked by computer: an LP solver gives 400 t and 240 t, profit Rs 8,88,000.
Solve the following linear programming problem by Big M-method and show that the problem has finite optimal solutions. Also find the value of the objective function : Minimize subject to
Solution
Maximise . Add surplus , slack and artificial (cost ): An artificial variable that leaves the basis is dropped.
Initial table — enters (most negative ), leaves (least ratio); pivot in bold.
| Basis | cB | xB | x1 | x2 | s1 | s2 | s3 | A1 | A2 | Ratio |
|---|---|---|---|---|---|---|---|---|---|---|
| cj | −3 | −5 | 0 | 0 | 0 | −M | −M | |||
| A1 | −M | 8 | 1 | 2 | −1 | 0 | 0 | 1 | 0 | 8 |
| A2 | −M | 12 | 3 | 2 | 0 | −1 | 0 | 0 | 1 | 4 |
| s3 | 0 | 60 | 5 | 6 | 0 | 0 | 1 | 0 | 0 | 12 |
| Δj | −20M | −4M + 3 | −4M + 5 | M | M | 0 | 0 | 0 |
Table 2 — enters (most negative ), leaves (least ratio); pivot in bold.
| Basis | cB | xB | x1 | x2 | s1 | s2 | s3 | A1 | Ratio |
|---|---|---|---|---|---|---|---|---|---|
| cj | −3 | −5 | 0 | 0 | 0 | −M | |||
| A1 | −M | 4 | 0 | 4/3 | −1 | 1/3 | 0 | 1 | 3 |
| x1 | −3 | 4 | 1 | 2/3 | 0 | −1/3 | 0 | 0 | 6 |
| s3 | 0 | 40 | 0 | 8/3 | 0 | 5/3 | 1 | 0 | 15 |
| Δj | −4M − 12 | 0 | −4M/3 + 3 | M | −M/3 + 1 | 0 | 0 |
Table 3 — all , so this table is optimal.
| Basis | cB | xB | x1 | x2 | s1 | s2 | s3 |
|---|---|---|---|---|---|---|---|
| cj | −3 | −5 | 0 | 0 | 0 | ||
| x2 | −5 | 3 | 0 | 1 | −3/4 | 1/4 | 0 |
| x1 | −3 | 2 | 1 | 0 | 1/2 | −1/2 | 0 |
| s3 | 0 | 32 | 0 | 0 | 2 | 1 | 1 |
| Δj | −21 | 0 | 0 | 9/4 | 1/4 | 0 |
All with no artificial variable left in the basis, so the problem has a finite optimal solution: (The feasible region is bounded above by , so cannot run off to infinity in either direction.) The solution is unique, since the non-basic variables have .
✓ Checked by computer We checked by computer: an LP solver gives at .
How many basic solutions are there in the following linearly independent set of equations ? Find all of them.
Solution
This is the same system as in 2025 (Q1e). With 2 equations and 4 unknowns there are at most basic solutions, one for each choice of two basic variables.
The columns are , , , . Since and , the pairs , , are linearly dependent and give no basic solution. The other three pairs give:
| Basic variables | Solution | Nature |
|---|---|---|
| basic feasible, non-degenerate | ||
| basic, not feasible | ||
| basic feasible, non-degenerate |
(For : and give , . For : and give , .)
So there are 3 basic solutions, of which 2 are feasible.
✓ Checked by computer We checked by computer: the three non-singular bases were solved exactly, and the other three are singular.
Using graphical method, find the maximum value of subject to
Solution
Draw the lines , , in the first quadrant. The feasible region is the polygon on the origin side of all three. Its corner points are:
| Corner | Lines meeting | |
|---|---|---|
| axes | ||
| , (also on ) | ||
| , | ||
| , |
(The constraint only touches the region at , so it is redundant.)
Maximum value of is 5, at .
✓ Checked by computer We checked by computer: an LP solver gives the maximum 5 at .
Solve the following linear programming problem by simplex method : Maximize subject to
Solution
Add slacks :
Initial table — enters (most negative ), leaves (least ratio); pivot in bold.
| Basis | cB | xB | x1 | x2 | x3 | s1 | s2 | s3 | Ratio |
|---|---|---|---|---|---|---|---|---|---|
| cj | 3 | 5 | 4 | 0 | 0 | 0 | |||
| s1 | 0 | 8 | 2 | 3 | 0 | 1 | 0 | 0 | 8/3 |
| s2 | 0 | 10 | 0 | 2 | 5 | 0 | 1 | 0 | 5 |
| s3 | 0 | 15 | 3 | 2 | 4 | 0 | 0 | 1 | 15/2 |
| Δj | 0 | −3 | −5 | −4 | 0 | 0 | 0 |
Table 2 — enters (most negative ), leaves (least ratio); pivot in bold.
| Basis | cB | xB | x1 | x2 | x3 | s1 | s2 | s3 | Ratio |
|---|---|---|---|---|---|---|---|---|---|
| cj | 3 | 5 | 4 | 0 | 0 | 0 | |||
| x2 | 5 | 8/3 | 2/3 | 1 | 0 | 1/3 | 0 | 0 | – |
| s2 | 0 | 14/3 | −4/3 | 0 | 5 | −2/3 | 1 | 0 | 14/15 |
| s3 | 0 | 29/3 | 5/3 | 0 | 4 | −2/3 | 0 | 1 | 29/12 |
| Δj | 40/3 | 1/3 | 0 | −4 | 5/3 | 0 | 0 |
Table 3 — enters (most negative ), leaves (least ratio); pivot in bold.
| Basis | cB | xB | x1 | x2 | x3 | s1 | s2 | s3 | Ratio |
|---|---|---|---|---|---|---|---|---|---|
| cj | 3 | 5 | 4 | 0 | 0 | 0 | |||
| x2 | 5 | 8/3 | 2/3 | 1 | 0 | 1/3 | 0 | 0 | 4 |
| x3 | 4 | 14/15 | −4/15 | 0 | 1 | −2/15 | 1/5 | 0 | – |
| s3 | 0 | 89/15 | 41/15 | 0 | 0 | −2/15 | −4/5 | 1 | 89/41 |
| Δj | 256/15 | −11/15 | 0 | 0 | 17/15 | 4/5 | 0 |
Table 4 — all , so this table is optimal.
| Basis | cB | xB | x1 | x2 | x3 | s1 | s2 | s3 |
|---|---|---|---|---|---|---|---|---|
| cj | 3 | 5 | 4 | 0 | 0 | 0 | ||
| x2 | 5 | 50/41 | 0 | 1 | 0 | 15/41 | 8/41 | −10/41 |
| x3 | 4 | 62/41 | 0 | 0 | 1 | −6/41 | 5/41 | 4/41 |
| x1 | 3 | 89/41 | 1 | 0 | 0 | −2/41 | −12/41 | 15/41 |
| Δj | 765/41 | 0 | 0 | 0 | 45/41 | 24/41 | 11/41 |
Optimal solution: (Check: , , .)
✓ Checked by computer We checked by computer: an LP solver gives at .
Find the maximum value of with constraints by graphical method.
Solution
Draw and . The feasible region lies on or above the first line, on or below the second, and in the first quadrant. It is the triangle with corners:
| Corner | Lines meeting | |
|---|---|---|
| , | ||
| , | ||
| , |
Maximum value is , at .
✓ Checked by computer We checked by computer: an LP solver gives the maximum at .
Maximize subject to Is the optimal solution unique ? Justify your answer.
Solution
Add slacks : .
Initial table — enters (most negative ), leaves (least ratio); pivot in bold.
| Basis | cB | xB | x1 | x2 | x3 | s1 | s2 | Ratio |
|---|---|---|---|---|---|---|---|---|
| cj | 2 | 3 | 6 | 0 | 0 | |||
| s1 | 0 | 5 | 2 | 1 | 1 | 1 | 0 | 5 |
| s2 | 0 | 6 | 0 | 3 | 2 | 0 | 1 | 3 |
| Δj | 0 | −2 | −3 | −6 | 0 | 0 |
Table 2 — enters (most negative ), leaves (least ratio); pivot in bold.
| Basis | cB | xB | x1 | x2 | x3 | s1 | s2 | Ratio |
|---|---|---|---|---|---|---|---|---|
| cj | 2 | 3 | 6 | 0 | 0 | |||
| s1 | 0 | 2 | 2 | −1/2 | 0 | 1 | −1/2 | 1 |
| x3 | 6 | 3 | 0 | 3/2 | 1 | 0 | 1/2 | – |
| Δj | 18 | −2 | 6 | 0 | 0 | 3 |
Table 3 — all , so this table is optimal.
| Basis | cB | xB | x1 | x2 | x3 | s1 | s2 |
|---|---|---|---|---|---|---|---|
| cj | 2 | 3 | 6 | 0 | 0 | ||
| x1 | 2 | 1 | 1 | −1/4 | 0 | 1/2 | −1/4 |
| x3 | 6 | 3 | 0 | 3/2 | 1 | 0 | 1/2 |
| Δj | 20 | 0 | 11/2 | 0 | 1 | 5/2 |
Optimal solution: , .
Uniqueness. In the optimal table the non-basic variables are , with , all strictly positive. Bringing any of them into the basis would lower . So no other basic feasible solution is optimal, and the optimal solution is unique.
✓ Checked by computer We checked by computer: an LP solver gives at .
Consider the following linear programming problem : (i) Using the definition, find its all basic solutions. Which of these are degenerate basic feasible solutions and which are non-degenerate basic feasible solutions? (ii) Without solving the problem, show that it has an optimal solution. Which of the basic feasible solution(s) is/are optimal?
Solution
(i) Basic solutions. Two equations in four unknowns: choose 2 basic variables (at most ways), set the other two to zero and solve.
| Basic variables | Solution | Nature | |
|---|---|---|---|
| BFS, non-degenerate | |||
| BFS, non-degenerate | |||
| not feasible | — | ||
| columns dependent | no basic solution | — | |
| BFS, non-degenerate | |||
| BFS, non-degenerate |
So there are 5 basic solutions. Four are basic feasible solutions, all non-degenerate (no basic variable is zero). There is no degenerate basic feasible solution.
(ii) An optimum exists. From the second equation, . Then from the first equation, . So the feasible set is non-empty (e.g. ) and bounded, and a linear function attains its maximum on a non-empty, closed, bounded convex polyhedron. Hence an optimal solution exists, and some basic feasible solution is optimal.
Comparing the four BFS, , attained at both and . So these two BFS are optimal, and so is every point on the segment joining them.
✓ Checked by computer We checked by computer: all six bases were solved exactly, and an LP solver gives .
Solve the following linear programming problem by the simplex method. Write its dual. Also, write the optimal solution of the dual from the optimal table of the given problem :
Solution
Add slacks : .
Initial table — enters (most negative ), leaves (least ratio); pivot in bold.
| Basis | cB | xB | x1 | x2 | x3 | s1 | s2 | Ratio |
|---|---|---|---|---|---|---|---|---|
| cj | 2 | −4 | 5 | 0 | 0 | |||
| s1 | 0 | 2 | 1 | 4 | −2 | 1 | 0 | – |
| s2 | 0 | 1 | −1 | 2 | 3 | 0 | 1 | 1/3 |
| Δj | 0 | −2 | 4 | −5 | 0 | 0 |
Table 2 — enters (most negative ), leaves (least ratio); pivot in bold.
| Basis | cB | xB | x1 | x2 | x3 | s1 | s2 | Ratio |
|---|---|---|---|---|---|---|---|---|
| cj | 2 | −4 | 5 | 0 | 0 | |||
| s1 | 0 | 8/3 | 1/3 | 16/3 | 0 | 1 | 2/3 | 8 |
| x3 | 5 | 1/3 | −1/3 | 2/3 | 1 | 0 | 1/3 | – |
| Δj | 5/3 | −11/3 | 22/3 | 0 | 0 | 5/3 |
Table 3 — all , so this table is optimal.
| Basis | cB | xB | x1 | x2 | x3 | s1 | s2 |
|---|---|---|---|---|---|---|---|
| cj | 2 | −4 | 5 | 0 | 0 | ||
| x1 | 2 | 8 | 1 | 16 | 0 | 3 | 2 |
| x3 | 5 | 3 | 0 | 6 | 1 | 1 | 1 |
| Δj | 31 | 0 | 66 | 0 | 11 | 9 |
Optimal solution: , .
Dual. With dual variables : subject to
Dual solution from the optimal table. The dual values are the under the starting slack columns: , . Then (Check: , , .)
✓ Checked by computer We checked by computer: an LP solver gives at and at for the dual.
Solve graphically : Maximize subject to
Solution
Draw , , , in the first quadrant. The region lies below the first two lines, above , and below . The last constraint is redundant, since every point with has .
| Corner | Lines meeting | |
|---|---|---|
| , | ||
| , | ||
| , | ||
| , | ||
| , |
at .
✓ Checked by computer We checked by computer: an LP solver gives at .
Find all optimal solutions of the following linear programming problem by the simplex method : Maximize subject to
Solution
Add slacks : .
Initial table — enters (most negative ), leaves (least ratio); pivot in bold.
| Basis | cB | xB | x1 | x2 | s1 | s2 | s3 | Ratio |
|---|---|---|---|---|---|---|---|---|
| cj | 30 | 24 | 0 | 0 | 0 | |||
| s1 | 0 | 200 | 5 | 4 | 1 | 0 | 0 | 40 |
| s2 | 0 | 32 | 1 | 0 | 0 | 1 | 0 | 32 |
| s3 | 0 | 40 | 0 | 1 | 0 | 0 | 1 | – |
| Δj | 0 | −30 | −24 | 0 | 0 | 0 |
Table 2 — enters (most negative ), leaves (least ratio); pivot in bold.
| Basis | cB | xB | x1 | x2 | s1 | s2 | s3 | Ratio |
|---|---|---|---|---|---|---|---|---|
| cj | 30 | 24 | 0 | 0 | 0 | |||
| s1 | 0 | 40 | 0 | 4 | 1 | −5 | 0 | 10 |
| x1 | 30 | 32 | 1 | 0 | 0 | 1 | 0 | – |
| s3 | 0 | 40 | 0 | 1 | 0 | 0 | 1 | 40 |
| Δj | 960 | 0 | −24 | 0 | 30 | 0 |
Table 3 — all , so this table is optimal.
| Basis | cB | xB | x1 | x2 | s1 | s2 | s3 |
|---|---|---|---|---|---|---|---|
| cj | 30 | 24 | 0 | 0 | 0 | ||
| x2 | 24 | 10 | 0 | 1 | 1/4 | −5/4 | 0 |
| x1 | 30 | 32 | 1 | 0 | 0 | 1 | 0 |
| s3 | 0 | 30 | 0 | 0 | −1/4 | 5/4 | 1 |
| Δj | 1200 | 0 | 0 | 6 | 0 | 0 |
One optimum is , . But the non-basic has , so there is an alternate optimum. Bring in:
Table 4 — is non-basic with ; bringing it in: enters, leaves (least ratio); pivot in bold.
| Basis | cB | xB | x1 | x2 | s1 | s2 | s3 | Ratio |
|---|---|---|---|---|---|---|---|---|
| cj | 30 | 24 | 0 | 0 | 0 | |||
| x2 | 24 | 10 | 0 | 1 | 1/4 | −5/4 | 0 | – |
| x1 | 30 | 32 | 1 | 0 | 0 | 1 | 0 | 32 |
| s3 | 0 | 30 | 0 | 0 | −1/4 | 5/4 | 1 | 24 |
| Δj | 1200 | 0 | 0 | 6 | 0 | 0 |
Table 5 — all , so this table is optimal.
| Basis | cB | xB | x1 | x2 | s1 | s2 | s3 |
|---|---|---|---|---|---|---|---|
| cj | 30 | 24 | 0 | 0 | 0 | ||
| x2 | 24 | 40 | 0 | 1 | 0 | 0 | 1 |
| x1 | 30 | 8 | 1 | 0 | 1/5 | 0 | −4/5 |
| s2 | 0 | 24 | 0 | 0 | −1/5 | 1 | 4/5 |
| Δj | 1200 | 0 | 0 | 6 | 0 | 0 |
This gives the second optimal vertex , again . (The reason: , so the objective is parallel to the first constraint.)
All optimal solutions are the points of the segment joining and :
✓ Checked by computer We checked by computer: and both give and satisfy the constraints; an LP solver gives .
Maximize subject to
Solution
Add surplus and artificial variables (cost ) — the Big M method: An artificial variable that leaves the basis is dropped.
Initial table — enters (most negative ), leaves (least ratio); pivot in bold.
| Basis | cB | xB | x1 | x2 | x3 | s1 | A1 | A2 | Ratio |
|---|---|---|---|---|---|---|---|---|---|
| cj | 2 | 3 | −5 | 0 | −M | −M | |||
| A1 | −M | 7 | 1 | 1 | 1 | 0 | 1 | 0 | 7 |
| A2 | −M | 10 | 2 | −5 | 1 | −1 | 0 | 1 | 5 |
| Δj | −17M | −3M − 2 | 4M − 3 | −2M + 5 | M | 0 | 0 |
Table 2 — enters (most negative ), leaves (least ratio); pivot in bold.
| Basis | cB | xB | x1 | x2 | x3 | s1 | A1 | Ratio |
|---|---|---|---|---|---|---|---|---|
| cj | 2 | 3 | −5 | 0 | −M | |||
| A1 | −M | 2 | 0 | 7/2 | 1/2 | 1/2 | 1 | 4/7 |
| x1 | 2 | 5 | 1 | −5/2 | 1/2 | −1/2 | 0 | – |
| Δj | −2M + 10 | 0 | −7M/2 − 8 | −M/2 + 6 | −M/2 − 1 | 0 |
Table 3 — all , so this table is optimal.
| Basis | cB | xB | x1 | x2 | x3 | s1 |
|---|---|---|---|---|---|---|
| cj | 2 | 3 | −5 | 0 | ||
| x2 | 3 | 4/7 | 0 | 1 | 1/7 | 1/7 |
| x1 | 2 | 45/7 | 1 | 0 | 6/7 | −1/7 |
| Δj | 102/7 | 0 | 0 | 50/7 | 1/7 |
Optimal solution:
✓ Checked by computer We checked by computer: an LP solver gives at .
Minimize subject to the constraints
Solution
Maximise . Add slacks :
Initial table — enters (most negative ), leaves (least ratio); pivot in bold.
| Basis | cB | xB | x1 | x2 | x3 | x4 | s1 | s2 | s3 | Ratio |
|---|---|---|---|---|---|---|---|---|---|---|
| cj | −5 | 4 | −6 | 8 | 0 | 0 | 0 | |||
| s1 | 0 | 40 | 1 | 2 | −2 | 4 | 1 | 0 | 0 | 10 |
| s2 | 0 | 8 | 2 | −1 | 1 | 2 | 0 | 1 | 0 | 4 |
| s3 | 0 | 10 | 4 | −2 | 1 | −1 | 0 | 0 | 1 | – |
| Δj | 0 | 5 | −4 | 6 | −8 | 0 | 0 | 0 |
Table 2 — enters (most negative ), leaves (least ratio); pivot in bold.
| Basis | cB | xB | x1 | x2 | x3 | x4 | s1 | s2 | s3 | Ratio |
|---|---|---|---|---|---|---|---|---|---|---|
| cj | −5 | 4 | −6 | 8 | 0 | 0 | 0 | |||
| s1 | 0 | 24 | −3 | 4 | −4 | 0 | 1 | −2 | 0 | 6 |
| x4 | 8 | 4 | 1 | −1/2 | 1/2 | 1 | 0 | 1/2 | 0 | – |
| s3 | 0 | 14 | 5 | −5/2 | 3/2 | 0 | 0 | 1/2 | 1 | – |
| Δj | 32 | 13 | −8 | 10 | 0 | 0 | 4 | 0 |
Table 3 — all , so this table is optimal.
| Basis | cB | xB | x1 | x2 | x3 | x4 | s1 | s2 | s3 |
|---|---|---|---|---|---|---|---|---|---|
| cj | −5 | 4 | −6 | 8 | 0 | 0 | 0 | ||
| x2 | 4 | 6 | −3/4 | 1 | −1 | 0 | 1/4 | −1/2 | 0 |
| x4 | 8 | 7 | 5/8 | 0 | 0 | 1 | 1/8 | 1/4 | 0 |
| s3 | 0 | 29 | 25/8 | 0 | −1 | 0 | 5/8 | −3/4 | 1 |
| Δj | 80 | 7 | 0 | 2 | 0 | 2 | 0 | 0 |
So , with , i.e.
Alternate optima. The non-basic has , so the minimum is also attained elsewhere. Bringing in (ratio test on the column) gives . Indeed and the first constraint gives , so . Every point with , , is optimal, for example and .
✓ Checked by computer We checked by computer: an LP solver gives ; both and give and satisfy the constraints.
For each hour per day that Ashok studies mathematics, it yields him 10 marks and for each hour that he studies physics, it yields him 5 marks. He can study at most 14 hours a day and he must get at least 40 marks in each. Determine graphically how many hours a day he should study mathematics and physics each, in order to maximize his marks ?
Solution
Let = hours of mathematics and = hours of physics per day. Marks: in mathematics, in physics.
subject to
Graph. The region is the triangle cut off by , and :
| Corner | Lines meeting | |
|---|---|---|
| , | ||
| , | ||
| , |
Answer. Ashok should study 6 hours of mathematics and 8 hours of physics a day, for maximum total marks of 100 (60 in mathematics, 40 in physics).
✓ Checked by computer We checked by computer: an LP solver gives the maximum of 100 marks at 6 hours of mathematics and 8 hours of physics.
Solve by Simplex method, the following LP Problem : Maximize, Constraints,
Solution
Add slacks : .
Initial table — enters (most negative ), leaves (least ratio); pivot in bold.
| Basis | cB | xB | x1 | x2 | s1 | s2 | Ratio |
|---|---|---|---|---|---|---|---|
| cj | 5 | 3 | 0 | 0 | |||
| s1 | 0 | 15 | 3 | 5 | 1 | 0 | 5 |
| s2 | 0 | 10 | 5 | 2 | 0 | 1 | 2 |
| Δj | 0 | −5 | −3 | 0 | 0 |
Table 2 — enters (most negative ), leaves (least ratio); pivot in bold.
| Basis | cB | xB | x1 | x2 | s1 | s2 | Ratio |
|---|---|---|---|---|---|---|---|
| cj | 5 | 3 | 0 | 0 | |||
| s1 | 0 | 9 | 0 | 19/5 | 1 | −3/5 | 45/19 |
| x1 | 5 | 2 | 1 | 2/5 | 0 | 1/5 | 5 |
| Δj | 10 | 0 | −1 | 0 | 1 |
Table 3 — all , so this table is optimal.
| Basis | cB | xB | x1 | x2 | s1 | s2 |
|---|---|---|---|---|---|---|
| cj | 5 | 3 | 0 | 0 | ||
| x2 | 3 | 45/19 | 0 | 1 | 5/19 | −3/19 |
| x1 | 5 | 20/19 | 1 | 0 | −2/19 | 5/19 |
| Δj | 235/19 | 0 | 0 | 5/19 | 16/19 |
Optimal solution:
✓ Checked by computer We checked by computer: an LP solver gives at .
A paint factory produces both interior and exterior paint from two raw materials and . The basic data is as follows : A market survey indicates that the daily demand for interior paint cannot exceed that of exterior paint by more than 1 ton. The maximum daily demand of interior paint is 2 tons. The factory wants to determine the optimum product mix of interior and exterior paint that maximizes daily profits. Formulate the LP problem for this situation.
Solution
Decision variables. = tons of exterior paint and = tons of interior paint produced per day.
Objective. Daily profit, in thousands of rupees:
Constraints.
This is the required LP model. (Solving it graphically, the best corner is where meets : , giving , i.e. Rs 21,000 per day.)
✓ Checked by computer We checked by computer: an LP solver gives the optimum 3 t exterior and 1.5 t interior, profit Rs 21,000.
Maximize : subject to :
Solution
This is the same problem as 2017 (Q3c), with the constraints in a different order. Add slacks :
Initial table — enters (most negative ), leaves (least ratio); pivot in bold.
| Basis | cB | xB | x1 | x2 | x3 | s1 | s2 | s3 | Ratio |
|---|---|---|---|---|---|---|---|---|---|
| cj | 3 | 5 | 4 | 0 | 0 | 0 | |||
| s1 | 0 | 8 | 2 | 3 | 0 | 1 | 0 | 0 | 8/3 |
| s2 | 0 | 15 | 3 | 2 | 4 | 0 | 1 | 0 | 15/2 |
| s3 | 0 | 10 | 0 | 2 | 5 | 0 | 0 | 1 | 5 |
| Δj | 0 | −3 | −5 | −4 | 0 | 0 | 0 |
Table 2 — enters (most negative ), leaves (least ratio); pivot in bold.
| Basis | cB | xB | x1 | x2 | x3 | s1 | s2 | s3 | Ratio |
|---|---|---|---|---|---|---|---|---|---|
| cj | 3 | 5 | 4 | 0 | 0 | 0 | |||
| x2 | 5 | 8/3 | 2/3 | 1 | 0 | 1/3 | 0 | 0 | – |
| s2 | 0 | 29/3 | 5/3 | 0 | 4 | −2/3 | 1 | 0 | 29/12 |
| s3 | 0 | 14/3 | −4/3 | 0 | 5 | −2/3 | 0 | 1 | 14/15 |
| Δj | 40/3 | 1/3 | 0 | −4 | 5/3 | 0 | 0 |
Table 3 — enters (most negative ), leaves (least ratio); pivot in bold.
| Basis | cB | xB | x1 | x2 | x3 | s1 | s2 | s3 | Ratio |
|---|---|---|---|---|---|---|---|---|---|
| cj | 3 | 5 | 4 | 0 | 0 | 0 | |||
| x2 | 5 | 8/3 | 2/3 | 1 | 0 | 1/3 | 0 | 0 | 4 |
| s2 | 0 | 89/15 | 41/15 | 0 | 0 | −2/15 | 1 | −4/5 | 89/41 |
| x3 | 4 | 14/15 | −4/15 | 0 | 1 | −2/15 | 0 | 1/5 | – |
| Δj | 256/15 | −11/15 | 0 | 0 | 17/15 | 0 | 4/5 |
Table 4 — all , so this table is optimal.
| Basis | cB | xB | x1 | x2 | x3 | s1 | s2 | s3 |
|---|---|---|---|---|---|---|---|---|
| cj | 3 | 5 | 4 | 0 | 0 | 0 | ||
| x2 | 5 | 50/41 | 0 | 1 | 0 | 15/41 | −10/41 | 8/41 |
| x1 | 3 | 89/41 | 1 | 0 | 0 | −2/41 | 15/41 | −12/41 |
| x3 | 4 | 62/41 | 0 | 0 | 1 | −6/41 | 4/41 | 5/41 |
| Δj | 765/41 | 0 | 0 | 0 | 45/41 | 11/41 | 24/41 |
Optimal solution:
✓ Checked by computer We checked by computer: an LP solver gives at .
More on Linear Programming
- Linear Programming topic-wise PYQs (questions only, for practice)
- Mathematics PYQ analysis: which units carry the marks year by year
- Year-wise question papers
- Mathematics booklist
Questions: UPSC Civil Services (Main) Examination, Mathematics Paper II, 2009–2026. Solutions: Optional Province. Found an error? Tell us.

