Linear Programming for GATE and CSIR NET Mathematics: Simplex, Duality, Transportation and Solved Examples
Last updated: 26 November 2026 (IST). Verified against official CSIR HRDG, IIT JAM 2027 (IIT Kharagpur), and GATE 2027 (IIT Madras) Mathematics syllabi.

Linear programming in one paragraph
Linear programming is Section 11 of GATE 2027 Mathematics and part of Unit 4 in CSIR NET Mathematical Sciences; it is not on the IIT JAM 2027 MA syllabus. It is also one of the most mechanical topics in either paper: graph a two-variable problem and check the corner points; run a simplex table with the minimum-ratio test; write the dual and use complementary slackness; and solve small transportation and assignment problems with MODI and the Hungarian method. Learn to recognise the special cases (unbounded, infeasible, degenerate, alternate optima) from the table, and the topic becomes close to guaranteed marks. CSIR NET December 2026 Mathematical Sciences is on 27 December 2026, Shift 2 (3:00 PM to 6:00 PM), as per the NTA notice of 20 November 2026. Use the CSIR NET December 2026 timeline tracker for later notices.
What each exam’s syllabus says
| Exam | Linear programming in the official syllabus |
|---|---|
| GATE 2027 Mathematics (Section 11) | Linear programming models, convex sets, extreme points; basic feasible solution, graphical method, simplex method, two phase methods, revised simplex method; infeasible and unbounded linear programming models, alternate optima; duality theory, weak duality and strong duality; balanced and unbalanced transportation problems, initial basic feasible solution of balanced transportation problems (least cost method, north-west corner rule, Vogel’s approximation method); optimal solution, modified distribution method; solving assignment problems, Hungarian method. |
| CSIR NET Mathematical Sciences (Unit 4) | Linear programming problem, simplex methods, duality. Elementary queuing and inventory models. |
| IIT JAM 2027 Mathematics | Not listed in the official MA syllabus. |
Simplex is Gaussian elimination with a rule for choosing pivots, so revise row reduction and rank in the linear algebra guide first.
The theory behind the method
- Standard form. Maximise \(c^Tx\) subject to \(Ax=b\), \(x\ge 0\), where \(A\) is \(m\times n\) of rank \(m\). Inequalities become equations with slack (for \(\le\)) or surplus (for \(\ge\)) variables.
- Convexity. The feasible region is a convex polyhedral set. Its extreme points are exactly the basic feasible solutions. If an optimal solution exists, one is attained at an extreme point.
- Counting. A system with \(m\) equations and \(n\) variables has at most \(\frac{n!}{m!(n-m)!}\) basic solutions.
- Simplex. The entering variable is one whose reduced cost improves the objective; the leaving variable is chosen by the minimum ratio of the right-hand side to the positive entries of the pivot column. Two-phase (or big-M) handles \(\ge\) and \(=\) constraints with artificial variables.
- Special cases. Unbounded: an entering column with no positive entry. Infeasible: an artificial variable still positive at the end of Phase I. Alternate optima: a non-basic variable with zero reduced cost at optimality. Degenerate: a basic variable equal to 0.
- Duality. The dual of \(\max\ c^Tx\), \(Ax\le b\), \(x\ge 0\) is \(\min\ b^Ty\), \(A^Ty\ge c\), \(y\ge 0\). Weak duality: \(c^Tx\le b^Ty\) for all feasible pairs. Strong duality: if either has an optimum, both do and the values are equal. If the primal is unbounded, the dual is infeasible. Complementary slackness: \(y_i\) times the slack in primal constraint \(i\) is 0, and \(x_j\) times the surplus in dual constraint \(j\) is 0.
- Transportation and assignment. A balanced \(m\times n\) transportation problem has \(m+n-1\) basic variables. MODI: solve \(u_i+v_j=c_{ij}\) on basic cells and compute \(\Delta_{ij}=c_{ij}-u_i-v_j\) on the others; for minimisation the solution is optimal when all \(\Delta_{ij}\ge 0\). Assignment is a transportation problem with all supplies and demands 1; the Hungarian method reduces rows and columns until \(n\) independent zeros exist. Unbalanced problems get a dummy row or column with zero cost.
Solved examples in exam style
Example 1: the graphical method
Maximise \(z=3x+5y\) subject to \(x\le 4\), \(2y\le 12\), \(3x+2y\le 18\), \(x,y\ge 0\).
Solution. The corner points of the feasible region are \((0,0)\), \((4,0)\), \((4,3)\), \((2,6)\) and \((0,6)\), with \(z=0,12,27,36,30\). The maximum is \(z=36\) at \((2,6)\).
Example 2: the dual and complementary slackness
Write the dual of Example 1 and find its optimal solution.
Solution. The dual is: minimise \(w=4y_1+12y_2+18y_3\) subject to \(y_1+3y_3\ge 3\), \(2y_2+2y_3\ge 5\), \(y\ge 0\). At the primal optimum \((2,6)\), the first constraint has slack \(4-2=2>0\), so \(y_1=0\). Both \(x\) and \(y\) are positive, so both dual constraints are tight: \(3y_3=3\) and \(2y_2+2y_3=5\), giving \(y_3=1\) and \(y_2=\frac{3}{2}\). Then \(w=12\cdot\frac{3}{2}+18\cdot 1=36\), equal to the primal optimum, as strong duality requires.
Example 3: reading unboundedness from the table
Maximise \(z=x_1+x_2\) subject to \(-x_1+x_2\le 1\), \(x_1,x_2\ge 0\).
Solution. Add a slack \(s\): \(-x_1+x_2+s=1\). Let \(x_2\) enter (ratio \(1/1\)); then \(x_2=1+x_1-s\) and \(z=1+2x_1-s\). Now \(x_1\) should enter, but its coefficient in the only constraint row is \(-1\): no positive entry, so no leaving variable, and \(z\) can grow without bound along \(x_2=1+x_1\). Consistently, the dual (minimise \(y\) subject to \(-y\ge 1\), \(y\ge 1\), \(y\ge 0\)) is infeasible.
Example 4: counting basic solutions
At most how many basic solutions does a system of 2 equations in 4 variables have?
Solution. Choose which 2 of the 4 variables are basic: \(\frac{4!}{2!\,2!}=6\). Some choices may give a singular basis or a negative variable, so the number of basic feasible solutions can be smaller.
Example 5: transportation, from north-west corner to optimal by MODI
Two sources have supplies 20 and 30; three destinations have demands 10, 25 and 15. The unit costs are \(\begin{pmatrix}2&3&1\\5&4&8\end{pmatrix}\). Find the minimum cost.
Solution. The problem is balanced (50 = 50) and needs \(2+3-1=4\) basic cells. North-west corner: \(x_{11}=10\), \(x_{12}=10\), \(x_{22}=15\), \(x_{23}=15\), cost \(20+30+60+120=230\). MODI with \(u_1=0\) gives \(v_1=2\), \(v_2=3\), \(u_2=1\), \(v_3=7\); then \(\Delta_{13}=1-0-7=-6\lt 0\), so bring in cell (1,3). The loop (1,3), (2,3), (2,2), (1,2) allows \(\theta=10\), giving cost 170. Repeating MODI gives \(\Delta_{21}=-4\), and the loop (2,1), (1,1), (1,3), (2,3) allows \(\theta=5\). The new solution is \(x_{11}=5\), \(x_{13}=15\), \(x_{21}=5\), \(x_{22}=25\), with cost \(10+15+25+100=150\). Now \(u=(0,3)\), \(v=(2,1,1)\), \(\Delta_{12}=2\) and \(\Delta_{23}=4\), both non-negative: the minimum cost is 150.
Example 6: the Hungarian method
Assign three jobs to three workers to minimise total cost, with cost matrix \(\begin{pmatrix}9&2&7\\6&4&3\\5&8&1\end{pmatrix}\) (rows are workers, columns jobs).
Solution. Subtract row minima (2, 3, 1): \(\begin{pmatrix}7&0&5\\3&1&0\\4&7&0\end{pmatrix}\). Subtract column minima (3, 0, 0): \(\begin{pmatrix}4&0&5\\0&1&0\\1&7&0\end{pmatrix}\). Three independent zeros exist: worker 1 to job 2, worker 2 to job 1, worker 3 to job 3. The minimum cost is \(2+6+1=9\). A quick check of all \(3!=6\) assignments confirms that 9 is the minimum.
Common mistakes
- Using the most negative ratio, or a negative pivot entry, in the minimum-ratio test.
- Writing the dual without matching constraint types to variable signs (a \(\ge\) constraint in a maximisation problem gives a non-positive dual variable).
- Stopping a transportation problem with fewer than \(m+n-1\) basic cells; add a zero allocation to fix degeneracy.
- Forgetting to balance an unbalanced transportation or assignment problem with a dummy row or column.
- Confusing infeasible (no feasible point) with unbounded (feasible points, no finite optimum).
A two-week plan for linear programming
| Days | What to do |
|---|---|
| 1–3 | Formulation, convex sets, extreme points and the graphical method; basic and basic feasible solutions. |
| 4–7 | Simplex, two-phase and big-M methods; special cases read from the table; revised simplex (GATE). |
| 8–10 | Duality: writing duals, weak and strong duality, complementary slackness. |
| 11–14 | Transportation (NWC, least cost, VAM, MODI) and assignment (Hungarian). For CSIR Unit 4, add elementary queuing and inventory models. Finish with previous year questions under time. |
Learn with GP Sir’s videos
Learn linear programming with MathsCare
Want live classes and exam-style practice with GP Sir? Message or call the MathsCare team, or see the GATE Maths course. CSIR NET aspirants can use the CSIR NET Maths course. For the rest of GATE, see the numerical analysis guide and the functional analysis guide.
GP Sir’s Combat Test Series for CSIR NET/JRF Mathematics and the Short Notes Booklet are the practice and revision books we point students to. Check the book pages for the current edition before you buy.
Frequently asked questions
Is linear programming in the IIT JAM 2027 Mathematics syllabus?
No. The official JAM 2027 MA syllabus (IIT Kharagpur) does not list linear programming.
Where is linear programming in CSIR NET Mathematical Sciences?
In Unit 4 of the official CSIR HRDG syllabus: linear programming problem, simplex methods, duality, and elementary queuing and inventory models. The syllabus note says mathematics students answer additional questions from Units 2 and 3, and statistics students from Unit 4, so linear programming matters most to CSIR candidates who attempt Unit 4 questions.
What is in the GATE 2027 linear programming syllabus?
GATE 2027 MA Section 11 (IIT Madras) lists linear programming models, convex sets, extreme points; basic feasible solution, graphical method, simplex method, two phase methods, revised simplex method; infeasible and unbounded models, alternate optima; duality theory, weak and strong duality; balanced and unbalanced transportation problems, initial basic feasible solutions (least cost method, north-west corner rule, Vogel’s approximation method), optimal solution by the modified distribution method; and assignment problems by the Hungarian method.
How do I recognise an unbounded LPP in the simplex table?
If a variable can enter the basis (its reduced cost would improve the objective) but every entry in its column is zero or negative, there is no leaving variable and the problem is unbounded. A non-basic variable with zero reduced cost at an optimal table signals alternate optima.
How many basic variables does a transportation problem have?
A balanced transportation problem with m sources and n destinations has m + n − 1 basic variables in any basic feasible solution, because one of the m + n supply and demand equations is redundant.
Can I contact MathsCare about GATE or CSIR NET classes?
Yes. Message or call the MathsCare team on WhatsApp at 95710 85397 for details of the GATE and CSIR NET Mathematics courses.
Official sources
- CSIR HRDG Mathematical Sciences syllabus (Units 1–3): official syllabus PDF; notices: csirnet.nta.nic.in
- NTA public notice dated 20 November 2026, subject-wise schedule of Joint CSIR-UGC NET December 2026: Mathematical Sciences (code 704) on 27 December 2026, Shift 2, 3:00 PM to 6:00 PM. Download the notice.
- IIT JAM 2027 Mathematics (MA) syllabus, Organising Institute IIT Kharagpur: MA syllabus PDF; website: jam.iitkgp.ac.in. The examination is on 14 February 2027.
- GATE 2027 Mathematics (MA) syllabus, Organising Institute IIT Madras: official MA syllabus PDF; website: gate2027.iitm.ac.in. The GATE 2027 syllabi have been revised; always check this PDF.