Operations Research — formula sheet
Production & Industrial Engineering · GATE PI · SI units. Drafted with Aria, checked by the AiCanCode.org team.
Linear Programming Formulation and Graphical Method
- Objective:
Max (or Min) Z = c₁x₁ + c₂x₂ + … + cₙxₙ— cⱼ = profit or cost per unit of activity xⱼ (₹/unit). - Constraint:
aᵢ₁x₁ + … + aᵢₙxₙ (≤, =, ≥) bᵢ,xⱼ ≥ 0— aᵢⱼ = resource i used per unit of xⱼ; bᵢ = resource available or required. - Intercepts of a constraint line:
x₁ = bᵢ / aᵢ₁,x₂ = bᵢ / aᵢ₂— for plotting. - Iso-profit slope:
dx₂/dx₁ = −c₁ / c₂— the optimum is at a corner point if a finite optimum exists.
Simplex Method: Big-M and Two-Phase
- Net evaluation:
Cj − Zj, withZj = Σ C_B,i · aᵢⱼ— Max problem is optimal when all Cj − Zj ≤ 0; most positive enters. - Objective of a tableau:
Z = Σ C_B,i · bᵢ. - Minimum ratio test:
θ = min { bᵢ / aᵢₖ : aᵢₖ > 0 }— decides the leaving variable; no positive aᵢₖ means unbounded. - Big-M objective:
Max Z = Σ cⱼxⱼ − M·ΣRᵢorMin Z = Σ cⱼxⱼ + M·ΣRᵢ— Rᵢ = artificial variables, M very large. - Phase 1 objective:
Min r = ΣRᵢ— r > 0 at the optimum means the LP is infeasible.
Duality and Sensitivity Analysis
- Primal–dual pair:
Max Z = cᵀx, Ax ≤ b, x ≥ 0⇔Min W = bᵀy, Aᵀy ≥ c, y ≥ 0. - Weak duality:
cᵀx ≤ bᵀyfor any feasible x, y; strong duality:Z* = W*. - Complementary slackness:
yᵢ · sᵢ = 0,xⱼ · tⱼ = 0— sᵢ = primal slack, tⱼ = dual surplus. - Shadow price use:
ΔZ = yᵢ · Δbᵢ— valid only inside the RHS feasibility range of bᵢ. - Reduced cost:
c̄ⱼ = cⱼ − Σ aᵢⱼ yᵢ— a new activity is worth adding (Max) if c̄ⱼ > 0.
Transportation Problem
- Model:
Min Z = Σᵢ Σⱼ cᵢⱼ xᵢⱼ,Σⱼ xᵢⱼ = sᵢ,Σᵢ xᵢⱼ = dⱼ— balanced whenΣ sᵢ = Σ dⱼ(else add a dummy row or column). - Basic cells:
m + n − 1— fewer occupied cells means degeneracy (add ε). - MODI:
uᵢ + vⱼ = cᵢⱼ(occupied),dᵢⱼ = cᵢⱼ − (uᵢ + vⱼ)(empty) — optimal when all dᵢⱼ ≥ 0. - Cost change per loop:
ΔZ = θ · dᵢⱼ— θ = smallest allocation on a minus corner.
Assignment Problem
- Model:
Min Z = Σᵢ Σⱼ cᵢⱼ xᵢⱼ,Σⱼ xᵢⱼ = 1,Σᵢ xᵢⱼ = 1,xᵢⱼ ∈ {0, 1}— n! possible assignments. - Hungarian test: minimum covering lines
= n⇒ optimal assignment exists on zeros; else subtract the smallest uncovered element k from uncovered cells and add k at line intersections. - Maximisation:
lᵢⱼ = c_max − cᵢⱼ— convert profit to loss, then minimise.
Integer Programming: Branch and Bound
- Relaxation bound:
Z_IP ≤ Z_LP(Max),Z_IP ≥ Z_LP(Min). - Branching on fractional xⱼ = v:
xⱼ ≤ ⌊v⌋orxⱼ ≥ ⌊v⌋ + 1. - Fathom (Max): node infeasible, integer, or
Z_node ≤ Z_incumbent. - Fixed-charge link:
x ≤ U · y,y ∈ {0, 1}— U = upper limit on x.
Network Flow
- Shortest Path (Dijkstra):
d(v) = min{ d(v), d(u) + l(u, v) }— d = distance label, l = arc length (≥ 0); the smallest temporary label becomes permanent. - Minimal Spanning Tree:
edges in a spanning tree = n − 1— Kruskal or Prim; n = number of nodes. - Flow conservation:
Σ f(i, k) = Σ f(k, j)at intermediate nodes,0 ≤ f(i, j) ≤ c(i, j). - Maximal Flow:
max flow = min cut capacity = min Σ c(i, j)over arcs from the source side to the sink side.
Project Networks: CPM and Floats
- Forward pass:
EF = ES + t,ES = max EF(predecessors); backward pass:LS = LF − t,LF = min LS(successors). - Total Float:
TF = LS − ES = LF − EF(AOA:Lⱼ − Eᵢ − t) — critical activities have TF = 0. - Free Float:
FF = min ES(successors) − EF(AOA:Eⱼ − Eᵢ − t). - Independent Float:
IF = Eⱼ − Lᵢ − t(taken as 0 if negative);0 ≤ IF ≤ FF ≤ TF.
PERT and Probability of Completion
- Expected Time (TE):
te = (a + 4m + b) / 6— a = optimistic, m = most likely, b = pessimistic time. - Variance (σ²):
σ² = ((b − a) / 6)². - Project mean and variance:
Tₑ = Σ te,σ_T² = Σ σ²— critical-path activities only. - Probability:
Z = (T_s − Tₑ) / σ_T,P(T ≤ T_s) = Φ(Z); due date for probability p:T_s = Tₑ + Z_p · σ_T.
Project Crashing and Time-Cost Trade-Off
- Cost slope:
S = (C_c − Cₙ) / (tₙ − t_c)— ₹/day; crash the cheapest critical activity first. - Total cost:
C_T = Σ Cₙ + Σ S·Δt + c_i · T— c_i = indirect cost per day, T = duration. - Optimum duration: stop crashing when the cheapest daily crashing cost exceeds c_i.
Queuing Models: M/M/1 and M/M/c
- M/M/1 Model:
ρ = λ/μ,P₀ = 1 − ρ,Pₙ = (1 − ρ)ρⁿ,L = λ / (μ − λ),Lq = λ² / [μ(μ − λ)],W = 1 / (μ − λ),Wq = λ / [μ(μ − λ)]— λ = arrival rate, μ = service rate; needs ρ < 1. - M/M/c Model:
r = λ/μ,ρ = λ/(cμ),P₀ = [Σ (n = 0 to c − 1) rⁿ/n! + r^c / (c!(1 − ρ))]⁻¹,Lq = P₀ r^c ρ / [c!(1 − ρ)²]— c = number of servers. - Little's law:
L = λW,Lq = λWq,W = Wq + 1/μ.
Game Theory
- Saddle point:
max over i (min over j aᵢⱼ) = min over j (max over i aᵢⱼ) = V— pure strategies. - 2 × 2 mixed strategy:
D = (a₁₁ + a₂₂) − (a₁₂ + a₂₁),p₁ = (a₂₂ − a₂₁)/D,q₁ = (a₂₂ − a₁₂)/D,V = (a₁₁a₂₂ − a₁₂a₂₁)/D— no saddle point. - Dominance: delete a row ≤ another row (player A); delete a column ≥ another column (player B).
Decision Theory Under Risk and Uncertainty
- Hurwicz:
H = α·(max payoff) + (1 − α)·(min payoff)— α = coefficient of optimism. - Regret:
Rᵢⱼ = max over i (aᵢⱼ) − aᵢⱼ— minimax regret chooses the smallest maximum regret. - Expected monetary value:
EMVᵢ = Σⱼ pⱼ aᵢⱼ; EOL:EOLᵢ = Σⱼ pⱼ Rᵢⱼ. - EVPI:
EVPI = Σⱼ pⱼ · max over i (aᵢⱼ) − max EMV = min EOL.
Replacement Models
- Average annual cost:
A(n) = [C − S(n) + Σ R(t)] / n— C = price, S(n) = resale value, R(t) = running cost in year t; replace at the n giving minimum A(n). - Replacement rule: with constant or negligible resale value, replace at end of year n when
R(n + 1) > A(n). - Group replacement:
Nₖ = Σ (j = 0 to k − 1) Nⱼ p₍ₖ₋ⱼ₎, mean lifet̄ = Σ k pₖ; individual cost per period(N₀/t̄)·c_i; group cost per period[N₀ c_g + c_i Σ (j = 1 to k) Nⱼ] / k.
Monte Carlo Simulation
- Random-number ranges: value xₖ gets two-digit numbers from
100·F(xₖ₋₁)to100·F(xₖ) − 1— F = cumulative probability. - Estimate:
x̄ = (1/n) Σ xᵢ, standard errors / √n— n = number of trials. - Exponential variate:
x = −(1/λ) · ln(1 − r)— r = uniform random number in (0, 1).