Mastering ECE 580 Exam 2 Concepts (Chapters 15-17)
Linear programming (LP) is a mathematical method for determining the best outcome in a mathematical model whose requirements are represented by linear relationships.
Key components:
A food stand sells tacos ($2 profit each) and burgers ($3 profit each). They have limited ingredients:
Define decision variables: Let x = number of tacos, y = number of burgers
Objective function: Maximize profit = 2x + 3y
Constraints:
0.25x + 0.5y ≤ 20 (Meat constraint)
0.1x + 0.3y ≤ 15 (Cheese constraint)
2x + 5y ≤ 480 (Time constraint in minutes)
x ≥ 0, y ≥ 0 (Non-negativity)
A restaurant sells pizza ($8 profit) and wings ($5 profit). They have:
For problems with two variables, we can solve LP problems graphically:
All LP problems must be converted to standard form for the simplex method:
Minimize: -x₁ + 2x₂
Subject to:
x₁ + x₂ ≤ 6
x₁ - x₂ ≥ 2
x₁ + 2x₂ = 10
x₁ ≥ 0, x₂ unrestricted
Maximize: x₁ - 2x₂⁺ + 2x₂⁻
Subject to:
x₁ + x₂⁺ - x₂⁻ + s₁ = 6
x₁ - x₂⁺ + x₂⁻ - s₂ + a₁ = 2
x₁ + 2x₂⁺ - 2x₂⁻ + a₂ = 10
All variables ≥ 0
Basic | x₁ | x₂ | s₁ | s₂ | RHS |
---|---|---|---|---|---|
s₁ | |||||
s₂ | |||||
z |
Every LP problem (primal) has a corresponding dual problem:
Maximize: 3x₁ + 2x₂
Subject to:
x₁ + x₂ ≤ 4
2x₁ + x₂ ≤ 6
x₁ ≥ 0, x₂ ≥ 0
Minimize: 4y₁ + 6y₂
Subject to:
y₁ + 2y₂ ≥ 3
y₁ + y₂ ≥ 2
y₁ ≥ 0, y₂ ≥ 0