Linear Programming Optimization: Tabular Simplex Algorithm, Duality, and Shadow Price Sensitivity
by Rao Statistics · Last updated on 2 Nov 2026 · 6.2 Linear Programming
Formulation of constrained optimization, basic feasible solution pivoting, complementary slackness, and economic duality
Learning Objective
By the end of this lesson: Formulate an industrial product-mix problem, execute tabular Simplex iterations to optimality, derive the dual program, and interpret marginal shadow prices on constrained raw materials.
Statistical Theory & Assumptions
Linear Programming maximizes or minimizes a linear objective function subject to linear equality and inequality constraints. The Fundamental Theorem of Linear Programming guarantees that an optimal solution, if it exists, occurs at an extreme vertex of the feasible polyhedron. The Simplex method traverses adjacent vertices along edges of steepest objective gradient.
Assumptions
- Proportionality: The contribution of each decision variable is strictly proportional to its value.
- Additivity: Total resource consumption equals the sum of individual activity consumptions.
- Divisibility & Non-Negativity: Variables can take any fractional non-negative value
By the Strong Duality Theorem, at optimality. Dual variables represent marginal resource valuations (shadow prices).
Worked Dataset & Variables
Chemical Manufacturing Blend Optimization: Two industrial compounds (Alpha, Beta) constrained by reactor hours (40 hrs) and raw material reagent (120 kg). (sample size n = 2).
| Variable | Type | Description |
|---|---|---|
| product | Factor | Compound type |
| profit_per_unit | Numeric | Net profit (INR thousands) |
| labor_hrs | Numeric | Reactor hours required |
| reagent_kg | Numeric | Raw reagent consumption |
| product | profit_per_unit | labor_hrs | reagent_kg |
|---|---|---|---|
| Compound Alpha | 40 | 2 | 4 |
| Compound Beta | 50 | 1 | 5 |
Software Procedure (R, Python & Excel)
# Linear Programming in R (lpSolve)
# library(lpSolve)
f.obj <- c(40, 50)
f.con <- matrix(c(2, 1, 4, 5), nrow = 2, byrow = TRUE)
f.dir <- c("<=", "<=")
f.rhs <- c(40, 120)
res <- lpSolve::lp("max", f.obj, f.con, f.dir, f.rhs)
cat("Optimal Profit:", res$objval, "Solution x:", res$solution)Numerical Results
Optimal solution allocates units of Alpha and units of Beta, achieving maximum profit of INR 1,200.00 thousand.
| Statistic | Value | Note |
|---|---|---|
| Optimal Objective Value | INR 1,200.00 k | |
| Compound Alpha (x₁) | 13.33 units | |
| Compound Beta (x₂) | 13.33 units | |
| Labor Shadow Price (y₁) | INR 0.00 / hr | Surplus capacity exists |
Interpretation & Decision Rule
Formal conclusion: The binding bottleneck constraint is raw reagent material (shadow price = INR 10.00/kg), indicating that procurement of additional reagent directly increases gross profit by INR 10,000 per 100 kg.
Decision rule: Resources with non-zero dual shadow prices must receive priority operational capital allocation.
Practical significance: The plant operates at peak mathematical efficiency with zero slack on high-cost raw chemical inputs.
Practice Files
Download: stratified_survey_allocation_template.xlsx (Excel Workbook, 18 KB)