Modeling with
Constraints
Learn to represent real-world limits using equations and inequalities, build systems, and interpret which solutions are actually viable.
What is a Constraint?
A constraint is any condition that limits the possible values of your variables. In the real world, constraints come from budgets, time limits, physical capacity, and rules. In algebra, we express these limits as equations or inequalities.
Why Constraints Matter
Every real decision involves trade-offs. You can't spend more money than you have, you can't work more hours than exist in a day, and a factory can't produce negative items. Constraints capture these truths mathematically so we can find the best possible solution within realistic limits.
The Feasible Region
Translating Words into Math
The key skill is converting verbal descriptions into algebraic expressions. Each resource limit becomes an inequality, and each exact requirement becomes an equation.
Structure of a Constraint System
Equations vs Inequalities
| Equation | Inequality | |
|---|---|---|
| Symbol | \( = \) | \( \leq,\; \geq,\; <,\; > \) |
| Graph | A line (or curve) | A shaded region |
| Solutions | Points on the line | Points in the region |
| Use Case | Exact requirement | Upper/lower bound |
| Example | \( x + y = 100 \) | \( x + y \leq 100 \) |
How to Build a Constraint Model
Example 1: Nutrition Problem
A meal planner combines Food A and Food B. Each unit of Food A provides 3 g protein and costs $2. Each unit of Food B provides 5 g protein and costs $4. The planner needs at least 30 g of protein and can spend at most $40.
Example 1: Feasible Region
Example 2: Factory Production
A factory makes tables and chairs. Each table requires 4 hours of labor and 3 units of wood. Each chair requires 2 hours and 1 unit of wood. Available: 80 labor hours and 50 units of wood.
Example 3: Concert Tickets
A venue sells VIP tickets (\(x\)) at $50 and general tickets (\(y\)) at $20. The venue holds at most 200 people, must earn at least $5000, and policy requires at least 50 general tickets.
Interpreting Viable vs Non-viable
A mathematical solution might satisfy all algebraic constraints but still be non-viable in context. Always check whether the answer makes real-world sense.
Common Mistakes
Constraint Modeling Summary
| Step | Action | Key Question |
|---|---|---|
| 1 | Define variables | What am I choosing? |
| 2 | Write constraints | What limits exist? |
| 3 | Graph the system | Where do all constraints overlap? |
| 4 | Find feasible region | What is the solution set? |
| 5 | Interpret solutions | Does this make real-world sense? |
Question 1 of 5
A student has at most 10 hours per week for two part-time jobs. Job A pays $12/hr and Job B pays $15/hr. The student wants to earn at least $120. Which system models these constraints if \( x \) = hours at Job A and \( y \) = hours at Job B?
Question 2 of 5
Given the system \( \begin{cases} 2x + y \leq 20 \\ x + 3y \leq 24 \\ x \geq 0,\; y \geq 0 \end{cases} \), is the point \( (6, 7) \) a viable solution?
Question 3 of 5
A farmer plants corn (\( x \) acres) and wheat (\( y \) acres) on 60 acres. Corn needs 2 workers per acre and wheat needs 3 workers per acre. The farmer has 150 workers. Which pair of constraints represents these limits?
Question 4 of 5
The feasible region of a system of constraints is the set of points that:
Question 5 of 5
A store sells gift baskets with chocolates (\( x \)) and candles (\( y \)). Each basket must contain at least 5 items and no more than 8 items, with at least 2 chocolates. Which point is a non-viable solution?