Formulation se solution tak — step-by-step samjho
LP ek mathematical technique hai resources ko optimally allocate karne ke liye — maximize profit ya minimize cost, subject to constraints.
Ek factory do products A aur B banati hai.
Product A: Profit ₹5/unit, Machine time 2 hrs, Labour 4 hrs
Product B: Profit ₹4/unit, Machine time 5 hrs, Labour 2 hrs
Available: Machine 180 hrs, Labour 160 hrs
Formulate LP to maximize profit.
Let x = units of A, y = units of B
Maximize: Z = 5x + 4y
Subject to:
2x + 5y ≤ 180 (Machine hours)
4x + 2y ≤ 160 (Labour hours)
x, y ≥ 0
| Corner Point (x,y) | Z = 5x + 4y |
|---|---|
| O (0, 0) | 0 |
| A (40, 0) | 200 |
| B (25, 26) | 229 ← Maximum! |
| C (0, 36) | 144 |
B(25, 26) par Z = 5(25) + 4(26) = 125 + 104 = 229 → Maximum Profit
| Case | Description |
|---|---|
| Unbounded Solution | Maximization mein feasible region bounded nahi — Z can go to ∞ |
| Infeasible | Constraints contradict each other → no feasible region |
| Multiple Optimal | 2 corner points dono optimal → infinite solutions on that edge |
| Degenerate | Corner point mein ek constraint active nahi (slack=0 for more constraints than variables) |
Kisi commodity ko multiple sources se multiple destinations tak minimum cost mein transport karna.
| D1 | D2 | D3 | Supply | |
|---|---|---|---|---|
| S1 | 2 | 3 | 5 | 20 |
| S2 | 4 | 1 | 6 | 30 |
| S3 | 3 | 5 | 2 | 10 |
| Demand | 15 | 25 | 20 | 60 |
NW Corner: x₁₁=15 (min(20,15)), x₁₂=5, x₂₂=20, x₂₃=10, x₃₃=10
Total cost = 15×2 + 5×3 + 20×1 + 10×6 + 10×2 = 30+15+20+60+20 = ₹145