Work in short bursts (10-15 min) with breaks in between!
Turning real-world problems into mathematical equations
Make it fun: Use examples from your life (tacos, video games, etc.)
Quick sketch: Jot down variables and constraints without perfection
Taco & Burger Stand:
You have 10 buns and 5 patties. Tacos need 1 bun, burgers need 1 bun + 1 patty. Profit: $2/taco, $3/burger.
Pizza & Wings:
You have 20 slices of pizza and 30 wings. A pizza party needs 4 slices, a wing party needs 10 wings. Profit: $15/pizza party, $20/wing party.
Visualizing and solving LP problems with two variables
Use colors: Different colors for each constraint
Interactive tools: Try online graphing calculators
Rewriting LP problems for the simplex method
Add a slack variable:
x + y ≤ 10 → x + y + s = 10
s ≥ 0
Add a surplus variable:
x + y ≥ 10 → x + y - s = 10
s ≥ 0
Replace with difference:
x unrestricted → x = x⁺ - x⁻
x⁺ ≥ 0, x⁻ ≥ 0
Convert to standard form:
Maximize z = 3x₁ + 2x₂
Subject to: x₁ + x₂ ≤ 4
x₁ - x₂ ≥ 1
x₁ ≥ 0, x₂ unrestricted
Step-by-step algorithm for solving LP problems
Set up initial tableau
Include slack/surplus variables and objective function
Choose pivot column
Most negative entry in bottom row (for minimization)
Choose pivot row
Smallest non-negative ratio (RHS ÷ pivot column)
Perform row operations
Make pivot element 1, others in column 0
Repeat until optimal
No negatives in bottom row (minimization)
Basic | x₁ | x₂ | s₁ | s₂ | RHS |
---|---|---|---|---|---|
s₁ | 1 | 1 | 1 | 0 | 4 |
s₂ | 1 | -1 | 0 | -1 | 1 |
z | -3 | -2 | 0 | 0 | 0 |
Understanding the dual problem and its relationship to the primal
Maximization → Minimization
(and vice versa)
Constraints → Variables
Each primal constraint becomes a dual variable
Variables → Constraints
Each primal variable becomes a dual constraint
Coefficients transpose
Constraint matrix flips rows and columns
Primal
Max z = 3x₁ + 2x₂
x₁ + x₂ ≤ 4
x₁ - x₂ ≤ 1
x₁, x₂ ≥ 0
Dual
Min w = 4y₁ + y₂
y₁ + y₂ ≥ 3
y₁ - y₂ ≥ 2
y₁, y₂ ≥ 0
Find the dual of:
Min z = 2x₁ + 5x₂
3x₁ + x₂ ≥ 6
x₁ + 2x₂ ≥ 4
x₁, x₂ ≥ 0