Linear Programming
Constraints mark what is possible. An objective measures what matters. The best allowed choice waits at a corner of the feasible region.
Three pieces make one decision
Names, limits, and a score—keep their jobs separate.
Linear programming is a system of inequalities with a goal
Decision variables
State both meaning and units: “Let \(x\) be shirts and \(y\) be hats.”
Objective function
A linear expression such as \(P=8x+5y\) measures profit, cost, time, or another quantity to maximize or minimize.
Constraints carve out the feasible region
Every inequality removes choices. The overlap keeps only points satisfying all limits.
Graph each boundary, choose the correct half-plane, and keep the common overlap. Include nonnegative constraints when the variables count objects:
The full route
Build the region before searching for the best point.
Translate the situation
- Define \(x\) and \(y\) with units.
- Write every constraint, including nonnegativity.
- Name the objective and whether to maximize or minimize it.
Inspect the corners
- Graph all constraints and identify the overlap.
- Find every vertex exactly.
- Evaluate the objective at every vertex.
- Interpret the winning point in context.
Why corners matter
A linear objective has parallel level lines. Slide one toward better values.
For a bounded polygonal feasible region, a maximum or minimum linear objective occurs at a vertex. If an entire edge ties, both endpoints of that edge are also optimal.
Worked market: shirts and hats
Move from a story to constraints, corners, and a decision.
A club earns \$8 per shirt and \$5 per hat. It can make at most 40 items and must make at least 10 shirts.
Variables + constraints
Objective
The task is to maximize \(P\) over the feasible region—not over every point in the plane.
Evaluate every vertex
The graph supplies candidates. The objective chooses among them.
| Vertex | Profit calculation | Profit |
|---|---|---|
| \((10,0)\) | \(8(10)+5(0)\) | \$80 |
| \((10,30)\) | \(8(10)+5(30)\) | \$230 |
| \((40,0)\) | \(8(40)+5(0)\) | \$320 |
Context can restrict the grid
A mathematical region may contain decimals even when the story requires whole objects.
If \(x\) and \(y\) count shirts, buses, or people, feasible solutions usually need whole-number coordinates. A fractional vertex may require comparing nearby feasible lattice points.
Bounded or unbounded?
A region that continues forever may still have one optimum, both, or neither.
Bounded region
There are finitely many vertices and both a maximum and minimum exist for a linear objective.
Unbounded region
Check the objective's improving direction. If values can keep improving forever, that optimum does not exist.
Market inspection
Four mistakes can invalidate an otherwise tidy calculation.
Outside point
Never evaluate a tempting point until it passes every constraint.
Missing vertex
List all corners, including intersections between two non-axis boundaries.
Wrong objective
Profit, cost, and constraints are separate equations with separate meanings.
Uninterpreted coordinate
State the quantities, units, best value, and whether the choice makes sense.
Final permit: school-store launch
Build the plan, compare the corners, and issue the decision.
The school store sells sticker packs for a \$3 profit and enamel pins for a \$5 profit. It can prepare at most 60 items. Sticker packs take 2 minutes each, pins take 4 minutes each, and 180 minutes are available.
Open the vertex ledger
The vertices are \((0,0)\), \((60,0)\), \((30,30)\), and \((0,45)\). Their objective values are \$0, \$180, \$240, and \$225.
Issue the final decision
The store should make \(\boxed{30}\) sticker packs and \(\boxed{30}\) pins. This uses all 60 item slots and all 180 minutes, producing the maximum profit \(\boxed{\$240}\).