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 (xj≥0).\text{(}x_j \geq 0\text{).}
max⁡cTxsubject toAx≤b, x≥0\max \mathbf{c}^T \mathbf{x} \quad \text{subject to} \quad \mathbf{A}\mathbf{x} \le \mathbf{b}, \, \mathbf{x} \ge \mathbf{0}

By the Strong Duality Theorem, max⁡c⊤x=min⁡b⊤y\max c^\top x = \min b^\top y at optimality. Dual variables yiy_i 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).

Data dictionary
VariableTypeDescription
productFactorCompound type
profit_per_unitNumericNet profit (INR thousands)
labor_hrsNumericReactor hours required
reagent_kgNumericRaw reagent consumption
Sample observations
productprofit_per_unitlabor_hrsreagent_kg
Compound Alpha4024
Compound Beta5015

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 x1=13.33x_1 = 13.33 units of Alpha and x2=13.33x_2 = 13.33 units of Beta, achieving maximum profit of INR 1,200.00 thousand.

Key results
StatisticValueNote
Optimal Objective ValueINR 1,200.00 k
Compound Alpha (x₁)13.33 units
Compound Beta (x₂)13.33 units
Labor Shadow Price (y₁)INR 0.00 / hrSurplus capacity exists

Interpretation & Decision Rule

Formal conclusion: The binding bottleneck constraint is raw reagent material (shadow price y2y_2 = 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)

You might also like

← 6.2 Linear Programming