Setting Up
Linear Programming Problems
Learn to translate word problems into objective functions and constraints: the essential first step in optimization.
What is Linear Programming?
Linear programming (LP) is a method for finding the best outcome (maximum profit, minimum cost) in a mathematical model whose requirements are expressed as linear relationships.
Key Vocabulary
Why Setting Up Matters Most
Solving an LP problem is mechanical once the setup is correct. The hard part is translating English sentences into math. A wrong inequality or a missing constraint leads to a meaningless answer, no matter how perfectly you solve it.
The Standard Form of an LP
Every LP problem has three pieces: decision variables, one objective function, and a system of inequality constraints (including non-negativity).
Visualizing the Feasible Region
Maximize vs Minimize
| Maximize | Minimize | |
|---|---|---|
| Goal | Largest possible value of \( Z \) | Smallest possible value of \( Z \) |
| Typical uses | Profit, revenue, output | Cost, waste, time |
| Signal words | "greatest," "most," "highest" | "least," "cheapest," "fewest" |
| Constraint direction | Resources \( \leq \) limits | Requirements \( \geq \) minimums |
The 5-Step Setup Method
Example 1: Furniture Factory
Step 1: Goal is to maximize profit.
Step 2: Let \( x = \) number of tables, \( y = \) number of chairs.
Example 1: Complete Formulation
Example 2: Nutrition Problem
Minimize: \( \geq \) vs \( \leq \)
Example 3: Investment Portfolio
Translating English to Math
| English Phrase | Math Symbol |
|---|---|
| "at most 200" | \( \leq 200 \) |
| "at least 50" | \( \geq 50 \) |
| "no more than 100" | \( \leq 100 \) |
| "A is at least 10 more than B" | \( x \geq y + 10 \) |
| "total cannot exceed 500" | \( x + y \leq 500 \) |
| "A is exactly twice B" | \( x = 2y \) |
| "A is at least twice B" | \( x \geq 2y \) |
Common Mistakes to Avoid
Question 1 of 5
A bakery makes cakes (\( x \)) and pies (\( y \)). Profit is $12 per cake and $8 per pie. Which is the correct objective function to maximize profit?
Question 2 of 5
"The factory can produce at most 150 units per day." If \( x \) and \( y \) are the two products, which constraint represents this?
Question 3 of 5
A diet requires at least 40 g of protein. Food X provides 5 g per serving, Food Y provides 8 g per serving. Which constraint is correct?
Question 4 of 5
"The number of desks produced must be at least twice the number of bookcases." Let \( x = \) desks, \( y = \) bookcases. Which inequality is correct?
Question 5 of 5
Which of the following is always included when setting up a linear programming problem?