All 68 questions UPSC has asked on linear programming in the Statistics Optional (Paper II, Optimization Techniques) from 1995 to 2026, solved step by step – latest first.
Try them yourself first: the same questions, without solutions, are on our Optimization Techniques 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 numbers were worked out again independently in code (Python with NumPy/SciPy) and matched.
- ✓ Proof checked step by step for “prove that” and “examine whether” questions, every step was checked against the definitions and the standard theorems.
- ✓ Answer checked step by step for descriptive questions, every point was checked against the standard theory.
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 · 3c(i) 2026 · 3c(ii) 2025 · 4b 2024 · 1d 2024 · 2c 2024 · 3a 2023 · 1c 2023 · 3a 2023 · 3b(ii) 2022 · 4a 2021 · 3c 2021 · 4a 2020 · 1c 2020 · 3c 2019 · 1d 2019 · 2a 2018 · 1a 2018 · 4b 2017 · 3c 2016 · 1e 2016 · 2a 2016 · 4c 2015 · 1e 2015 · 3a 2014 · 4a 2013 · 1e 2013 · 4c 2012 · 1e 2012 · 2a 2011 · 1d 2011 · 2a 2010 · 1d 2009 · 1b 2009 · 1f 2007 · 1d 2007 · 3a 2007 · 4d 2006 · 1d 2005 · 1f 2005 · 3a 2004 · 3a 2003 · 1d 2003 · 3a 2002 · 1d 2002 · 3a 2002 · 4c 2001 · 1d 2001 · 3a 2000 · 1e 2000 · 3a 2000 · 4c 1999 · 5b 1999 · 5c 1999 · 6b 1998 · 10b 1998 · 10c 1997 · 10a 1997 · 10b 1997 · 10c 1996 · 10a 1996 · 10b 1996 · 10c 1995 · 11a 1995 · 11b 1995 · 11c 1995 · 12a 1995 · 12b 1995 · 12c
Distinguish between slack variables and surplus variables. Discuss how they are used in a linear programming problem.
Solution
Slack variable. For a “less than or equal to” constraint we add a non-negative variable to the left side: is the unused amount of resource (e.g. idle machine hours). It is called a slack variable.
Surplus variable. For a “greater than or equal to” constraint we subtract a non-negative variable : is the amount by which the requirement is exceeded (e.g. extra nutrient beyond the minimum). It is called a surplus variable.
| Slack | Surplus | |
|---|---|---|
| Constraint type | ||
| Sign in the equation | ||
| Meaning | unused resource | excess over requirement |
| Coefficient in objective | 0 | 0 |
| Can start the simplex basis? | Yes (column of identity) | No (coefficient −1); an artificial variable is added |
How they are used.
- They convert all inequalities into equations, giving the standard form , , needed by the simplex method.
- They carry zero cost in the objective function, so they do not change .
- Slack variables give an initial basic feasible solution at once (, ) when all constraints are with .
- A surplus variable cannot form the starting basis, so for (and ) constraints we add artificial variables and use the Big-M or two-phase method.
- In the optimal table, a basic slack (surplus) variable with a positive value shows a resource that is not fully used (a requirement over-met); a non-basic one shows a binding constraint, and its is the shadow price of that resource.
Example. becomes ; becomes .
✓ Answer checked step by step Every point was checked against the standard use of slack (≤) and surplus (≥) variables in converting an LPP to standard (equality) form.
Use the dual simplex method to solve the following Linear Programming Problem (LPP): subject to and
Solution
Setting up. Write Max . Multiply the constraints by so that every constraint is , and add slacks: With as the starting basis all (optimality holds), but (not feasible). This is exactly the situation for the dual simplex method: keep optimality, restore feasibility.
Rules. Leaving variable: the basic variable with the most negative value. Entering variable: among the columns with a negative entry in that row, the one with the smallest .
Table 1.
| Basis | ||||||||
|---|---|---|---|---|---|---|---|---|
| 0 | −4 | −1 | 2 | −1 | 1 | 0 | 0 | |
| 0 | 8 | 2 | 1 | 1 | 0 | 1 | 0 | |
| 0 | 0 | −1 | 0 | 1 | 0 | 0 | 1 | |
| 0 | 2 | 1 | 3 | 0 | 0 | 0 |
Leaving: (most negative ). Ratios for : : 2, : 3; entering: . Pivot element: −1.
Table 2.
| Basis | ||||||||
|---|---|---|---|---|---|---|---|---|
| −2 | 4 | 1 | −2 | 1 | −1 | 0 | 0 | |
| 0 | 0 | 0 | 5 | −1 | 2 | 1 | 0 | |
| 0 | 4 | 0 | −2 | 2 | −1 | 0 | 1 | |
| −8 | 0 | 5 | 1 | 2 | 0 | 0 |
All and all , so the table is optimal and feasible.
Answer. , and , so Check: , , .
✓ Checked by computer We checked in Python (scipy linprog): the minimum is Z = 8 at x₁ = 4, x₂ = x₃ = 0, the same as the dual simplex tables below (computed with exact fractions).
Use the penalty (Big M) method to solve the following linear programming problem: subject to the constraints
Solution
Standard form. Max . Add a slack to the first constraint, an artificial to the equation, and a surplus and artificial to the third. The artificials get a penalty in the (maximising) objective: Starting basis: .
Table 1.
| Basis | Ratio | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| 0 | 12 | 2 | 4 | 1 | 0 | 0 | 0 | 6 | |
| −M | 10 | 2 | 2 | 0 | 0 | 1 | 0 | 5 | |
| −M | 10 | 5 | 2 | 0 | −1 | 0 | 1 | 2 | |
| −20M | −7M+5 | −4M+3 | 0 | M | 0 | 0 |
Entering: (most negative ). Leaving: (smallest ratio 2). Pivot element: 5.
Table 2.
| Basis | Ratio | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| 0 | 8 | 0 | 16/5 | 1 | 2/5 | 0 | −2/5 | 5/2 | |
| −M | 6 | 0 | 6/5 | 0 | 2/5 | 1 | −2/5 | 5 | |
| −5 | 2 | 1 | 2/5 | 0 | −1/5 | 0 | 1/5 | 5 | |
| −6M−10 | 0 | −6M/5+1 | 0 | −2M/5+1 | 0 | 7M/5−1 |
Entering: (most negative ). Leaving: (smallest ratio 5/2). Pivot element: 16/5.
Table 3.
| Basis | Ratio | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| −3 | 5/2 | 0 | 1 | 5/16 | 1/8 | 0 | −1/8 | 20 | |
| −M | 3 | 0 | 0 | −3/8 | 1/4 | 1 | −1/4 | 12 | |
| −5 | 1 | 1 | 0 | −1/8 | −1/4 | 0 | 1/4 | — | |
| −3M−25/2 | 0 | 0 | 3M/8−5/16 | −M/4+7/8 | 0 | 5M/4−7/8 |
Entering: (most negative ). Leaving: (smallest ratio 12). Pivot element: 1/4.
Table 4.
| Basis | ||||||||
|---|---|---|---|---|---|---|---|---|
| −3 | 1 | 0 | 1 | 1/2 | 0 | −1/2 | 0 | |
| 0 | 12 | 0 | 0 | −3/2 | 1 | 4 | −1 | |
| −5 | 4 | 1 | 0 | −1/2 | 0 | 1 | 0 | |
| −23 | 0 | 0 | 1 | 0 | M−7/2 | M |
All and no artificial variable is in the basis, so this is optimal.
Answer. (with : the third constraint is over-satisfied by 12), and , so Check: , , .
✓ Checked by computer We checked in Python (scipy linprog): the minimum is Z = 23 at x₁ = 4, x₂ = 1, the same as the Big-M tables below (exact fractions).
A Linear Programming Problem (LPP) in standard form is as given below: Optimize subject to with Write down the Dual Simplex form and its iterative procedure.
Solution
Dual simplex form. Take the problem (a minimisation is turned into maximisation of ). The dual simplex method needs a starting basis that is dual feasible, i.e. optimal: but it may be primal infeasible: some components of are negative. In practice we get this form by writing every constraint as (multiplying by ) and adding slacks, so that the slacks form an identity basis, provided all in the maximisation form (that is, all costs non-negative in a minimisation problem).
The method keeps optimality () at every step and moves towards feasibility. It is the simplex method applied to the dual, carried out on the primal table.
Iterative procedure.
- Initial table. Convert to maximisation, make all constraints , add slacks, and form the table. Check that all . (If not, the dual simplex method cannot be used directly.)
- Feasibility test. If all , the current solution is optimal and feasible: stop.
- Leaving variable. Otherwise choose the row with the most negative : The basic variable of row leaves the basis.
- Infeasibility test. If every entry in row , the problem has no feasible solution (the dual is unbounded): stop.
- Entering variable. Among the columns with , compute the ratios and let be the one with the smallest ratio. This choice keeps all after pivoting.
- Pivot on exactly as in the ordinary simplex method (divide row by and make all other entries of column zero).
- Return to step 2.
Why the ratio rule works. After the pivot, the new are Since and , the change is non-negative for ; for it stays exactly when , which the minimum-ratio choice guarantees. The objective value decreases (moves towards the true optimum from above) at each step, and becomes positive.
Comparison with the primal simplex.
| Primal simplex | Dual simplex | |
|---|---|---|
| Starts from | feasible, not optimal | optimal, not feasible |
| First choose | entering variable (most negative ) | leaving variable (most negative ) |
| Then choose | leaving variable by min ratio , | entering variable by min , |
| Stops when | all | all |
It avoids artificial variables and is the standard tool for re-optimising after a constraint is added or is changed (sensitivity analysis).
✓ Answer checked step by step Every step was checked against the standard dual simplex algorithm (Lemke): it starts from a dual-feasible (optimal) but primal-infeasible basis, removes the most negative basic variable, and enters by the minimum ratio |(z_j − c_j)/a_rj| over a_rj < 0.
Use simplex method to solve the following LPP: subject to
Solution
Standard form. All three constraints are . Subtract surplus variables and add artificial variables with penalty :
Table 1.
| Basis | Ratio | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| −M | 6 | 6 | 1 | −1 | 0 | 0 | 1 | 0 | 0 | 1 | |
| −M | 12 | 4 | 3 | 0 | −1 | 0 | 0 | 1 | 0 | 3 | |
| −M | 4 | 1 | 2 | 0 | 0 | −1 | 0 | 0 | 1 | 4 | |
| −22M | −11M−5 | −6M−2 | M | M | M | 0 | 0 | 0 |
Entering: (most negative ). Leaving: (smallest ratio 1). Pivot element: 6.
Table 2.
| Basis | Ratio | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 5 | 1 | 1 | 1/6 | −1/6 | 0 | 0 | 1/6 | 0 | 0 | 6 | |
| −M | 8 | 0 | 7/3 | 2/3 | −1 | 0 | −2/3 | 1 | 0 | 24/7 | |
| −M | 3 | 0 | 11/6 | 1/6 | 0 | −1 | −1/6 | 0 | 1 | 18/11 | |
| −11M+5 | 0 | −25M/6−7/6 | −5M/6−5/6 | M | M | 11M/6+5/6 | 0 | 0 |
Entering: (most negative ). Leaving: (smallest ratio 18/11). Pivot element: 11/6.
Table 3.
| Basis | Ratio | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 5 | 8/11 | 1 | 0 | −2/11 | 0 | 1/11 | 2/11 | 0 | −1/11 | 8 | |
| −M | 46/11 | 0 | 0 | 5/11 | −1 | 14/11 | −5/11 | 1 | −14/11 | 23/7 | |
| 2 | 18/11 | 0 | 1 | 1/11 | 0 | −6/11 | −1/11 | 0 | 6/11 | — | |
| −46M/11+76/11 | 0 | 0 | −5M/11−8/11 | M | −14M/11−7/11 | 16M/11+8/11 | 0 | 25M/11+7/11 |
Entering: (most negative ). Leaving: (smallest ratio 23/7). Pivot element: 14/11.
Table 4.
| Basis | Ratio | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 5 | 3/7 | 1 | 0 | −3/14 | 1/14 | 0 | 3/14 | −1/14 | 0 | — | |
| 0 | 23/7 | 0 | 0 | 5/14 | −11/14 | 1 | −5/14 | 11/14 | −1 | 46/5 | |
| 2 | 24/7 | 0 | 1 | 2/7 | −3/7 | 0 | −2/7 | 3/7 | 0 | 12 | |
| 9 | 0 | 0 | −1/2 | −1/2 | 0 | M+1/2 | M+1/2 | M |
Entering: (most negative ). Leaving: (smallest ratio 46/5). Pivot element: 5/14.
Table 5.
| Basis | Ratio | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 5 | 12/5 | 1 | 0 | 0 | −2/5 | 3/5 | 0 | 2/5 | −3/5 | — | |
| 0 | 46/5 | 0 | 0 | 1 | −11/5 | 14/5 | −1 | 11/5 | −14/5 | — | |
| 2 | 4/5 | 0 | 1 | 0 | 1/5 | −4/5 | 0 | −1/5 | 4/5 | 4 | |
| 68/5 | 0 | 0 | 0 | −8/5 | 7/5 | M | M+8/5 | M−7/5 |
Entering: (most negative ). Leaving: (smallest ratio 4). Pivot element: 1/5.
Table 6.
| Basis | Ratio | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 5 | 4 | 1 | 2 | 0 | 0 | −1 | 0 | 0 | 1 | — | |
| 0 | 18 | 0 | 11 | 1 | 0 | −6 | −1 | 0 | 6 | — | |
| 0 | 4 | 0 | 5 | 0 | 1 | −4 | 0 | −1 | 4 | — | |
| 20 | 0 | 8 | 0 | 0 | −5 | M | M | M+5 |
can enter (z_j − c_j = −5), but no entry of its column is positive, so the solution is unbounded.
Conclusion. The variable has , so can still be increased, but there is no positive entry in its column: can be increased without limit while all basic variables stay non-negative (, , ). Hence the problem has an unbounded solution: can be made as large as we like.
This is also clear directly: all constraints are with positive coefficients, so the feasible region extends without limit to the right, and for , every constraint holds while .
✓ Checked by computer We checked in Python: scipy linprog reports the problem as unbounded, and in the exact Big-M tables below the column of s₃ in Table 6 has no positive entry.
With respect to a given Linear Programming Problem (LPP), explain the following concepts: (i) Extreme Point Solutions (ii) Duality Theorem (iii) Complementary Slackness Principle.
Solution
Consider the LPP with dual
(i) Extreme point solutions. The feasible set is a convex polyhedron. A point is an extreme point (corner, vertex) if it cannot be written as with in and ; that is, it does not lie strictly inside any line segment of .
- After adding slacks, a solution of obtained by setting variables to zero and solving for the other (with linearly independent columns) is a basic solution; if it is also non-negative it is a basic feasible solution (BFS).
- Key result: the basic feasible solutions are exactly the extreme points of . There are at most of them.
- Fundamental theorem: if the LPP has an optimal solution, at least one extreme point is optimal. So we need only examine extreme points, and the simplex method moves from one extreme point to an adjacent better one.
- Graphically, extreme points are the corners of the feasible polygon.
(ii) Duality theorem.
- Weak duality: if is feasible for (P) and for (D), then . (Proof: .)
- Consequence: if for feasible , , both are optimal.
- Strong duality (fundamental duality theorem): if either (P) or (D) has a finite optimal solution, so does the other, and In the optimal simplex table of (P), the optimal dual values are , read off as the of the slack columns.
- Other cases: if one problem is unbounded, the other is infeasible; both may be infeasible.
(iii) Complementary slackness principle. Feasible and are optimal for (P) and (D) if and only if In words:
- if a primal constraint is slack (resource not fully used), its dual price is zero; if a dual variable (shadow price) is positive, the corresponding resource is fully used;
- if a primal variable is positive (product made), the corresponding dual constraint holds with equality (the imputed cost of its resources equals its profit); if a dual constraint is strict, the product is not made.
Proof. For feasible : . Both terms are sums of non-negative products. By strong duality, optimality means the left side is 0, so every product is 0; conversely if all products are 0 the two objective values are equal and both solutions are optimal by weak duality. ∎
The principle is used to find the dual solution from the primal one (and vice versa) and gives the economic meaning of shadow prices.
✓ Answer checked step by step Every statement was checked against the standard theory: basic feasible solutions are the extreme points of the feasible set, the duality theorem (weak and strong forms) and the complementary slackness conditions.
Solve the following linear programming problem by using graphical approach: Minimize Subject to
Solution
Reduce to two variables. The equality constraint gives (and then holds automatically). Substituting, The problem becomes: minimise subject to
Graph. Draw the lines
- through and ; feasible side away from the origin;
- through and ; feasible side above (towards the -axis);
- through and ; feasible side away from the origin. This line lies entirely below in the first quadrant, so it is redundant.
The feasible region is unbounded (it extends upwards), but the costs are positive, so a minimum exists. Its corner points are:
- : ;
- , where meets : , .
Answer. The minimum is at : (The iso-cost line touches the region only at .)
✓ Checked by computer We checked in Python (scipy linprog): the minimum is 113 at x₁ = 8, x₂ = 3, x₃ = 11; the corner values were recomputed by hand and in Python.
Solve the following Linear Programming problem using Two Phase method: Maximize Subject to
Solution
Standard form. Only the first constraint needs an artificial variable.
Phase I. Maximise (i.e. minimise the artificial variable). Costs: for , 0 for all others.
Phase I, table 1.
| Basis | Ratio | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| −1 | 2 | 2 | 1 | −1 | 0 | 0 | 1 | 1 | |
| 0 | 2 | 1 | 3 | 0 | 1 | 0 | 0 | 2 | |
| 0 | 4 | 0 | 1 | 0 | 0 | 1 | 0 | — | |
| −2 | −2 | −1 | 1 | 0 | 0 | 0 |
Entering: (most negative ). Leaving: (smallest ratio 1). Pivot element: 2.
Phase I, table 2.
| Basis | ||||||||
|---|---|---|---|---|---|---|---|---|
| 0 | 1 | 1 | 1/2 | −1/2 | 0 | 0 | 1/2 | |
| 0 | 1 | 0 | 5/2 | 1/2 | 1 | 0 | −1/2 | |
| 0 | 4 | 0 | 1 | 0 | 0 | 1 | 0 | |
| 0 | 0 | 0 | 0 | 0 | 0 | 1 |
and has left the basis, so the original problem is feasible and Table 2 gives a basic feasible solution.
Phase II. Drop the column, put back the original costs and continue.
Phase II, table 1.
| Basis | Ratio | |||||||
|---|---|---|---|---|---|---|---|---|
| 3 | 1 | 1 | 1/2 | −1/2 | 0 | 0 | — | |
| 0 | 1 | 0 | 5/2 | 1/2 | 1 | 0 | 2 | |
| 0 | 4 | 0 | 1 | 0 | 0 | 1 | — | |
| 3 | 0 | 5/2 | −3/2 | 0 | 0 |
Entering: (most negative ). Leaving: (smallest ratio 2). Pivot element: 1/2.
Phase II, table 2.
| Basis | |||||||
|---|---|---|---|---|---|---|---|
| 3 | 2 | 1 | 3 | 0 | 1 | 0 | |
| 0 | 2 | 0 | 5 | 1 | 2 | 0 | |
| 0 | 4 | 0 | 1 | 0 | 0 | 1 | |
| 6 | 0 | 10 | 0 | 3 | 0 |
All : optimal.
Answer. Here (the first constraint is exceeded by 2) and .
✓ Checked by computer We checked in Python (scipy linprog): the maximum is Z = 6 at x₁ = 2, x₂ = 0, the same as the two-phase tables below (exact fractions).
Write down the dual for the given primal problem. Max Subject to and unrestricted,
Solution
Rules (primal maximisation).
- Each primal constraint gives a dual variable: → ; → ; → unrestricted.
- Each primal variable gives a dual constraint: → “”; unrestricted → “”.
- Dual objective: minimise ; dual constraint uses column of .
Primal data.
| dual var. | |||||||
|---|---|---|---|---|---|---|---|
| Row 1 | 2 | 4 | −1 | 1 | 4 | ||
| Row 2 | 1 | −1 | 6 | 7 | 5 | ||
| Row 3 | 2 | 2 | 4 | 5 | 6 | unrestricted | |
| Row 4 | 1 | 8 | 1 | 0 | 7 | unrestricted | |
| 6 | −5 | 7 | 1 | ||||
| sign | unrestr. | unrestr. |
Dual. subject to
(Equivalently, put with , i.e. first write constraint 2 as .)
✓ Checked by computer Every step was checked: the rules primal max ⇄ dual min, ≤ constraint ↔︎ y ≥ 0, ≥ ↔︎ y ≤ 0, = ↔︎ y unrestricted, x ≥ 0 ↔︎ dual ≥, x unrestricted ↔︎ dual =.
Use penalty method to solve the following linear programming problem: Maximize subject to the constraints
Solution
Starting basis. The third constraint already contains with coefficient 1, and appears in no other constraint, so can start in the basis. Artificial variables , (penalty ) are needed for the first two equations:
Table 1.
| Basis | Ratio | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| −M | 15 | 1 | 2 | 3 | 0 | 1 | 0 | 5 | |
| −M | 20 | 2 | 1 | 5 | 0 | 0 | 1 | 4 | |
| −1 | 10 | 1 | 2 | 1 | 1 | 0 | 0 | 10 | |
| −35M−10 | −3M−2 | −3M−4 | −8M−4 | 0 | 0 | 0 |
Entering: (most negative ). Leaving: (smallest ratio 4). Pivot element: 5.
Table 2.
| Basis | Ratio | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| −M | 3 | −1/5 | 7/5 | 0 | 0 | 1 | −3/5 | 15/7 | |
| 3 | 4 | 2/5 | 1/5 | 1 | 0 | 0 | 1/5 | 20 | |
| −1 | 6 | 3/5 | 9/5 | 0 | 1 | 0 | −1/5 | 10/3 | |
| −3M+6 | M/5−2/5 | −7M/5−16/5 | 0 | 0 | 0 | 8M/5+4/5 |
Entering: (most negative ). Leaving: (smallest ratio 15/7). Pivot element: 7/5.
Table 3.
| Basis | Ratio | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| 2 | 15/7 | −1/7 | 1 | 0 | 0 | 5/7 | −3/7 | — | |
| 3 | 25/7 | 3/7 | 0 | 1 | 0 | −1/7 | 2/7 | 25/3 | |
| −1 | 15/7 | 6/7 | 0 | 0 | 1 | −9/7 | 4/7 | 5/2 | |
| 90/7 | −6/7 | 0 | 0 | 0 | M+16/7 | M−4/7 |
Entering: (most negative ). Leaving: (smallest ratio 5/2). Pivot element: 6/7.
Table 4.
| Basis | ||||||||
|---|---|---|---|---|---|---|---|---|
| 2 | 5/2 | 0 | 1 | 0 | 1/6 | 1/2 | −1/3 | |
| 3 | 5/2 | 0 | 0 | 1 | −1/2 | 1/2 | 0 | |
| 1 | 5/2 | 1 | 0 | 0 | 7/6 | −3/2 | 2/3 | |
| 15 | 0 | 0 | 0 | 1 | M+1 | M |
All and both artificial variables are zero (non-basic), so the solution is optimal.
Answer. Check: , , ; .
✓ Checked by computer We checked in Python (scipy linprog): the maximum is Z = 15 at x₁ = x₂ = x₃ = 5/2, x₄ = 0, the same as the Big-M tables below (exact fractions).
Use two-phase method to solve: Maximize subject to the constraints and .
Solution
Standard form.
Phase I. Maximise .
Phase I, table 1.
| Basis | Ratio | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 8 | 4 | 6 | 3 | 1 | 0 | 0 | 0 | 4/3 | |
| 0 | 1 | 3 | −6 | −4 | 0 | 1 | 0 | 0 | — | |
| −1 | 4 | 2 | 3 | −5 | 0 | 0 | −1 | 1 | 4/3 | |
| −4 | −2 | −3 | 5 | 0 | 0 | 1 | 0 |
Entering: (most negative ). Leaving: (smallest ratio 4/3). Pivot element: 3.
Phase I, table 2.
| Basis | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 13 | 1 | 0 | 2 | −2 | |
| 0 | 9 | 7 | 0 | −14 | 0 | 1 | −2 | 2 | |
| 0 | 4/3 | 2/3 | 1 | −5/3 | 0 | 0 | −1/3 | 1/3 | |
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
(In Table 1 there is a tie between and for leaving; we remove the artificial variable.) with out of the basis, so a feasible solution exists. Note that is basic: the solution is degenerate.
Phase II. Drop , restore the costs .
Phase II, table 1.
| Basis | Ratio | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 13 | 1 | 0 | 2 | 0 | |
| 0 | 9 | 7 | 0 | −14 | 0 | 1 | −2 | — | |
| 1 | 4/3 | 2/3 | 1 | −5/3 | 0 | 0 | −1/3 | — | |
| 4/3 | −4/3 | 0 | −8/3 | 0 | 0 | −1/3 |
Entering: (most negative ). Leaving: (smallest ratio 0). Pivot element: 13.
Phase II, table 2.
| Basis | Ratio | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| 1 | 0 | 0 | 0 | 1 | 1/13 | 0 | 2/13 | — | |
| 0 | 9 | 7 | 0 | 0 | 14/13 | 1 | 2/13 | 9/7 | |
| 1 | 4/3 | 2/3 | 1 | 0 | 5/39 | 0 | −1/13 | 2 | |
| 4/3 | −4/3 | 0 | 0 | 8/39 | 0 | 1/13 |
Entering: (most negative ). Leaving: (smallest ratio 9/7). Pivot element: 7.
Phase II, table 3.
| Basis | ||||||||
|---|---|---|---|---|---|---|---|---|
| 1 | 0 | 0 | 0 | 1 | 1/13 | 0 | 2/13 | |
| 2 | 9/7 | 1 | 0 | 0 | 2/13 | 1/7 | 2/91 | |
| 1 | 10/21 | 0 | 1 | 0 | 1/39 | −2/21 | −25/273 | |
| 64/21 | 0 | 0 | 0 | 16/39 | 4/21 | 29/273 |
All : optimal.
Answer. Check: , , (all three constraints are binding).
✓ Checked by computer We checked in Python (scipy linprog): the maximum is z = 64/21 ≈ 3.048 at x₁ = 9/7, x₂ = 10/21, x₃ = 0, the same as the two-phase tables below (exact fractions).
Solve the following linear programming problem: Maximize subject to the constraints and . Discuss the change in on the optimality of the optimal basic feasible solution.
Solution
Simplex solution. Add slacks: , , .
Table 1.
| Basis | Ratio | |||||||
|---|---|---|---|---|---|---|---|---|
| 0 | 18 | 3 | 2 | 1 | 0 | 0 | 9 | |
| 0 | 4 | 1 | 0 | 0 | 1 | 0 | — | |
| 0 | 6 | 0 | 1 | 0 | 0 | 1 | 6 | |
| 0 | −3 | −5 | 0 | 0 | 0 |
Entering: (most negative ). Leaving: (smallest ratio 6). Pivot element: 1.
Table 2.
| Basis | Ratio | |||||||
|---|---|---|---|---|---|---|---|---|
| 0 | 6 | 3 | 0 | 1 | 0 | −2 | 2 | |
| 0 | 4 | 1 | 0 | 0 | 1 | 0 | 4 | |
| 5 | 6 | 0 | 1 | 0 | 0 | 1 | — | |
| 30 | −3 | 0 | 0 | 0 | 5 |
Entering: (most negative ). Leaving: (smallest ratio 2). Pivot element: 3.
Table 3.
| Basis | |||||||
|---|---|---|---|---|---|---|---|
| 3 | 2 | 1 | 0 | 1/3 | 0 | −2/3 | |
| 0 | 2 | 0 | 0 | −1/3 | 1 | 2/3 | |
| 5 | 6 | 0 | 1 | 0 | 0 | 1 | |
| 36 | 0 | 0 | 1 | 0 | 3 |
Optimal solution: (), .
Effect of changes in (sensitivity analysis). A change in a cost coefficient does not affect feasibility ( is unchanged); it changes only the row. The current solution stays optimal as long as every of the non-basic variables (, ) stays .
Change in (basic variable). With general, the rows of ( under ) and () give So the solution stays optimal for
Change in . With general: So it stays optimal for
Interpretation. Within these ranges, , remains the best plan; only changes. If , enters (we should produce more of and less of , moving to the corner ); if , enters as well and is reduced. A change in the cost of a non-basic variable affects only its own ; e.g. if a slack had a cost, the solution stays optimal as long as that .
✓ Checked by computer We checked in Python (scipy linprog): the optimum is z = 36 at x₁ = 2, x₂ = 6; the ranges 0 ≤ c₁ ≤ 15/2 and c₂ ≥ 2 were checked by re-solving at the end points.
Define the concept of duality in Linear Programming Problem (LPP). Write down the dual of the following LPP: Maximize subject to the constraints
Solution
Duality. Every LPP (the primal) has an associated LPP, its dual, formed from the same data. If the primal is its dual is
- One dual variable for each primal constraint, and one dual constraint for each primal variable.
- The right-hand sides of one become the objective coefficients of the other, and the coefficient matrix is transposed.
- Max becomes Min, and becomes .
- The dual of the dual is the primal. If either problem has a finite optimum, so does the other, with equal objective values; the optimal dual variables are the shadow prices of the primal resources.
Dual of the given problem. Here With dual variables for the four constraints: subject to
✓ Checked by computer Every step was checked: for a maximisation primal with ≤ constraints and x ≥ 0, the dual is a minimisation with ≥ constraints, the transposed matrix and y ≥ 0.
Explain the general Linear Programming Problem. Solve the following LPP by Charnes’ Big-M method: Minimize subject to the constraints
Solution
General LPP. Find that optimise (maximise or minimise) subject to linear constraints and the non-negativity restrictions . In matrix form: optimise subject to , .
- is the objective function, the cost/profit coefficients, the technological coefficients, the resources or requirements.
- It assumes proportionality, additivity, divisibility and certainty of the data, and a finite number of activities.
Big-M solution. Max . The equation gets an artificial ; the constraint a surplus and artificial ; the constraint a slack :
Table 1.
| Basis | Ratio | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| −M | 3 | 3 | 1 | 0 | 0 | 1 | 0 | 1 | |
| −M | 6 | 4 | 3 | −1 | 0 | 0 | 1 | 3/2 | |
| 0 | 3 | 1 | 2 | 0 | 1 | 0 | 0 | 3 | |
| −9M | −7M+2 | −4M+1 | M | 0 | 0 | 0 |
Entering: (most negative ). Leaving: (smallest ratio 1). Pivot element: 3.
Table 2.
| Basis | Ratio | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| −2 | 1 | 1 | 1/3 | 0 | 0 | 1/3 | 0 | 3 | |
| −M | 2 | 0 | 5/3 | −1 | 0 | −4/3 | 1 | 6/5 | |
| 0 | 2 | 0 | 5/3 | 0 | 1 | −1/3 | 0 | 6/5 | |
| −2M−2 | 0 | −5M/3+1/3 | M | 0 | 7M/3−2/3 | 0 |
Entering: (most negative ). Leaving: (smallest ratio 6/5). Pivot element: 5/3.
Table 3.
| Basis | ||||||||
|---|---|---|---|---|---|---|---|---|
| −2 | 3/5 | 1 | 0 | 1/5 | 0 | 3/5 | −1/5 | |
| −1 | 6/5 | 0 | 1 | −3/5 | 0 | −4/5 | 3/5 | |
| 0 | 0 | 0 | 0 | 1 | 1 | 1 | −1 | |
| −12/5 | 0 | 0 | 1/5 | 0 | M−2/5 | M−1/5 |
All with no artificial variable in the basis: optimal.
Answer. Check: , , .
✓ Checked by computer We checked in Python (scipy linprog): the minimum is Z = 12/5 at x₁ = 3/5, x₂ = 6/5, the same as the Big-M tables below (exact fractions).
Give the applications of linear programming problem. A firm produces three products , and . It uses two types of raw material and of which 5000 units and 7500 units respectively are available. The raw material requirements per unit of the products are given below:
| Raw material \ Requirement per unit of product | |||
| 3 | 4 | 5 | |
| 5 | 3 | 5 |
The labour time for each unit of product is twice that of product and three times that of product . The entire labour force of the firm can produce the equivalent of 3000 units of product . The minimum demands of the three products are 600 units, 650 units and 500 units respectively. Also, the ratio of the number of units produced must be equal to . Assume that the profits per unit of , and are ₹ 50, ₹ 50 and ₹ 80 respectively. Formulate the problem as a linear programming model in order to determine the number of units of each product which will maximize the profit.
Solution
Applications of linear programming.
- Production: product mix, production scheduling, blending (petrol, alloys, animal feed), cutting stock.
- Marketing: media selection and advertising budgets, sales-force allocation.
- Finance: portfolio selection, capital budgeting, cash management.
- Transport and distribution: transportation and assignment problems, routing, warehouse location.
- Agriculture: crop planning, fertiliser mix, irrigation.
- Personnel: staff scheduling, assignment of workers to jobs.
- Defence, government and health: allocation of resources, diet planning, hospital scheduling.
Formulation. Let be the numbers of units of , , produced.
Objective (profit):
Raw materials:
Labour. If a unit of takes hours, a unit of takes and a unit of takes . The labour available equals hours. So
Minimum demands:
Ratio :
Non-negativity: .
Note on the question. With the numbers as printed, the ratio forces ; raw material I then needs , i.e. , while the minimum demand for needs , i.e. . So these constraints cannot all hold together and the LP, as printed, has no feasible solution. The formulation above is what the question asks for; in practice the ratio condition (or the raw-material supply) would have to be relaxed.
✓ Checked by computer Every constraint was checked against the data; we also checked in Python (scipy linprog) that, with the figures as printed, the ratio 2:3:4 and the minimum demands cannot both be met within raw material I.
Solve the following problem using simplex method: A company sells two types of fertilizers, one is liquid and the other is dry. The liquid fertilizer contains 2 units of chemical and 4 units of chemical per jar and the dry fertilizer contains 3 units of each of chemicals and per carton. The liquid fertilizer sells for ₹ 3 per jar and the dry fertilizer sells for ₹ 4 per carton. A farmer requires at least 90 units of chemical and at least 102 units of chemical for his farm. How many of each type of fertilizers should the farmer purchase to minimize the cost while meeting his requirements?
Solution
Formulation. Let = number of jars of liquid fertiliser and = number of cartons of dry fertiliser.
Simplex (Big-M) form. Max :
Table 1.
| Basis | Ratio | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| −M | 90 | 2 | 3 | −1 | 0 | 1 | 0 | 45 | |
| −M | 102 | 4 | 3 | 0 | −1 | 0 | 1 | 51/2 | |
| −192M | −6M+3 | −6M+4 | M | M | 0 | 0 |
Entering: (most negative ). Leaving: (smallest ratio 51/2). Pivot element: 4.
Table 2.
| Basis | Ratio | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| −M | 39 | 0 | 3/2 | −1 | 1/2 | 1 | −1/2 | 26 | |
| −3 | 51/2 | 1 | 3/4 | 0 | −1/4 | 0 | 1/4 | 34 | |
| −39M−153/2 | 0 | −3M/2+7/4 | M | −M/2+3/4 | 0 | 3M/2−3/4 |
Entering: (most negative ). Leaving: (smallest ratio 26). Pivot element: 3/2.
Table 3.
| Basis | ||||||||
|---|---|---|---|---|---|---|---|---|
| −4 | 26 | 0 | 1 | −2/3 | 1/3 | 2/3 | −1/3 | |
| −3 | 6 | 1 | 0 | 1/2 | −1/2 | −1/2 | 1/2 | |
| −122 | 0 | 0 | 7/6 | 1/6 | M−7/6 | M−1/6 |
All and the artificials are out: optimal.
Answer. The farmer should buy 6 jars of liquid and 26 cartons of dry fertiliser. Minimum cost: Both requirements are met exactly: units of and units of .
✓ Checked by computer We checked in Python (scipy linprog): the minimum cost is ₹122 at 6 jars and 26 cartons, the same as the Big-M tables below (exact fractions).
If a linear programming problem has an optimal solution, then prove that it attains its optimum solution at an extreme point of the convex set generated by the set of all the feasible solutions to the problem.
Solution
Setting. Consider: Maximise subject to . is convex, and we take it to be bounded (a convex polyhedron) with extreme points ( finite, since there are at most basic feasible solutions). Suppose the problem has an optimal solution , with .
To prove: some extreme point satisfies .
Proof.
- A bounded convex polyhedron is the convex hull of its extreme points. So can be written
- Let be the extreme point with the largest objective value:
- By linearity,
- But is feasible and is optimal, so .
- Hence : the extreme point is an optimal solution. ∎
If is unbounded. Every can be written as , where the are extreme directions (, ) and . If the optimum is finite, for every (otherwise would be unbounded), so , and the same argument applies.
Remarks.
- The same proof (with “min”) works for minimisation.
- If the maximum is attained at several extreme points, it is also attained at every convex combination of them (alternative optima).
- This theorem is the basis of the simplex method: we need only search among the finitely many basic feasible solutions.
✓ Proof checked step by step Every step was checked: the feasible set is a convex polytope; every feasible point is a convex combination of extreme points (plus, if unbounded, directions that cannot improve a finite optimum); linearity then gives an extreme point at least as good.
What is the importance of sensitivity analysis? Mention what type of problems can be resolved using it. Using the following linear programming problem, show that the value 6 of the resource vector can be increased to 7: Maximize subject to
Solution
Importance of sensitivity analysis. The data of an LPP (prices, costs, resources, technical coefficients) are usually estimates and change over time. Sensitivity (post-optimality) analysis studies how the optimal solution changes when these data change, without solving the problem afresh, using the final simplex table. It tells the manager:
- how far each cost or price may change before the optimal plan changes;
- how far each resource may be increased or decreased while the same set of activities (basis) stays optimal, and how the profit changes (shadow prices);
- whether a new product (variable) is worth introducing, and whether a new constraint upsets the current plan. It thus measures how reliable the solution is and helps in planning and negotiation.
Problems resolved by it. Changes in (i) the objective coefficients ; (ii) the right-hand sides ; (iii) the coefficients of non-basic (and basic) variables; (iv) addition of a new variable; (v) addition of a new constraint; (vi) deletion of a variable or a constraint.
Solve the problem. Slacks :
Table 1.
| Basis | Ratio | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| 0 | 6 | 1 | 2 | 1 | 0 | 0 | 0 | 6 | |
| 0 | 8 | 2 | 1 | 0 | 1 | 0 | 0 | 4 | |
| 0 | 1 | −1 | 1 | 0 | 0 | 1 | 0 | — | |
| 0 | 2 | 0 | 1 | 0 | 0 | 0 | 1 | — | |
| 0 | −3 | −2 | 0 | 0 | 0 | 0 |
Entering: (most negative ). Leaving: (smallest ratio 4). Pivot element: 2.
Table 2.
| Basis | Ratio | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| 0 | 2 | 0 | 3/2 | 1 | −1/2 | 0 | 0 | 4/3 | |
| 3 | 4 | 1 | 1/2 | 0 | 1/2 | 0 | 0 | 8 | |
| 0 | 5 | 0 | 3/2 | 0 | 1/2 | 1 | 0 | 10/3 | |
| 0 | 2 | 0 | 1 | 0 | 0 | 0 | 1 | 2 | |
| 12 | 0 | −1/2 | 0 | 3/2 | 0 | 0 |
Entering: (most negative ). Leaving: (smallest ratio 4/3). Pivot element: 3/2.
Table 3.
| Basis | ||||||||
|---|---|---|---|---|---|---|---|---|
| 2 | 4/3 | 0 | 1 | 2/3 | −1/3 | 0 | 0 | |
| 3 | 10/3 | 1 | 0 | −1/3 | 2/3 | 0 | 0 | |
| 0 | 3 | 0 | 0 | −1 | 1 | 1 | 0 | |
| 0 | 2/3 | 0 | 0 | −2/3 | 1/3 | 0 | 1 | |
| 38/3 | 0 | 0 | 1/3 | 4/3 | 0 | 0 |
Optimal: , , with , .
Range of . The basis is . From the final table (columns of ), With : The basis stays feasible (hence optimal, since the do not depend on ) when all four are :
Conclusion. The value 6 of can be increased up to 7 without changing the optimal basis. At : The shadow price of resource 1 is , so each extra unit adds : . Beyond 7, would become negative (the constraint becomes binding) and the basis must change.
✓ Checked by computer We checked in Python (scipy linprog): the optimum is Z = 38/3 at (10/3, 4/3); B⁻¹ from the final table gives the range 4 ≤ b₁ ≤ 7, and re-solving with b₁ = 7 gives (3, 2), Z = 13 with the same basis.
What is a linear programming problem and how it can be represented in the form of matrix notations? Given the following constraints: maximize the objective function using simplex method.
Solution
LPP and its matrix form. A linear programming problem asks for values of decision variables that maximise (or minimise) a linear objective function subject to linear constraints and non-negativity. In matrix notation: where After adding slack/surplus variables the standard form is , .
For this problem
Simplex solution. Add slacks :
Table 1.
| Basis | Ratio | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| 0 | 60 | 6 | 3 | −4 | 1 | 0 | 0 | — | |
| 0 | 40 | 2 | −4 | 4 | 0 | 1 | 0 | 10 | |
| 0 | 60 | 3 | 3 | 3 | 0 | 0 | 1 | 20 | |
| 0 | −3 | −2 | −6 | 0 | 0 | 0 |
Entering: (most negative ). Leaving: (smallest ratio 10). Pivot element: 4.
Table 2.
| Basis | Ratio | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| 0 | 100 | 8 | −1 | 0 | 1 | 1 | 0 | — | |
| 6 | 10 | 1/2 | −1 | 1 | 0 | 1/4 | 0 | — | |
| 0 | 30 | 3/2 | 6 | 0 | 0 | −3/4 | 1 | 5 | |
| 60 | 0 | −8 | 0 | 0 | 3/2 | 0 |
Entering: (most negative ). Leaving: (smallest ratio 5). Pivot element: 6.
Table 3.
| Basis | ||||||||
|---|---|---|---|---|---|---|---|---|
| 0 | 105 | 33/4 | 0 | 0 | 1 | 7/8 | 1/6 | |
| 6 | 15 | 3/4 | 0 | 1 | 0 | 1/8 | 1/6 | |
| 2 | 5 | 1/4 | 1 | 0 | 0 | −1/8 | 1/6 | |
| 100 | 2 | 0 | 0 | 0 | 1/2 | 4/3 |
All : optimal.
Answer. Check: , , . ( has , so the optimum is unique in this basis.)
✓ Checked by computer We checked in Python (scipy linprog): the maximum is Z = 100 at x₁ = 0, x₂ = 5, x₃ = 15, the same as the simplex tables below (exact fractions).
For the following linear programming problem write the dual problem and solve:
Solution
Note on the question. As printed, the primal has no feasible solution, so it cannot be “solved” in the usual sense; we show this and solve the dual, which turns out to be unbounded.
Write the primal in canonical form (all , maximisation): multiply the constraints by :
Dual. With dual variables : (Equivalently, with , : Min subject to , , .)
Primal is infeasible. From the first constraint, . Then so can never hold.
Dual is unbounded. Take and , . Then so the point is feasible for every , and
Conclusion. The primal has no feasible solution and its dual has an unbounded solution (). This illustrates the duality theorem: if the dual is unbounded, the primal is infeasible.
✓ Checked by computer We checked in Python (scipy linprog): the primal is infeasible (status 2) and the dual is unbounded (status 3); the algebraic argument below proves both.
In the context of linear programming problem (LPP), define the terms (i) basic solution, (ii) feasible solution, and (iii) non-degenerate solution. Show that the set of all the feasible solutions to an LPP is a convex set.
Solution
Consider the LPP: optimise subject to , , where is () of rank .
(i) Basic solution. Choose linearly independent columns of ; they form a basis matrix . Setting the other variables (non-basic) to zero and solving gives . The resulting solution of is a basic solution; the variables in are the basic variables. There are at most basic solutions.
(ii) Feasible solution. Any satisfying all the constraints and the non-negativity restrictions is a feasible solution. A basic solution that is also feasible () is a basic feasible solution.
(iii) Non-degenerate solution. A basic (feasible) solution is non-degenerate if all basic variables are strictly positive. If one or more basic variables are zero it is degenerate.
Theorem. The set of all feasible solutions is convex.
Proof. If is empty or has one point, it is trivially convex. Let and , and put Then
- ;
- , because and .
So . Every point of the segment joining two feasible solutions is feasible; hence is a convex set. ∎
(The same proof works for constraints : .)
✓ Proof checked step by step Every step was checked: definitions of basic, feasible and non-degenerate solutions, and the convexity of {X : AX = b, X ≥ 0} from the linearity of A.
What is the use of artificial variables in an LPP? Use the artificial variable technique to solve the following LPP:
Solution
Use of artificial variables. The simplex method needs a starting basic feasible solution whose basis is the identity matrix. Slack variables give such a basis for constraints, but a constraint gets a surplus variable with coefficient , and an constraint gets nothing. We therefore add a non-negative artificial variable to each such constraint. Artificial variables have no physical meaning; they only provide the starting identity basis. They must be driven out (to zero) — by giving them a large penalty in the objective (Big-M method) or by first minimising their sum (two-phase method). If an artificial variable stays positive at the optimum, the original problem has no feasible solution.
Solution. Max :
Table 1.
| Basis | Ratio | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| −M | 100 | 6 | 8 | −1 | 0 | 1 | 0 | 25/2 | |
| −M | 120 | 7 | 12 | 0 | −1 | 0 | 1 | 10 | |
| −220M | −13M+12 | −20M+20 | M | M | 0 | 0 |
Entering: (most negative ). Leaving: (smallest ratio 10). Pivot element: 12.
Table 2.
| Basis | Ratio | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| −M | 20 | 4/3 | 0 | −1 | 2/3 | 1 | −2/3 | 15 | |
| −20 | 10 | 7/12 | 1 | 0 | −1/12 | 0 | 1/12 | 120/7 | |
| −20M−200 | −4M/3+1/3 | 0 | M | −2M/3+5/3 | 0 | 5M/3−5/3 |
Entering: (most negative ). Leaving: (smallest ratio 15). Pivot element: 4/3.
Table 3.
| Basis | ||||||||
|---|---|---|---|---|---|---|---|---|
| −12 | 15 | 1 | 0 | −3/4 | 1/2 | 3/4 | −1/2 | |
| −20 | 5/4 | 0 | 1 | 7/16 | −3/8 | −7/16 | 3/8 | |
| −205 | 0 | 0 | 1/4 | 3/2 | M−1/4 | M−3/2 |
All , artificials out: optimal.
Answer. Check: and (both constraints binding).
✓ Checked by computer We checked in Python (scipy linprog): the minimum is z = 205 at x₁ = 15, x₂ = 5/4, the same as the Big-M tables below (exact fractions).
Mention the importance of sensitivity analysis. What are the different problems that are resolved through it?
Solution
Importance of sensitivity analysis. In an LPP the coefficients , and are assumed known with certainty, but in practice they are estimates (prices, costs, resource availabilities, input norms) and they change. Sensitivity analysis (post-optimality analysis) finds the effect of such changes on the optimal solution, starting from the final simplex table instead of re-solving the problem. Its importance:
- It shows how stable the optimal solution is: the ranges within which each coefficient may vary without changing the optimal basis.
- It gives the shadow prices (marginal values) of the resources, so management knows which resources are worth buying more of, and at what price.
- It saves computation: a new optimum can be found from the old table with a few dual- or primal-simplex steps.
- It supports “what if” planning when markets, technology or capacities change.
Problems resolved through it.
- Change in the objective coefficients — of basic or non-basic variables (price or cost changes). Optimality may be lost; feasibility is not affected.
- Change in the resource vector — more or less of a resource. Feasibility of may be lost; optimality is not affected. Range of each and the shadow price.
- Change in the coefficients — of a non-basic variable (affects only its ) or of a basic variable (affects , so the problem may need re-solving).
- Addition of a new variable (new product): compute its ; if negative, it should be introduced.
- Addition of a new constraint: if the current solution satisfies it, nothing changes; otherwise add it to the table and use the dual simplex method.
- Deletion of a variable or a constraint.
✓ Answer checked step by step Every point was checked against the standard purposes of post-optimality analysis and the six types of discrete change it handles.
Explain the meanings of (i) basic solutions and (ii) feasible solutions in a linear programming problem with conditions and variables. Using simplex method, solve the following linear programming problem:
Solution
(i) Basic solutions. With constraints written as equations in variables (, including slacks), a basic solution is obtained by setting variables equal to zero and solving the equations for the remaining variables, provided their columns are linearly independent. The variables are basic, the others non-basic. There are at most basic solutions.
(ii) Feasible solutions. A set of values of that satisfies all constraints and the non-negativity conditions is a feasible solution. A basic solution with all basic variables is a basic feasible solution; it corresponds to a corner of the feasible region.
Simplex solution. Add slacks: , , .
Table 1.
| Basis | Ratio | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| 0 | 430 | 1 | 2 | 1 | 1 | 0 | 0 | 430 | |
| 0 | 460 | 3 | 0 | 2 | 0 | 1 | 0 | 230 | |
| 0 | 420 | 3 | 4 | 0 | 0 | 0 | 1 | — | |
| 0 | −3 | −2 | −5 | 0 | 0 | 0 |
Entering: (most negative ). Leaving: (smallest ratio 230). Pivot element: 2.
Table 2.
| Basis | Ratio | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| 0 | 200 | −1/2 | 2 | 0 | 1 | −1/2 | 0 | 100 | |
| 5 | 230 | 3/2 | 0 | 1 | 0 | 1/2 | 0 | — | |
| 0 | 420 | 3 | 4 | 0 | 0 | 0 | 1 | 105 | |
| 1150 | 9/2 | −2 | 0 | 0 | 5/2 | 0 |
Entering: (most negative ). Leaving: (smallest ratio 100). Pivot element: 2.
Table 3.
| Basis | ||||||||
|---|---|---|---|---|---|---|---|---|
| 2 | 100 | −1/4 | 1 | 0 | 1/2 | −1/4 | 0 | |
| 5 | 230 | 3/2 | 0 | 1 | 0 | 1/2 | 0 | |
| 0 | 20 | 4 | 0 | 0 | −2 | 1 | 1 | |
| 1350 | 4 | 0 | 0 | 1 | 2 | 0 |
All : optimal.
Answer. with (the third resource is not fully used).
✓ Checked by computer We checked in Python (scipy linprog): the maximum is Z = 1350 at x₁ = 0, x₂ = 100, x₃ = 230, the same as the simplex tables below (exact fractions).
What do you understand by the term “Sensitivity Analysis”? Discuss the effect of variation in the resource vector in the linear programming problem with set of constraints . In the problem discuss the effect of discrete change in the component so as to maintain the optimality of the current optimum solution.
Solution
Sensitivity analysis. Sensitivity (post-optimality) analysis studies how the optimal solution of an LPP responds to changes in its data — the costs , the resources and the coefficients — using the final simplex table rather than solving afresh. It finds the ranges over which the present optimal basis remains optimal.
Effect of variation in . Let be the optimal basis, so and .
- A change in does not affect the (they do not involve ), so optimality is kept.
- It changes . If becomes , then where is the -th column of . The basis stays optimal as long as , i.e.
- Within this range the new optimum is and changes by (shadow price ). Outside it, some basic variable becomes negative and the dual simplex method is used to restore feasibility.
The problem. Standard form (surplus , artificial for the constraint):
Table 1.
| Basis | Ratio | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 10 | 3 | 1 | −1 | 1 | 0 | 0 | 0 | 10 | |
| −M | 6 | −1 | 4 | 1 | 0 | −1 | 0 | 1 | 3/2 | |
| 0 | 4 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 4 | |
| −6M | M+1 | −4M−2 | −M+1 | 0 | M | 0 | 0 |
Entering: (most negative ). Leaving: (smallest ratio 3/2). Pivot element: 4.
Table 2.
| Basis | Ratio | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 17/2 | 13/4 | 0 | −5/4 | 1 | 1/4 | 0 | −1/4 | 34 | |
| 2 | 3/2 | −1/4 | 1 | 1/4 | 0 | −1/4 | 0 | 1/4 | — | |
| 0 | 5/2 | 1/4 | 0 | 3/4 | 0 | 1/4 | 1 | −1/4 | 10 | |
| 3 | 1/2 | 0 | 3/2 | 0 | −1/2 | 0 | M+1/2 |
Entering: (most negative ). Leaving: (smallest ratio 10). Pivot element: 1/4.
Table 3.
| Basis | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| 0 | 6 | 3 | 0 | −2 | 1 | 0 | −1 | 0 | |
| 2 | 4 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | |
| 0 | 10 | 1 | 0 | 3 | 0 | 1 | 4 | −1 | |
| 8 | 1 | 0 | 3 | 0 | 0 | 2 | M |
Optimal: , , , with and .
Discrete change in . The optimal basis is . With the basis the equations give So . The basis stays feasible (and therefore optimal) when With the present , a change keeps the current solution optimal for
Interpretation.
- is basic, so constraint 2 is not binding: its shadow price is 0, and does not change at all within this range.
- If , becomes negative. In fact no solution exists then: from and , . So the problem becomes infeasible for .
✓ Checked by computer We checked in Python (scipy linprog): the optimum is Z = 8 at x₂ = 4; re-solving for b₂ = 16 and b₂ = 16.5 confirms the range b₂ ≤ 16 (infeasible beyond).
What is Linear Programming? Give its advantages and limitations.
Solution
Linear programming (LP) is a mathematical technique for allocating limited resources among competing activities in the best possible way. “Linear” means that the objective and all the constraints are linear functions of the decision variables; “programming” means planning. An LP problem is: Its components are the decision variables, the objective function, the constraints and the non-negativity restrictions. It rests on the assumptions of proportionality, additivity, divisibility, certainty and finiteness.
Advantages.
- Gives the best (optimal) use of scarce resources — machines, labour, money, materials.
- Makes decisions objective and systematic: the objective and the restrictions must be stated clearly.
- Indicates bottlenecks: binding constraints show which resources limit output.
- Provides shadow prices and sensitivity ranges, so management knows the value of extra resources and how stable the plan is.
- Handles many variables and constraints at once; efficient algorithms (simplex, interior point) and software are available.
- Can be revised quickly when conditions change (post-optimality analysis).
- Wide applications: production, blending, diet, transport, assignment, finance, agriculture, defence.
Limitations.
- Linearity may not hold: costs and returns often change with scale (economies of scale, price discounts).
- Divisibility: the solution may be fractional when only integers make sense (e.g. 2.4 machines); rounding may give a non-optimal or infeasible plan; integer programming is then needed.
- Certainty: all coefficients are assumed known and constant, but in reality they are uncertain.
- Single objective: LP optimises one objective, while firms often have several conflicting goals (goal programming is needed).
- Static: it does not allow for time; dynamic problems need other methods.
- Large problems need computers, and formulating them correctly needs skill.
- Intangible factors (human behaviour, goodwill) cannot be included.
✓ Answer checked step by step Every point was checked against the standard account of linear programming: its components, assumptions, advantages and limitations.
Solve the following LPP: where and is unrestricted in sign.
Solution
Removing the free variable. Since is unrestricted in sign, put Write the second constraint as with a non-negative right side: . The problem becomes with all variables .
Table 1.
| Basis | Ratio | |||||||
|---|---|---|---|---|---|---|---|---|
| 0 | 20 | 4 | 5 | −5 | 1 | 0 | 5 | |
| 0 | 23 | 1 | −3 | 3 | 0 | 1 | 23 | |
| 0 | −8 | 4 | −4 | 0 | 0 |
Entering: (most negative ). Leaving: (smallest ratio 5). Pivot element: 4.
Table 2.
| Basis | Ratio | |||||||
|---|---|---|---|---|---|---|---|---|
| 8 | 5 | 1 | 5/4 | −5/4 | 1/4 | 0 | — | |
| 0 | 18 | 0 | −17/4 | 17/4 | −1/4 | 1 | 72/17 | |
| 40 | 0 | 14 | −14 | 2 | 0 |
Entering: (most negative ). Leaving: (smallest ratio 72/17). Pivot element: 17/4.
Table 3.
| Basis | |||||||
|---|---|---|---|---|---|---|---|
| 8 | 175/17 | 1 | 0 | 0 | 3/17 | 5/17 | |
| 4 | 72/17 | 0 | −1 | 1 | −1/17 | 4/17 | |
| 1688/17 | 0 | 0 | 0 | 20/17 | 56/17 |
All : optimal.
Answer. , , , so Check: ; . Both constraints are binding, and .
✓ Checked by computer We checked in Python (scipy linprog with x₂ free): the maximum is Z = 1688/17 ≈ 99.29 at x₁ = 175/17, x₂ = −72/17, the same as the simplex tables below (exact fractions).
Show that in a linear programming problem, the feasible solutions form a convex set.
Solution
Theorem. The set of feasible solutions of a linear programming problem is a convex set.
Set-up. Let the LPP be: optimise subject to , (any LPP can be put in this form with slack and surplus variables). Let A set is convex if, for any two points , the whole segment joining them lies in : for all .
Proof.
- If is empty or a single point, it is convex.
- Otherwise take any , so that , , , . Let and
- Constraints: .
- Non-negativity: each component of is , a sum of non-negative numbers, so .
- Hence .
So every convex combination of two feasible solutions is feasible, and is convex. ∎
Remarks. (1) For inequality constraints the same argument gives . (2) is the intersection of finitely many half-spaces and hyperplanes, each of which is convex; an intersection of convex sets is convex, which is another proof.
✓ Proof checked step by step Every step was checked: a convex combination of two solutions of AX = b (or AX ≤ b) with X ≥ 0 is again such a solution.
A person needs at least 10, 12 and 12 units of chemicals A, B and C respectively for his garden. A liquid product available in the market contains 5, 2 and 1 units of A, B and C respectively per jar. A dry product contains 1, 2 and 4 units of A, B and C per carton. The price of the liquid product is ₹ 3 per jar and that of the dry product is ₹ 2 per carton. How many jars and cartons should be purchased to meet the requirements and to minimize the cost?
Solution
Formulation. Let = jars of liquid product and = cartons of dry product. subject to
Graphical view. The feasible region is unbounded (away from the origin); its corners are : ; : ; : ; : .
Simplex (Big-M) check. Max :
Table 1.
| Basis | Ratio | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| −M | 10 | 5 | 1 | −1 | 0 | 0 | 1 | 0 | 0 | 2 | |
| −M | 12 | 2 | 2 | 0 | −1 | 0 | 0 | 1 | 0 | 6 | |
| −M | 12 | 1 | 4 | 0 | 0 | −1 | 0 | 0 | 1 | 12 | |
| −34M | −8M+3 | −7M+2 | M | M | M | 0 | 0 | 0 |
Entering: (most negative ). Leaving: (smallest ratio 2). Pivot element: 5.
Table 2.
| Basis | Ratio | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| −3 | 2 | 1 | 1/5 | −1/5 | 0 | 0 | 1/5 | 0 | 0 | 10 | |
| −M | 8 | 0 | 8/5 | 2/5 | −1 | 0 | −2/5 | 1 | 0 | 5 | |
| −M | 10 | 0 | 19/5 | 1/5 | 0 | −1 | −1/5 | 0 | 1 | 50/19 | |
| −18M−6 | 0 | −27M/5+7/5 | −3M/5+3/5 | M | M | 8M/5−3/5 | 0 | 0 |
Entering: (most negative ). Leaving: (smallest ratio 50/19). Pivot element: 19/5.
Table 3.
| Basis | Ratio | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| −3 | 28/19 | 1 | 0 | −4/19 | 0 | 1/19 | 4/19 | 0 | −1/19 | 28 | |
| −M | 72/19 | 0 | 0 | 6/19 | −1 | 8/19 | −6/19 | 1 | −8/19 | 9 | |
| −2 | 50/19 | 0 | 1 | 1/19 | 0 | −5/19 | −1/19 | 0 | 5/19 | — | |
| −72M/19−184/19 | 0 | 0 | −6M/19+10/19 | M | −8M/19+7/19 | 25M/19−10/19 | 0 | 27M/19−7/19 |
Entering: (most negative ). Leaving: (smallest ratio 9). Pivot element: 8/19.
Table 4.
| Basis | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| −3 | 1 | 1 | 0 | −1/4 | 1/8 | 0 | 1/4 | −1/8 | 0 | |
| 0 | 9 | 0 | 0 | 3/4 | −19/8 | 1 | −3/4 | 19/8 | −1 | |
| −2 | 5 | 0 | 1 | 1/4 | −5/8 | 0 | −1/4 | 5/8 | 0 | |
| −13 | 0 | 0 | 1/4 | 7/8 | 0 | M−1/4 | M−7/8 | M |
Answer. Buy 1 jar of the liquid product and 5 cartons of the dry product: The requirements of and are met exactly (, ) and is over-supplied by units ().
✓ Checked by computer We checked in Python (scipy linprog): the minimum cost is ₹13 at 1 jar and 5 cartons, the same as the Big-M tables below (exact fractions); the corner values were also checked.
Use simplex method to solve the following LPP: subject to
Solution
Standard form. Add slacks: The starting solution is feasible but degenerate ().
Table 1.
| Basis | Ratio | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| 0 | 10 | 1 | 1 | 1 | 1 | 0 | 0 | 10 | |
| 0 | 2 | 2 | 0 | −1 | 0 | 1 | 0 | — | |
| 0 | 0 | 2 | −2 | 3 | 0 | 0 | 1 | 0 | |
| 0 | −1 | 1 | −3 | 0 | 0 | 0 |
Entering: (most negative ). Leaving: (smallest ratio 0). Pivot element: 3.
Table 2.
| Basis | Ratio | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| 0 | 10 | 1/3 | 5/3 | 0 | 1 | 0 | −1/3 | 6 | |
| 0 | 2 | 8/3 | −2/3 | 0 | 0 | 1 | 1/3 | — | |
| 3 | 0 | 2/3 | −2/3 | 1 | 0 | 0 | 1/3 | — | |
| 0 | 1 | −1 | 0 | 0 | 0 | 1 |
Entering: (most negative ). Leaving: (smallest ratio 6). Pivot element: 5/3.
Table 3.
| Basis | ||||||||
|---|---|---|---|---|---|---|---|---|
| −1 | 6 | 1/5 | 1 | 0 | 3/5 | 0 | −1/5 | |
| 0 | 6 | 14/5 | 0 | 0 | 2/5 | 1 | 1/5 | |
| 3 | 4 | 4/5 | 0 | 1 | 2/5 | 0 | 1/5 | |
| 6 | 6/5 | 0 | 0 | 3/5 | 0 | 4/5 |
All : optimal.
Answer. Check: , , .
✓ Checked by computer We checked in Python (scipy linprog): the maximum is Z = 6 at x₁ = 0, x₂ = 6, x₃ = 4, the same as the simplex tables below (exact fractions).
Justify the use of artificial variables in obtaining LPP. When should slack and surplus variables be used for solving linear programming problem?
Solution
Why artificial variables are used.
- The simplex method starts from a basic feasible solution with an identity basis: each constraint must contain a variable with coefficient that appears in no other constraint and whose value equals the (non-negative) right-hand side.
- A constraint gets a slack variable, which does this job.
- A constraint gets a surplus variable with coefficient : setting the decision variables to zero would make the surplus negative (), which is infeasible. An constraint gets no extra variable at all.
- In these rows we therefore add a non-negative artificial variable , which forms the missing column of the identity matrix and gives the starting solution .
- Artificial variables are fictitious; they make the starting point possible but must be driven to zero. This is done by giving them a very large penalty in the objective (Charnes’ Big-M method: in a maximisation, in a minimisation) or by first minimising their sum (two-phase method).
- If at the optimum an artificial variable is still positive, the original problem has no feasible solution. So the artificial variables also serve as a test of feasibility.
When slack and surplus variables are used.
- Slack variables are used for constraints of the type (e.g. resource limits): . They measure unused resource, have zero cost, and can form the initial basis.
- Surplus variables are used for constraints of the type (e.g. minimum requirements): . They measure the excess over the requirement and have zero cost; because of the coefficient they are always accompanied by an artificial variable in the starting table.
- For constraints neither is used; only an artificial variable is added.
- Both are needed to convert the LPP to the standard form , , on which the simplex method works.
✓ Answer checked step by step Every point was checked against the standard reasons for artificial variables (an identity starting basis) and the use of slack (≤) and surplus (≥) variables.
Solve graphically the following linear programming problem: subject to
Solution
Constraint lines.
- : through and ; feasible side below the line.
- : through and ; feasible side below/right.
- : through and ; feasible side away from the origin.
- : feasible side to the left.
- : feasible side above.
Corner points of the feasible region (a pentagon):
| Corner | Lines | ||
|---|---|---|---|
| 3 and 5 | (3, 2) | 19 | |
| 4 and 5 | (4, 2) | 22 | |
| 4 and 1 | (4, 6) | 42 | |
| 1 and 2 | (0.8, 3.6) | 20.4 | |
| 2 and 3 | (0.75, 3.5) | 19.75 |
Answer. The minimum is at : (The iso-cost line touches the region only at .)
✓ Checked by computer We checked in Python (scipy linprog with 0 ≤ x₁ ≤ 4, x₂ ≥ 2): the minimum is Z = 19 at (3, 2); the five corner values were recomputed.
What are the goals achieved through sensitivity analysis? If in the following linear programming problem (L.P.P.): subject to the profit coefficient of is reduced to 2 from 3, determine whether the original solution remains optimal.
Solution
Goals of sensitivity analysis.
- To find how far the data (, , ) can change before the present optimal solution (basis) changes, so that the decision is known to be stable.
- To find the new optimal solution quickly, from the final simplex table, when a change does occur.
- To obtain the shadow prices of the resources and judge whether extra resources are worth acquiring.
- To evaluate new products (variables) and new restrictions (constraints).
- In short, to make the LP solution useful when the data are uncertain or changing.
Solve the problem. Slacks ; the simplex method gives the final table
| Basis | ||||||||
|---|---|---|---|---|---|---|---|---|
| 2 | 100 | −1/4 | 1 | 0 | 1/2 | −1/4 | 0 | |
| 5 | 230 | 3/2 | 0 | 1 | 0 | 1/2 | 0 | |
| 0 | 20 | 2 | 0 | 0 | −2 | 1 | 1 | |
| 1350 | 4 | 0 | 0 | 1 | 2 | 0 |
Optimal: , , , .
Change from 3 to 2. is non-basic, so a change in affects only :
- With : .
- With : .
All remain non-negative, so the original solution remains optimal: , , , (unchanged, since ).
In general the solution stays optimal for ; reducing the profit of a product that is not being made can never make it worth making.
✓ Checked by computer We checked in Python (scipy linprog): with c₁ = 3 and with c₁ = 2 the optimum is x = (0, 100, 230), Z = 1350; from the final table z₁ − c₁ = 7 − c₁ ≥ 0 for c₁ ≤ 7.
Explain (i) feasible solution and (ii) basic solution in the context of linear programming problem (L.P.P.). Prove that the objective function of a L.P.P. assumes its minimum at an extreme point of the convex set generated by the set of all feasible solutions to the problem, and if it assumes its minimum at more than one extreme point then it takes on the same value for every convex combination of those particular points.
Solution
(i) Feasible solution. For the LPP “optimise subject to , ”, any that satisfies and is a feasible solution. The set of all feasible solutions is convex.
(ii) Basic solution. If is of rank , choose linearly independent columns (a basis ), set the other variables to zero and solve . The solution , together with the zeros, is a basic solution. If it is a basic feasible solution; basic feasible solutions are the extreme points of .
Theorem 1. If has a minimum over , it is attained at an extreme point of .
Proof. Let be bounded with extreme points , and let be a minimising point, . Every point of a bounded convex polyhedron is a convex combination of its extreme points: Let be the extreme point with the smallest value, . Then Since is the minimum, . Hence : the minimum is attained at the extreme point . ∎
(If is unbounded but the minimum is finite, every feasible point is with extreme directions satisfying , and the same inequality holds.)
Theorem 2. If the minimum is attained at more than one extreme point, say , it is attained at every convex combination of them.
Proof. Let for , and with , . Then (convexity) and So is also a minimising point. ∎
In particular, if two extreme points are optimal, the whole edge (segment) joining them is optimal, so the LPP has infinitely many optimal solutions.
✓ Proof checked step by step Every step was checked: definitions of feasible and basic solutions; the minimum of a linear function over a bounded polyhedron is attained at an extreme point; and if attained at X₁, …, X_r, then at every convex combination of them, by linearity.
Describe the M-technique with artificial variables to minimize an objective function in a linear programming problem. What changes will be made in the procedure if the objective function is to be maximized?
Solution
The M-technique (Charnes’ penalty method) for minimisation.
- Standard form. Make all . Add slack variables to constraints; subtract surplus variables from constraints.
- Artificial variables. Add an artificial variable to every and constraint, so that an identity matrix is available for the starting basis.
- Penalty. Give each artificial variable a very large cost in the objective: Because is huge, any solution with an artificial variable at a positive level is very expensive, so the minimisation drives them out.
- Initial table. Basis: slacks and artificials. Compute ; these will contain terms in .
- Optimality test (minimisation). The solution is optimal when all . Compare values by their -coefficient first, then by the constant.
- Entering variable: the one with the largest positive . Leaving variable: by the usual minimum ratio , . Pivot as usual. An artificial variable that leaves need not be brought back; its column can be dropped.
- Termination.
- If all and no artificial variable is positive: optimal solution of the original problem.
- If all but some artificial variable is positive: the problem has no feasible solution.
- If an entering column has no positive entry: unbounded solution.
(Equivalently one may minimise by maximising , as in step 8 below.)
Changes for a maximisation problem.
- The artificial variables get the penalty in the objective: Max .
- The optimality condition becomes all .
- The entering variable is the one with the most negative .
- The ratio test, pivoting and the feasibility/unboundedness tests are the same.
✓ Answer checked step by step Every step was checked against Charnes’ Big-M method: penalty +M for artificials in a minimisation (−M in a maximisation), the optimality rule in each case, and the infeasibility test.
State and prove duality theorem in linear programming.
Solution
Primal and dual.
Duality theorem. (a) If and are feasible for (P) and (D), then . (b) If either problem has a finite optimal solution, then so does the other, and . (c) If either problem has an unbounded objective, the other has no feasible solution.
Proof of (a) — weak duality. For feasible and : using with , and with . ∎
Corollary. If for feasible , then both are optimal: no feasible can give more than , and no feasible less than .
Proof of (b) — strong duality. Suppose (P) has an optimal solution. Add slacks: . The simplex method ends with an optimal basis , , and the optimality conditions Define . The two conditions say so is feasible for (D). Its objective value is By the corollary, is optimal for (D) and . Since the dual of (D) is (P), the argument also works starting from (D). ∎
Proof of (c). If (P) is unbounded and (D) had a feasible , weak duality would give for all feasible , a finite upper bound — contradiction. So (D) is infeasible. Similarly the other way.
Remarks. The optimal dual values appear in the final simplex table of the primal as the of the slack columns; they are the shadow prices of the resources. Together with the theorem, complementary slackness (, ) characterises optimal pairs.
✓ Proof checked step by step Every step was checked: weak duality from AX ≤ b, Aᵀy ≥ c; strong duality from the optimal simplex table (y = c_Bᵀ B⁻¹ is dual feasible with equal objective value); and the unbounded/infeasible case.
What is sensitivity analysis? Explain its use with the help of an example.
Solution
Sensitivity analysis (post-optimality analysis) is the study of how the optimal solution of a linear programming problem changes when its parameters — the objective coefficients , the right-hand sides , the technological coefficients — change, or when variables or constraints are added or removed. It uses the final simplex table, so the problem need not be solved again from the start.
Uses.
- To find the range of each coefficient within which the current optimal basis (the “product mix”) remains optimal.
- To find shadow prices — the change in the optimal value per unit change in a resource — and the range over which they hold.
- To decide quickly whether a new product is profitable, or whether a new constraint changes the plan.
- To judge how reliable the solution is when the data are only estimates, and to plan for changes in prices, costs and capacities.
Example. Maximise subject to , , , . The simplex method gives the final table
| Basis | |||||||
|---|---|---|---|---|---|---|---|
| 3 | 2 | 1 | 0 | 1/3 | 0 | −2/3 | |
| 0 | 2 | 0 | 0 | −1/3 | 1 | 2/3 | |
| 5 | 6 | 0 | 1 | 0 | 0 | 1 | |
| 36 | 0 | 0 | 1 | 0 | 3 |
so , , .
(a) Change in . With profit for : and . So the same plan is optimal for . If the profit of rose to, say, 8, would enter and the plan would change to , ().
(b) Change in . Shadow price of resource 1 = : each extra unit of resource 1 adds ₹1 to . From : , , so the basis stays feasible for . For instance, gives , , .
(c) New product. A product using units of the three resources with profit 5: , so it is worth introducing and the simplex iterations continue from the present table.
✓ Checked by computer We checked in Python (scipy linprog): the example optimum is z = 36 at (2, 6), and re-solving with c₁ = 7.5 and c₁ = 8 confirms the stated range 0 ≤ c₁ ≤ 7.5.
Show that the set of feasible solutions to a linear programming problem is convex.
Solution
(This is the same question as Q28 (2012, 1e) above. The worked solution is repeated here so that each question is complete.)
Theorem. The set of feasible solutions of a linear programming problem is a convex set.
Set-up. Let the LPP be: optimise subject to , (any LPP can be put in this form with slack and surplus variables). Let A set is convex if, for any two points , the whole segment joining them lies in : for all .
Proof.
- If is empty or a single point, it is convex.
- Otherwise take any , so that , , , . Let and
- Constraints: .
- Non-negativity: each component of is , a sum of non-negative numbers, so .
- Hence .
So every convex combination of two feasible solutions is feasible, and is convex. ∎
Remarks. (1) For inequality constraints the same argument gives . (2) is the intersection of finitely many half-spaces and hyperplanes, each of which is convex; an intersection of convex sets is convex, which is another proof.
✓ Proof checked step by step Every step was checked: a convex combination of two solutions of AX = b (or AX ≤ b) with X ≥ 0 is again such a solution.
Explain the Simplex Algorithm for solving a linear programming problem.
Solution
The simplex algorithm (Dantzig, 1947) solves an LPP by moving from one basic feasible solution (corner of the feasible region) to an adjacent one with a better value of the objective, until no improvement is possible. We state it for a maximisation problem.
Step 1. Standard form. Write the problem as Max subject to , , with : add slack variables to constraints, subtract surplus variables and add artificial variables to constraints, add artificial variables to constraints. (A minimisation problem is converted by maximising .)
Step 2. Initial basic feasible solution. Take the slack (and artificial) variables as the basic variables: , all other variables zero. Set up the simplex table with columns Basis, , and one column for every variable.
Step 3. Optimality test. Compute the index row If all , the current solution is optimal; stop. (If some non-basic , alternative optima exist.)
Step 4. Entering variable. Choose the non-basic variable with the most negative . Increasing it raises at the fastest rate per unit.
Step 5. Unboundedness test. If every entry in the column of , the variable can be increased indefinitely: the solution is unbounded; stop.
Step 6. Leaving variable (minimum ratio rule). Compute The basic variable of row leaves; is the pivot (key) element. This rule keeps all variables non-negative.
Step 7. Pivoting. Form the new table:
- new pivot row = old pivot row ÷ ;
- for every other row : new row = old row − (new pivot row). Then replaces the leaving variable in the basis and increases by .
Step 8. Return to Step 3.
Termination. With non-degenerate solutions strictly increases at every step, no basis can repeat, and there are finitely many bases, so the method ends in a finite number of steps with an optimal, unbounded or (if an artificial variable stays positive) infeasible verdict. Degeneracy can cause cycling, which is avoided by special rules (perturbation, Bland’s rule).
✓ Answer checked step by step Every step was checked against the standard simplex algorithm: initial BFS, optimality test z_j − c_j ≥ 0 (maximisation), entering by most negative z_j − c_j, leaving by minimum ratio, pivoting, and the unboundedness test.
Solve the following LP problem graphically: Maximise subject to
Solution
Constraint lines (each feasible side contains the origin):
- : through and .
- : through and .
- : through and .
- : horizontal line.
Corner points of the feasible region .
| Corner | Lines | ||
|---|---|---|---|
| axes | (0, 0) | 0 | |
| 2 and | (4, 0) | 12 | |
| 1 and 2 | (10/3, 4/3) | 38/3 ≈ 12.67 | |
| 1 and 4 | (2, 2) | 10 | |
| 3 and 4 | (1, 2) | 7 | |
| 3 and | (0, 1) | 2 |
(: solving , gives , .)
Answer. The iso-profit line touches the region only at . Constraints 3 and 4 are not binding at the optimum.
✓ Checked by computer We checked in Python (scipy linprog): the maximum is Z = 38/3 at (10/3, 4/3); the six corner values were recomputed.
Solve by Big-M method the following LP problem: Maximize subject to
Solution
Standard form. Surplus and artificial for the first constraint; slacks , for the others:
Table 1.
| Basis | Ratio | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| −M | 2 | 2 | 1 | −1 | 0 | 0 | 1 | 1 | |
| 0 | 3 | 1 | 3 | 0 | 1 | 0 | 0 | 3 | |
| 0 | 4 | 0 | 1 | 0 | 0 | 1 | 0 | — | |
| −2M | −2M−3 | −M+1 | M | 0 | 0 | 0 |
Entering: (most negative ). Leaving: (smallest ratio 1). Pivot element: 2.
Table 2.
| Basis | Ratio | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| 3 | 1 | 1 | 1/2 | −1/2 | 0 | 0 | 1/2 | — | |
| 0 | 2 | 0 | 5/2 | 1/2 | 1 | 0 | −1/2 | 4 | |
| 0 | 4 | 0 | 1 | 0 | 0 | 1 | 0 | — | |
| 3 | 0 | 5/2 | −3/2 | 0 | 0 | M+3/2 |
Entering: (most negative ). Leaving: (smallest ratio 4). Pivot element: 1/2.
Table 3.
| Basis | ||||||||
|---|---|---|---|---|---|---|---|---|
| 3 | 3 | 1 | 3 | 0 | 1 | 0 | 0 | |
| 0 | 4 | 0 | 5 | 1 | 2 | 0 | −1 | |
| 0 | 4 | 0 | 1 | 0 | 0 | 1 | 0 | |
| 9 | 0 | 10 | 0 | 3 | 0 | M |
All and is out of the basis: optimal.
Answer. Here (the first constraint is exceeded: ) and . Check: .
✓ Checked by computer We checked in Python (scipy linprog): the maximum is Z = 9 at x₁ = 3, x₂ = 0, the same as the Big-M tables below (exact fractions).
Define the primal LP problem and its dual. Show that the optimal values of objective function under both the primal and dual problems are equal, if they are finite.
Solution
Primal. with an matrix.
Dual. with one dual variable for each primal constraint. (Each primal variable gives a dual constraint; the roles of and are exchanged; the matrix is transposed; max ↔︎ min; ↔︎ .)
Theorem. If both have finite optimal solutions, then .
Step 1 (weak duality). If is feasible for (P) and for (D): So every feasible is every feasible ; in particular .
Step 2 (equality). Let be optimal for (P), obtained by the simplex method after adding slacks (), with optimal basis and . The optimality conditions are (the second set for the slack columns, whose costs are 0). Put . Then these conditions read and : is dual feasible. Moreover By Step 1, no feasible gives below , so is optimal for (D) and
Remarks. The optimal dual variables are the of the slack columns in the final primal table (shadow prices). If one problem has an unbounded objective, the other is infeasible.
✓ Proof checked step by step Every step was checked: weak duality c’x ≤ b’y for feasible pairs, and the construction y* = (c_B’B⁻¹)’ from the optimal primal table, which is dual feasible with b’y* = c’x*.
Show that the set of all feasible solutions of a L.P. problem is a convex set, bounded by hyperplanes.
Solution
Definitions.
- A hyperplane in is a set (). It divides into two closed half-spaces and , of which is the boundary.
- A set is convex if and imply .
The feasible set. For the LPP with constraints the feasible set is (Equality constraints are intersections of two half-spaces, and constraints are half-spaces too.)
Step 1. Each half-space is convex. Let satisfy and . Then So the half-space contains the segment joining any two of its points. The same holds for a hyperplane (with equality).
Step 2. An intersection of convex sets is convex. If lie in every set of the family, so does each point of the segment between them, since each set is convex.
Step 3. Conclusion. is a finite intersection of closed half-spaces, so it is convex; it is also closed. Its boundary consists of points of that lie on at least one of the bounding hyperplanes Thus the feasible set is a convex set (a convex polyhedron) bounded by hyperplanes. Its extreme points are the points where at least linearly independent bounding hyperplanes meet; they correspond to the basic feasible solutions. ∎
(Directly: for , and , as in the standard proof.)
✓ Proof checked step by step Every step was checked: convexity of the feasible set via convex combinations, and its description as an intersection of finitely many closed half-spaces bounded by the hyperplanes aᵢᵀx = bᵢ and x_j = 0.
What is a linear programming problem? What are the assumptions made in a linear programming problem? The manager of an oil refinery company must decide on the optimal mix of two possible blending processes of which the inputs and the outputs per production run are as follows:
| Processes | Input (units): Crude-1 | Input (units): Crude-2 | Output (units): Petrol superior | Output (units): Petrol ordinary |
| A | 10 | 6 | 10 | 16 |
| B | 12 | 15 | 12 | 12 |
The availability of the two varieties is limited to the extent of 400 units and 450 units, respectively, per day. The market demand indicates that at least 200 units and 240 units of superior and ordinary quality petrol, respectively, is required every day. The profitability analysis indicates that the process A contributed Rs. 480 per run while the process B contributed Rs. 400 per run, The manager is interested in determining an optimal product mix to maximize company’s profit. Formulate this as a linear programming problem.
Solution
Linear programming problem. An LPP is the problem of choosing non-negative values of decision variables so as to maximise or minimise a linear objective function subject to a set of linear equality or inequality constraints, representing limited resources and requirements.
Assumptions.
- Proportionality (linearity): the contribution of each activity to the objective and to each constraint is proportional to its level.
- Additivity: the total of each is the sum of the contributions of the individual activities (no interaction).
- Divisibility (continuity): variables may take fractional values.
- Certainty: all coefficients , , are known constants.
- Non-negativity: activity levels cannot be negative.
- Finiteness: a finite number of activities and constraints; a single objective.
Formulation. Let and be the numbers of production runs of processes and per day.
Objective (profit):
Availability of crude oil:
Market demand:
Non-negativity: .
(Solving this model gives , , ; Crude-1 is fully used.)
✓ Checked by computer Every constraint was checked against the table; we also solved the model in Python (scipy linprog) as a check: 40 runs of A, profit ₹19,200.
Write down the dual of the following linear programming problem and solve it by using simplex method
Solution
The dual. The primal is a minimisation with constraints and ; its dual is a maximisation with constraints. With dual variables for the two constraints: subject to
Solve the dual by the simplex method. Add slacks :
Table 1.
| Basis | Ratio | |||||||
|---|---|---|---|---|---|---|---|---|
| 0 | 24 | 1 | 4 | 1 | 0 | 0 | 6 | |
| 0 | 21 | 3 | 1 | 0 | 1 | 0 | 21 | |
| 0 | 9 | 1 | 1 | 0 | 0 | 1 | 9 | |
| 0 | −2 | −5 | 0 | 0 | 0 |
Entering: (most negative ). Leaving: (smallest ratio 6). Pivot element: 4.
Table 2.
| Basis | Ratio | |||||||
|---|---|---|---|---|---|---|---|---|
| 5 | 6 | 1/4 | 1 | 1/4 | 0 | 0 | 24 | |
| 0 | 15 | 11/4 | 0 | −1/4 | 1 | 0 | 60/11 | |
| 0 | 3 | 3/4 | 0 | −1/4 | 0 | 1 | 4 | |
| 30 | −3/4 | 0 | 5/4 | 0 | 0 |
Entering: (most negative ). Leaving: (smallest ratio 4). Pivot element: 3/4.
Table 3.
| Basis | |||||||
|---|---|---|---|---|---|---|---|
| 5 | 5 | 0 | 1 | 1/3 | 0 | −1/3 | |
| 0 | 4 | 0 | 0 | 2/3 | 1 | −11/3 | |
| 2 | 4 | 1 | 0 | −1/3 | 0 | 4/3 | |
| 33 | 0 | 0 | 1 | 0 | 1 |
All : optimal.
Dual solution: , .
Primal solution from the final table. The optimal values of the primal variables are the of the slack columns : Check: and . Complementary slackness also holds: , so .
✓ Checked by computer We checked in Python (scipy linprog): both problems have optimal value 33; the dual (maximisation) has x₁ = 4, x₂ = 5, and the primal y = (1, 0, 1), read from the final table.
Discuss briefly sensitivity analysis in the context of a linear programming problem: Maximize subject to , pertaining to instantaneous changes in (i) the coefficients of the objective function, (ii) and (iii) coefficients in the matrix A.
Solution
Let the optimal simplex table of have basis , so and for all . Sensitivity analysis asks how far the data may change before this basis stops being optimal, and what the new solution is. A change may affect feasibility (), optimality (), or both.
(i) Changes in the objective coefficients (affect optimality only).
- Non-basic : only changes. If becomes , then becomes . The solution stays optimal while . If it becomes negative, enters and we continue with the simplex method.
- Basic (in row ): changes, so every non-basic changes to , where is the entry in row , column of the table. The solution stays optimal while all these are : Within the range, is unchanged and changes by .
(ii) Changes in the resource vector (affect feasibility only).
- The do not involve , so optimality is kept. The new basic solution is .
- For a change in alone: , where is column of (the column of the -th slack in the final table). This gives the range of .
- Within the range, changes by , where is the shadow price (the of slack ). Outside it, some and the dual simplex method restores feasibility.
(iii) Changes in the coefficients .
- Column of a non-basic variable : is unchanged, so feasibility is not affected; recompute . If it is the solution stays optimal; otherwise enters (put the new column into the table and iterate).
- Column of a basic variable: itself changes, so , and all may change; both feasibility and optimality must be re-checked, and usually the problem is re-solved (or the new column is inserted and pivoted back into the basis).
These “instantaneous” (discrete) changes are thus handled from the final table, which saves recomputation and shows how stable the optimal plan is.
✓ Answer checked step by step Every result was checked against standard post-optimality formulas: z_j − c_j = c_Bᵀ B⁻¹ a_j − c_j for changes in c and in a_ij of non-basic columns, and X_B = B⁻¹b ≥ 0 for changes in b.
Formulate a general linear programming problem (LPP). Define slack and surplus variables and explain their role in this context.
Solution
General linear programming problem. Find which optimise (maximise or minimise) subject to the constraints and the non-negativity restrictions . In matrix form: optimise subject to , . Here are cost/profit coefficients, technological coefficients, resource availabilities or requirements.
Slack variables. For a constraint , the non-negative quantity is the slack: the unused part of resource . Adding it gives the equation .
Surplus variables. For a constraint , the non-negative quantity is the surplus: the excess over the requirement. Subtracting it gives .
Their role.
- They convert the inequalities into equations, giving the standard form , , on which the simplex method works.
- They have zero coefficients in the objective, so they do not change its value.
- Slack variables provide the initial basic feasible solution (identity basis) for constraints; surplus variables cannot (their coefficient is ), so artificial variables are added alongside them.
- In the final table they show which constraints are binding (slack/surplus = 0) and how much resource is idle (slack > 0); their are the shadow prices (dual values) of the constraints.
✓ Answer checked step by step Every point was checked against the standard general LPP and the role of slack and surplus variables in reaching the standard form AX = b, X ≥ 0.
Obtain a necessary and sufficient condition for a basic feasible solution of a LPP to be an optimal solution.
Solution
Setting. Maximise subject to , , where is of rank . Let be a basis with basic feasible solution and value . For each column of write
Theorem. The basic feasible solution is optimal if for every . Conversely, if is non-degenerate and optimal, then for every .
Key identity. Let be any feasible solution, with basic part and non-basic part (). From : Hence (For basic , is a unit vector and .)
Sufficiency. If all , then since every , for every feasible . So is optimal.
Necessity. Suppose is non-degenerate () and for some non-basic . Give a small value and keep the other non-basic variables at zero. Then which is possible because . This is feasible and so is not optimal. Hence at an optimal non-degenerate BFS all . ∎
Remarks. (1) For minimisation the condition is . (2) For a degenerate BFS the condition is sufficient but not necessary: the step may be forced to 0. (3) If and , then can be made arbitrarily large and is unbounded.
✓ Proof checked step by step Every step was checked: Z = Z_B − Σ (z_j − c_j) x_j over non-basic j for any feasible solution, giving sufficiency; necessity follows by raising one x_k with z_k − c_k < 0 at a non-degenerate BFS.
What do you understand by sensitivity analysis with reference to a Linear Programming Problem? Explain.
Solution
Meaning. After an LPP has been solved, sensitivity analysis (also called post-optimality analysis) examines how the optimal solution and the optimal value respond to changes in the data of the problem. The coefficients of an LP model — unit profits or costs , resource availabilities and input requirements — are usually estimates and may change. Instead of solving the changed problem from the beginning, sensitivity analysis uses the final simplex table (, and the ) to answer questions such as:
- Within what range can a vary without changing the optimal product mix?
- Within what range can a vary while the same variables remain basic, and what is the shadow price of each resource?
- Is a new product (a new variable) worth introducing?
- Does a new restriction (a new constraint) change the optimal plan?
- What happens if the technological coefficients change?
How the changes act. In the optimal table, optimality requires and feasibility requires .
- A change in affects only the (optimality). If optimality is lost, the primal simplex method continues.
- A change in affects only (feasibility). If feasibility is lost, the dual simplex method restores it.
- A change in of a non-basic variable affects only its ; a change in a basic column alters and may affect both.
- A new variable is tested by its ; a new constraint, if violated, is added and the dual simplex method is applied.
Why it matters. It shows how robust the decision is to errors in the data, identifies the critical resources and their marginal worth, and lets management respond quickly to changes in markets, technology and capacity. (Parametric programming extends the idea to continuous changes in a parameter.)
✓ Answer checked step by step Every point was checked against the standard meaning of sensitivity (post-optimality) analysis and the changes it covers.
Obtain the rules for choosing the incoming variable and the outgoing variable in the simplex method of solving a linear programming problem.
Solution
Setting. Maximise subject to , . Let be the current basis with basic feasible solution and value . For each column put (the column of the simplex table) and .
Effect of introducing a non-basic variable. Keep all non-basic variables at zero except , which is raised to . To keep , and the objective becomes
Rule for the incoming variable.
- increases with only if . If all , no variable can improve and the solution is optimal.
- Each unit of increases by . The usual (Dantzig) rule takes the variable giving the largest increase per unit: This variable enters the basis. (Any variable with would improve ; the most negative is a convenient choice.)
Rule for the outgoing variable. As increases, the basic variables change as . Feasibility requires all of them to stay .
- If , does not decrease, so it sets no limit.
- If , we need .
So the largest permissible value is At the basic variable becomes zero; it leaves the basis and takes its place. This is the minimum ratio rule, and is the pivot element. The new solution is again basic and feasible, with
Special cases.
- If for all , can be increased without limit and : the problem is unbounded.
- If several ratios tie, the new solution is degenerate; ties are broken by a rule such as the lexicographic rule or Bland’s rule to avoid cycling.
- For minimisation, the incoming variable is the one with the most positive ; the outgoing rule is the same.
✓ Proof checked step by step Every step was checked: the identity Z = Z_B − Σ (z_j − c_j)x_j gives the entering rule, and X_B − θ y_k ≥ 0 gives the minimum-ratio leaving rule (with the unboundedness case).
Define the dual of a linear programming problem (LPP). Also explain the relationships between the solutions of the primal LPP and its dual. If the primal problem has an unbounded solution what can you say about the solution of the dual?
Solution
Dual of an LPP. To every LPP (the primal) there corresponds another LPP (the dual), formed from the same data. For the primal the dual is Rules: one dual variable per primal constraint; one dual constraint per primal variable; objective coefficients and right-hand sides are interchanged; is transposed; max ↔︎ min. An equality constraint gives an unrestricted dual variable, and an unrestricted primal variable gives an equality dual constraint. The dual of the dual is the primal.
Relationships between the solutions.
- Weak duality: for any feasible and , . So any feasible dual solution gives an upper bound on the primal objective.
- Optimality criterion: if feasible , satisfy , both are optimal.
- Strong duality: if either problem has a finite optimal solution, so has the other, and .
- Complementary slackness: at optimality, if a primal constraint is slack, the corresponding dual variable is zero; if a primal variable is positive, the corresponding dual constraint is binding (and vice versa).
- Reading the dual from the primal table: the optimal dual variables are , which appear as the of the slack (or artificial) columns in the final primal table. They are the shadow prices of the resources.
- Possible combinations:
| Primal | Dual |
|---|---|
| finite optimum | finite optimum (equal values) |
| unbounded | infeasible |
| infeasible | unbounded or infeasible |
If the primal is unbounded. Then the dual has no feasible solution. Proof: if the dual had a feasible , weak duality would give for every feasible , a finite bound, contradicting unboundedness. (The converse is not quite true: if the dual is infeasible, the primal may be unbounded or also infeasible.)
✓ Answer checked step by step Every statement was checked against the duality theorems: dual definition and formation rules, weak and strong duality, complementary slackness, and the infeasible/unbounded cases.
For a linear programming problem, explain the following terms (i) Convex cone (ii) Feasible solution (iii) Extreme point (iv) Optimal basic feasible solution (v) Artificial variables.
Solution
Consider the LPP: optimise subject to , .
(i) Convex cone. A set is a cone if implies for every . It is a convex cone if, in addition, imply ; equivalently, for all . Examples: the non-negative orthant ; the set generated by the columns of ; the set of directions along which an unbounded feasible region extends. The LPP is feasible exactly when lies in the convex cone generated by the columns of .
(ii) Feasible solution. A vector that satisfies all the constraints and the non-negativity restrictions . The set of feasible solutions is convex.
(iii) Extreme point. A point of a convex set is an extreme point if it cannot be expressed as with in and — it is not an interior point of any segment in . For the feasible region of an LPP the extreme points are its corners, and they are exactly the basic feasible solutions.
(iv) Optimal basic feasible solution. A basic feasible solution (one obtained by setting variables to zero, solving for the basic variables, with all basic variables non-negative) which also gives the best value of the objective function among all feasible solutions. In the simplex table it is recognised by for all (maximisation). If an LPP has an optimal solution, it has an optimal BFS.
(v) Artificial variables. Fictitious non-negative variables added to and constraints so that an identity matrix, and hence an initial basic feasible solution, is available for the simplex method. They have no physical meaning and must be driven to zero, either by giving them a large penalty in the objective (Big-M method) or by minimising their sum in Phase I (two-phase method). If an artificial variable remains positive at the optimum, the original problem is infeasible.
✓ Answer checked step by step Every definition was checked against the standard definitions of a convex cone, feasible solution, extreme point, optimal BFS and artificial variables.
For a given linear programming problem, state its dual and show that the dual of the dual is the primal. Also, state the relationship between the nature of the solutions of the primal and the dual problems.
Solution
Primal and dual. Take the primal in canonical form Its dual is (One dual variable for each primal constraint; transposed; and interchanged; max ↔︎ min; ↔︎ .)
The dual of the dual is the primal.
- Put (D) into the canonical form of a maximisation problem with constraints. Since and :
- This has the same form as (P) with , , . Apply the rule for forming the dual: variables , one for each constraint of (D), i.e. Min subject to , .
- Since and , this is which is (P). ∎
So duality is symmetric: either problem may be called the primal.
Relationship between the nature of the solutions.
- If one has a finite optimal solution, so does the other, and (duality theorem). The optimal dual values are the of the slack columns in the final primal table.
- If one has an unbounded solution, the other has no feasible solution.
- If one is infeasible, the other is either unbounded or infeasible.
- Both may be infeasible (e.g. Max s.t. , , whose dual Min s.t. , is also infeasible).
- For any feasible pair, (weak duality), and at the optimum complementary slackness holds.
✓ Proof checked step by step Every step was checked: writing the dual in the primal’s canonical form and dualising again returns the original problem; and the four possible primal–dual outcomes.
Explain what you understand by sensitivity analysis in linear programming.
Solution
(This is the same question as Q49 (2000, 1e) above. The worked solution is repeated here so that each question is complete.)
Meaning. After an LPP has been solved, sensitivity analysis (also called post-optimality analysis) examines how the optimal solution and the optimal value respond to changes in the data of the problem. The coefficients of an LP model — unit profits or costs , resource availabilities and input requirements — are usually estimates and may change. Instead of solving the changed problem from the beginning, sensitivity analysis uses the final simplex table (, and the ) to answer questions such as:
- Within what range can a vary without changing the optimal product mix?
- Within what range can a vary while the same variables remain basic, and what is the shadow price of each resource?
- Is a new product (a new variable) worth introducing?
- Does a new restriction (a new constraint) change the optimal plan?
- What happens if the technological coefficients change?
How the changes act. In the optimal table, optimality requires and feasibility requires .
- A change in affects only the (optimality). If optimality is lost, the primal simplex method continues.
- A change in affects only (feasibility). If feasibility is lost, the dual simplex method restores it.
- A change in of a non-basic variable affects only its ; a change in a basic column alters and may affect both.
- A new variable is tested by its ; a new constraint, if violated, is added and the dual simplex method is applied.
Why it matters. It shows how robust the decision is to errors in the data, identifies the critical resources and their marginal worth, and lets management respond quickly to changes in markets, technology and capacity. (Parametric programming extends the idea to continuous changes in a parameter.)
✓ Answer checked step by step Every point was checked against the standard meaning of sensitivity (post-optimality) analysis and the changes it covers.
State the general linear programming problem. Give its mathematical formulation and explain the terms: (i) Basic solution (ii) Feasible solution (iii) Basic feasible solution, and (iv) Optimal solution.
Solution
General LPP. Find the values of the decision variables that optimise (maximise or minimise) the linear objective function subject to the linear constraints and the non-negativity restrictions , .
Mathematical formulation (matrix form). With , , and : After adding slack/surplus variables, the standard form is , , , where now is () of rank .
(i) Basic solution. Choose variables whose columns in are linearly independent (the basis ). Set the remaining (non-basic) variables equal to zero and solve ; the resulting solution , with the zeros, is a basic solution. There are at most basic solutions. If some basic variable is zero the basic solution is degenerate.
(ii) Feasible solution. Any that satisfies all the constraints and the non-negativity restrictions.
(iii) Basic feasible solution (BFS). A basic solution which is also feasible, i.e. all basic variables are non-negative. Geometrically, BFSs are the corner (extreme) points of the feasible region. A BFS with all basic variables positive is non-degenerate.
(iv) Optimal solution. A feasible solution that gives the best (maximum or minimum) value of among all feasible solutions. If an optimal solution exists, at least one optimal solution is a BFS; in the simplex method it is identified by for all (maximisation).
Example. For , (, ): setting gives , , a basic but infeasible solution; setting gives , , a basic feasible solution.
✓ Answer checked step by step Every definition was checked against the standard formulation of the general LPP and the meanings of basic, feasible, basic feasible and optimal solutions.
Show that the optimal solution of a linear programming problem can be found amongst its feasible solutions.
Solution
Theorem. If an LPP has an optimal (feasible) solution, then it has an optimal solution among its basic feasible solutions. Hence the optimum can be found by examining the finitely many basic feasible solutions (as the simplex method does).
Setting. Maximise subject to , , of order and rank . Let be an optimal feasible solution with positive components, say and , so that
Case 1. If are linearly independent (), is already a basic feasible solution (add further columns to complete a basis if ; the solution is then degenerate). Done.
Case 2. If are dependent, there are , not all zero, with For any real , with components () and 0 otherwise satisfies , and it is feasible for small enough, since .
- The objective does not change. . If , choosing a small of the appropriate sign would give a feasible solution better than , which is impossible. So and for all feasible .
- Reduce the number of positive components. Changing the signs of all if necessary, assume some and take Then , at least one component becomes zero, and is still optimal, with at most positive components.
Repeat the argument. After a finite number of steps the positive components correspond to linearly independent columns, i.e. we reach an optimal basic feasible solution. ∎
Since there are at most basic feasible solutions, the optimal solution can be found among them; the simplex method searches these systematically.
✓ Proof checked step by step Every step was checked: a non-basic feasible solution can be reduced, by removing a linear dependence among its positive columns, to a basic feasible solution with at least as good an objective value (when the optimum is finite).
Show that the objective function of a linear programming problem (LPP) will assume its minimum value at an extreme point of the convex set of feasible solutions of the LPP. If the objective function assumes the minimum value at more than one point then show that it will assume this minimum value at infinite number of points.
Solution
Setting. Minimise over the convex set , assumed bounded, with extreme points (finitely many, since they are the basic feasible solutions).
Part 1. The minimum is attained at an extreme point. Let give the minimum . Since is a bounded convex polyhedron, is a convex combination of the extreme points: Let be an extreme point with . Then But is the minimum over , so . Hence : the minimum is attained at the extreme point . ∎
(If is unbounded with a finite minimum, write with directions ; finiteness forces , and the same inequality gives the result.)
Part 2. If the minimum is attained at more than one point, it is attained at infinitely many points. Suppose for two distinct points (for instance two extreme points). For every , the point lies in (convexity), and So every is a minimising point. Since , the points are all different for different , and there are infinitely many of them (the whole segment ). ∎
More generally, if are minimising extreme points, every convex combination is also minimising. Geometrically, the iso-cost hyperplane then contains a whole edge or face of the feasible region, and the problem has alternative optimal solutions.
✓ Proof checked step by step Every step was checked: the minimum of a linear function over a bounded convex polyhedron is attained at an extreme point, and if it is attained at two distinct points it is attained at every point of the segment joining them (infinitely many points).
Obtain a necessary and sufficient condition for a basic feasible solution to a LPP to be optimal.
Solution
(This is the same question as Q48 (2001, 3a) above. The worked solution is repeated here so that each question is complete.)
Setting. Maximise subject to , , where is of rank . Let be a basis with basic feasible solution and value . For each column of write
Theorem. The basic feasible solution is optimal if for every . Conversely, if is non-degenerate and optimal, then for every .
Key identity. Let be any feasible solution, with basic part and non-basic part (). From : Hence (For basic , is a unit vector and .)
Sufficiency. If all , then since every , for every feasible . So is optimal.
Necessity. Suppose is non-degenerate () and for some non-basic . Give a small value and keep the other non-basic variables at zero. Then which is possible because . This is feasible and so is not optimal. Hence at an optimal non-degenerate BFS all . ∎
Remarks. (1) For minimisation the condition is . (2) For a degenerate BFS the condition is sufficient but not necessary: the step may be forced to 0. (3) If and , then can be made arbitrarily large and is unbounded.
✓ Proof checked step by step Every step was checked: Z = Z_B − Σ (z_j − c_j) x_j over non-basic j for any feasible solution, giving sufficiency; necessity follows by raising one x_k with z_k − c_k < 0 at a non-degenerate BFS.
Discuss the economic interpretation of the primal and the dual problems with suitable examples.
Solution
Primal: the allocation problem. A firm makes products using resources. Let = output of product , its unit profit, the amount of resource used per unit of product , and the amount of resource available. The primal asks: how much of each product should be made to maximise profit with the given resources?
Dual: the valuation problem. Let be the value (price) to be imputed to one unit of resource . The dual asks: what is the least total value that can be put on the firm’s resources such that, for every product, the value of the resources used to make one unit is at least the profit it earns? It can be pictured as an outside buyer who wants to buy all the firm’s resources as cheaply as possible, but must offer prices at which the firm would not rather use them itself.
Interpretation of the results.
- Shadow prices. The optimal is the marginal worth of resource : the increase in maximum profit if one more unit of it were available. It tells management the highest price worth paying for extra units of that resource.
- Equality of optimal values. : the total profit of the best plan equals the total imputed value of the resources; profit is fully “explained” by the resources.
- Complementary slackness.
- If a resource is not fully used (), it is a free good: .
- If , the resource is scarce and fully used.
- If a product is made (), the imputed cost of its resources equals its profit: .
- If the imputed cost exceeds its profit (), the product is not made: it does not earn enough to pay for the resources it uses. The difference is the “opportunity cost” shown as in the simplex table.
Example. A firm makes two products with profits ₹3 and ₹5 per unit. Product 1 uses 3 hours of machine I, product 2 uses 2 hours; 18 hours are available. Product 1 also needs 1 hour of machine II (4 hours available), and product 2 needs 1 hour of machine III (6 hours available).
Primal: Max s.t. , , . Optimum: , , .
Dual: Min s.t. , . Optimum: , , , .
Meaning.
- One more hour of machine I would raise profit by ₹1; one more hour of machine III by ₹3.
- Machine II has 2 hours idle, so its shadow price is 0: extra hours of it are worthless.
- Both products are made, and for each the imputed value of the inputs equals the profit: and .
A similar reading applies to a minimisation primal (e.g. a diet problem): the dual gives the prices of the nutrients that a supplier of pure nutrient pills could charge, and its optimal value equals the minimum cost of the diet.
✓ Answer checked step by step Every point was checked against the standard economic interpretation of duality (resource valuation, shadow prices, complementary slackness), and the example was solved in Python: primal 36, dual y = (1, 0, 3) with value 36.
Define (i) basic feasible solution, (ii) slack and surplus variables and (iii) artificial variables in the context of a linear programming problem (LPP).
Solution
Consider the LPP: optimise subject to , , with .
(i) Basic feasible solution. Write the constraints in standard form , with equations in variables (, rank ). A basic solution is obtained by setting variables (non-basic) to zero and solving for the remaining (basic) variables, whose columns must be linearly independent. A basic solution in which all basic variables are non-negative is a basic feasible solution (BFS). It is non-degenerate if all basic variables are positive and degenerate otherwise. BFSs correspond to the corner points of the feasible region; the simplex method moves from one BFS to another.
Example. , : setting gives the BFS , ; setting gives the BFS , .
(ii) Slack and surplus variables.
- A slack variable is added to a “” constraint to make it an equation: , . It represents the unused amount of the resource.
- A surplus variable is subtracted from a “” constraint: , . It represents the amount by which the requirement is exceeded.
- Both have zero cost in the objective function. Slack variables can form the starting basis; surplus variables cannot, because of their coefficient .
(iii) Artificial variables. Non-negative fictitious variables added to “” and “” constraints (after any surplus variable) to provide an identity matrix and hence an initial BFS: . They have no economic meaning, so they must be removed from the solution: in the Big-M method they get a cost (maximisation) or (minimisation), with very large; in the two-phase method their sum is minimised first. If an artificial variable remains positive in the final solution, the problem has no feasible solution.
✓ Answer checked step by step Every definition was checked against the standard definitions used in the simplex method.
Show that if an optimal solution exists for a LPP then it corresponds to an extreme point of the feasible region.
Solution
(This is the same question as Q17 (2018, 1a) above. The worked solution is repeated here so that each question is complete.)
Setting. Consider: Maximise subject to . is convex, and we take it to be bounded (a convex polyhedron) with extreme points ( finite, since there are at most basic feasible solutions). Suppose the problem has an optimal solution , with .
To prove: some extreme point satisfies .
Proof.
- A bounded convex polyhedron is the convex hull of its extreme points. So can be written
- Let be the extreme point with the largest objective value:
- By linearity,
- But is feasible and is optimal, so .
- Hence : the extreme point is an optimal solution. ∎
If is unbounded. Every can be written as , where the are extreme directions (, ) and . If the optimum is finite, for every (otherwise would be unbounded), so , and the same argument applies.
Remarks.
- The same proof (with “min”) works for minimisation.
- If the maximum is attained at several extreme points, it is also attained at every convex combination of them (alternative optima).
- This theorem is the basis of the simplex method: we need only search among the finitely many basic feasible solutions.
✓ Proof checked step by step Every step was checked: the feasible set is a convex polytope; every feasible point is a convex combination of extreme points (plus, if unbounded, directions that cannot improve a finite optimum); linearity then gives an extreme point at least as good.
Describe the simplex algorithm for solving a LPP. How is this procedure modified when some of the variables are unrestricted?
Solution
The simplex algorithm (for maximisation; a minimisation problem is handled by maximising ).
- Standard form. Make all right-hand sides non-negative. Convert inequalities into equations: add slack variables to constraints, subtract surplus variables and add artificial variables to constraints, add artificial variables to constraints.
- Initial BFS. Take the slack and artificial variables as the basic variables () and set up the initial simplex table. Artificial variables are handled by the Big-M or two-phase method.
- Optimality test. Compute for all non-basic variables. If all , the current BFS is optimal: stop.
- Entering variable. Choose with the most negative .
- Unboundedness test. If all entries in column are , the solution is unbounded: stop.
- Leaving variable. Compute the ratios for ; the row with the smallest ratio gives the leaving variable, and is the pivot.
- Pivoting. Divide the pivot row by ; subtract suitable multiples of it from the other rows to make all other entries in column zero. Update and the basis.
- Go to step 3.
At each step does not decrease, and in the non-degenerate case it strictly increases, so the algorithm ends after a finite number of iterations.
Modification when some variables are unrestricted in sign. The simplex method requires all variables to be non-negative, so an unrestricted variable must be replaced first.
Method 1 (difference of two non-negative variables). Write Substitute in the objective and all constraints. The column of is the negative of the column of , so the two can never be basic together (their columns are dependent). In the final solution at most one of them is positive: if , or if .
Method 2 (elimination). If appears in an equation with , solve for in terms of the other variables, substitute it in the objective and the other constraints, and drop that equation. After solving, recover from the eliminated equation.
Method 3 (one extra variable). If several variables are unrestricted, write for each, with a single common .
Then apply the ordinary simplex algorithm to the transformed problem.
Example. Maximise subject to , , , unrestricted. With the simplex method gives , , so and .
✓ Answer checked step by step Every step was checked against the standard simplex algorithm and the substitution x_j = x_j′ − x_j″ (or elimination) for unrestricted variables.
Explain the general formulation of a linear programming problem (LPP). Describe an example.
Solution
General formulation. Every LPP has four components.
- Decision variables : the levels of the activities to be decided (quantities to produce, buy, ship …).
- Objective function: a linear function to be maximised (profit, output) or minimised (cost, time):
- Constraints: linear restrictions arising from limited resources, demands, policies:
- Non-negativity: .
In matrix form: optimise subject to , . The model assumes proportionality, additivity, divisibility, certainty and finiteness.
Steps in formulating. (a) Understand the problem and identify the decision variables; (b) express the objective in terms of them; (c) write each restriction as a linear inequality or equation; (d) add the non-negativity conditions.
Example (product mix). A firm makes chairs () and tables ().
- Each chair needs 2 hours of machining and 1 hour of assembly; each table needs 1 hour of machining and 1 hour of assembly.
- 100 machining hours and 80 assembly hours are available per week.
- The profits are ₹40 per chair and ₹30 per table.
Let = chairs and = tables made per week.
Solution (graphical). The corners are , , and , with , 2000, 2600 and 2400. So the firm should make 20 chairs and 60 tables a week for a profit of ₹2,600; both machining and assembly time are fully used.
✓ Checked by computer Every step of the example was checked; we solved it in Python (scipy linprog): x₁ = 20, x₂ = 60, Z = 2600.
Define a basic feasible solutions (bfs) and an optimal solution to a LPP. Show that a bfs is an extreme point of the set of feasible solutions and conversely.
Solution
Definitions. For the LPP with feasible set ( of order , rank ):
- A basic feasible solution (bfs) is a feasible whose positive components correspond to linearly independent columns of (equivalently, is obtained by setting variables to zero and solving for variables with independent columns, all of them ).
- An optimal solution is a feasible solution giving the best value of the objective function over .
- is an extreme point if with , implies .
Theorem. is a basic feasible solution if and only if it is an extreme point of .
(a) Every bfs is an extreme point. Let be a bfs with basic variables (columns independent) and . Suppose
- For : with and , so .
- Then and reduce to and . Subtracting, , and since are independent, for all .
- So , and therefore .
Hence cannot be written as a proper convex combination of two different feasible points: it is an extreme point.
(b) Every extreme point is a bfs. Let be an extreme point with positive components and the rest zero, so . Suppose, for contradiction, that are linearly dependent: with .
- Since every for , choose so small that for all .
- Put and . Then , , so , and .
- But , contradicting that is an extreme point.
So are independent; necessarily , and (adding further columns of to form a basis if ) is a basic feasible solution, possibly degenerate. ∎
Consequence. The set of extreme points is finite (at most ), and since an optimal solution, if it exists, occurs at an extreme point, the simplex method only needs to search among basic feasible solutions.
✓ Proof checked step by step Every step was checked in both directions: a BFS cannot be a proper convex combination of two feasible points (the zero components and independence of the basic columns force equality), and the positive columns of an extreme point are linearly independent.
A firm manufactures two items A and B. It purchases castings which are then machined, bored and polished. Castings for items A and B cost Rs. 3 and Rs. 4 each and are sold at Rs. 6 and Rs. 7 each, respectively. Running costs of the processing machines are Rs. 20, Rs. 14 and Rs. 17.50 per hour respectively and their hourly capacities are as follows.
| Item A | Item B | |
| Machining | 25 | 40 |
| Boring | 28 | 35 |
| Polishing | 35 | 25 |
Formulate this problem as a LPP.
Solution
Decision variables. Let and be the numbers of items and processed per hour.
Profit per item. Selling price − cost of casting − machine running cost per item. A machine that processes 25 items an hour at ₹20 an hour costs per item, and so on.
| Item A | Item B | |
|---|---|---|
| Selling price − casting | 6 − 3 = 3.00 | 7 − 4 = 3.00 |
| Machining | 20/25 = 0.80 | 20/40 = 0.50 |
| Boring | 14/28 = 0.50 | 14/35 = 0.40 |
| Polishing | 17.50/35 = 0.50 | 17.50/25 = 0.70 |
| Profit per item (₹) | 1.20 | 1.40 |
Objective.
Capacity constraints. Item needs hour of machining, item hour; each machine has 1 hour per hour:
This is the required LPP. (Solving it gives and items per hour, with machining and polishing fully used and a profit of about ₹38.39 per hour.)
✓ Checked by computer Every coefficient was recomputed: profit per unit (6 − 3 − 20/25 − 14/28 − 17.5/35 = 1.20 for A; 7 − 4 − 20/40 − 14/35 − 17.5/25 = 1.40 for B) and the hourly capacity constraints; we also solved the model in Python (scipy linprog).
Explain Charne’s M-technique for solving a LPP.
Solution
Purpose. When some constraints are of the or type, the standard form has no ready identity basis, so the simplex method cannot start. Charnes’ M-technique (the Big-M or penalty method) adds artificial variables to supply the identity basis and attaches a very large penalty to them in the objective, so that the simplex method itself drives them out.
Steps.
- Standard form. Express the problem in standard form with : slack variables for constraints, surplus variables for constraints.
- Add artificial variables to each and constraint.
- Modify the objective. Give each artificial variable the coefficient in a maximisation (or in a minimisation), where is a positive number larger than any number it will be compared with:
- Initial table. Basis: slack and artificial variables. The are of the form .
- Iterate by the simplex rules. Compare by the coefficient of first and then by the constant term. Enter the variable with the most negative (maximisation); leave by the minimum ratio rule. Once an artificial variable leaves the basis it can be dropped from further tables.
- Conclusions.
- All and no artificial variable in the basis at a positive level → optimal solution of the original problem.
- All but some artificial variable positive → the original problem has no feasible solution.
- An artificial variable in the basis at zero level → the solution is optimal but degenerate (and a constraint may be redundant).
- An entering column with no positive entry → unbounded solution.
Illustration. Minimise subject to , , . We maximise with , , . The initial are for and for , so enters; after three iterations the artificial variables have left and the optimum is , , .
Drawbacks. The value of is arbitrary, and on a computer a very large causes rounding errors; the two-phase method avoids this.
✓ Answer checked step by step Every step was checked against Charnes’ Big-M (penalty) method, including the comparison of M-terms and the infeasibility and unboundedness verdicts; the illustration was solved exactly (min Z = 23 at (4, 1)).
Define degeneracy in a LPP. When is this encountered and how is this problem overcome?
Solution
Definition. A basic feasible solution is degenerate if one or more of the basic variables take the value zero. An LPP is degenerate if it has at least one degenerate basic feasible solution. Geometrically, more than of the bounding hyperplanes pass through the corresponding corner of the feasible region in dimensions, so the same corner is represented by more than one basis.
When it is encountered.
- At the start: when some right-hand side (the initial basic variable of that row is zero).
- During the iterations: when there is a tie in the minimum ratio test, i.e. two or more rows give the same smallest ratio . Only one of them leaves; the others remain basic with value zero in the next table.
- In the transportation problem, when the number of occupied cells is less than .
Why it is a problem.
- When a basic variable is zero, the next ratio may be , so the pivot changes the basis without changing the solution or the value of .
- The simplex method may then go round a sequence of bases with the same and return to an earlier basis: this is cycling, and the method would never stop. Cycling is rare in practice, but examples exist (Beale, 1955).
- Degeneracy can also make the optimality test necessary-but-not-sufficient in reverse (a degenerate optimal BFS may show some ) and leads to non-unique dual (shadow) prices.
How it is overcome.
- Perturbation method (Charnes). Replace by for a very small . Then no ties can occur; in practice one breaks a tie by comparing the ratios formed from the columns of the unit (slack) vectors, taken in order.
- Lexicographic rule. Among the tied rows, divide each element of those rows (starting with the first column of the identity, then the next, …) by the pivot-column entry and choose the row with the smallest ratio at the first column where they differ. This always gives a unique leaving variable and prevents cycling.
- Bland’s smallest-index rule. Choose as entering variable the eligible variable with the smallest index (any ), and as leaving variable, among tied rows, the one whose basic variable has the smallest index. This guarantees termination.
- Simple practical rule. In hand computation, break ties arbitrarily (or in favour of an artificial variable, or the row with the smallest subscript); since cycling is very rare, the method usually still terminates.
Example. Max subject to , . In the first iteration enters and the ratios and tie; the next table has a basic variable equal to 0, i.e. a degenerate solution. The method still reaches the optimum , , .
✓ Answer checked step by step Every point was checked against the standard theory of degeneracy: a basic variable at zero, its cause (ties in the minimum ratio or a zero right-hand side), cycling (Beale’s example), and the perturbation, lexicographic and Bland’s rules.
Write a note on the duality principle in a LPP.
Solution
Duality principle. Every linear programming problem has a companion problem, called its dual, formed from the same data; the original is called the primal. The two are so related that the solution of one gives the solution of the other.
Formation. For the primal in canonical form the dual is
- The number of dual variables equals the number of primal constraints, and vice versa.
- The right-hand sides of one are the objective coefficients of the other.
- The coefficient matrix is transposed.
- Max becomes min and becomes .
- An equality constraint corresponds to an unrestricted variable, and an unrestricted variable to an equality constraint.
Main results.
- Symmetry: the dual of the dual is the primal.
- Weak duality: for any feasible , ; so feasible solutions of each problem bound the other.
- Strong (fundamental) duality theorem: if either problem has a finite optimum, so does the other, and .
- Existence: if one problem is unbounded, the other is infeasible.
- Complementary slackness: at optimality, and .
- Reading the dual solution: the optimal dual variables are , i.e. the of the slack columns in the final primal simplex table.
Economic meaning. If the primal maximises profit from limited resources, the dual variables are the shadow prices (imputed values) of the resources; the dual minimises the total value of the resources subject to each product’s resources being valued at least at its profit. At the optimum total profit equals the total imputed value of the resources.
Uses.
- Computation: solve whichever problem is smaller or easier (e.g. a primal with many constraints and few variables is easier through its dual, which needs no artificial variables if the primal is a minimisation with constraints).
- The dual simplex method and sensitivity analysis rest on duality.
- It gives a check of optimality (equal objective values) and economic insight into the value of resources.
- It underlies game theory (the two players’ problems are dual LPs) and many algorithms (primal–dual methods).
Example. Primal: Max s.t. , , . Dual: Min s.t. , . Both have optimal value 33, with and .
✓ Answer checked step by step Every point was checked against the standard duality theory: formation rules, symmetry, weak and strong duality, complementary slackness, shadow prices and uses.
More on Optimization Techniques
- All Statistics PYQ solutions, topic by topic
- Optimization Techniques topic-wise PYQs (questions only, for practice)
- Statistics PYQ analysis: which units carry the marks year by year
- Year-wise question papers
- Statistics booklist
Questions: UPSC Civil Services (Main) Examination, Statistics Paper II, 1995–2026. Solutions: Optional Province. Found an error? Tell us.

