Algebra 2 · Grades 10, 11
Linear Programming: Optimizing with Constraints
Quick answer
Linear programming finds the largest or smallest value of a linear expression, such as the profit 50x + 30y, when x and y must satisfy a system of linear inequalities. The inequalities cut out a feasible region of allowed choices. The best value always occurs at a vertex of that region, so the method is to graph the constraints, find the corners by solving pairs of boundary equations, evaluate the objective at each corner, and pick the best.
What you'll learn
- Write constraints and an objective function from a word problem
- Graph a feasible region and find its vertices
- Explain why an optimum occurs at a vertex
- Find a maximum or minimum, or recognize that none exists
Choosing the best mix
A workshop builds bookshelves and tables. A bookshelf takes hours of cutting and hour of finishing; a table takes hour of each. Each week the workshop has hours of cutting time and hours of finishing time. A bookshelf earns dollars of profit and a table dollars. How many of each should it build?
Let be the number of bookshelves and the number of tables. The time limits and the fact that counts cannot be negative give the constraints:
The profit is the objective function, . Maximizing or minimizing a linear objective under linear constraints is called linear programming. The points that satisfy every constraint form the feasible region: every allowed week of work.
- 2x + y = 16
- x + y = 10
- 50x + 30y = 420
Why the best point is a corner
Pick any profit, say dollars. The weeks that earn exactly lie on the line . Another profit gives a parallel line, and bigger profits sit farther up and to the right. To find the maximum, slide the line in that direction for as long as it still touches the feasible region. At the last moment of contact it meets the region at a corner, or along a whole edge when the line runs parallel to that edge. The lines of equal profit are parallel, so as they sweep across a polygon the last point they touch is a corner, and checking the corners is enough.
Corner point principle. If a linear objective has a maximum or a minimum on a feasible region, it occurs at a vertex of the region.
The method
- Name the variables and write the constraints and the objective.
- Graph the feasible region.
- Find each vertex by solving the two boundary equations that meet there.
- Evaluate the objective at every vertex and choose the best.
Worked examples
Common mistakes
Practice problems
-
A feasible region has vertices , , and . Find the maximum and minimum of .
Answer
Maximum at ; minimum at
Full solution
At the vertices is , , and .
-
Find the vertices of the region , , , .
Answer
, , and
Full solution
On the axes: stops the -axis at , and stops the -axis at . The slanted lines cross where and , so and .
-
Maximize over the region in exercise 2.
Answer
at
Full solution
At the vertices is , , and .
-
Maximize over the region in exercise 2.
Answer
at
Full solution
At the vertices is , , and .
-
Minimize subject to , , and .
Answer
at
Full solution
The corners are , , and , where meets . The costs are , and .
-
A student can work at most hours a week: tutoring at dollars an hour and at a store at dollars an hour. The store needs at least hours, and tutoring is limited to hours. How should the student split the week to earn the most?
Answer
hours of tutoring and at the store, for dollars
Full solution
With hours tutoring and at the store: , and . The corners are , , and , and gives , , and .
-
Explain why has no maximum on the region , , . What is its minimum?
Answer
The region is unbounded; the minimum is .
Full solution
Points such as lie in the region, and can be made as large as we like. The smallest value, , occurs all along the edge from to .
-
Maximize subject to , , and .
Answer
, at , at , and at every point of the edge between them
Full solution
The corners are , , and , with equal to , , and . The objective’s lines are parallel to the edge .
-
Could the workshop build bookshelves and tables in one week? How does that profit compare with the best week?
Answer
Yes; it earns dollars, less than the best week.
Full solution
Cutting takes hours and finishing hours, so the point is in the region, on its edge. Its profit is , less than at .
-
A student maximizes over the workshop’s region by checking only and , and reports at . What went wrong?
Hint
How many corners does the region have?
Answer
The student skipped the corner , where is the maximum.
Full solution
The region has four corners. At , , and the values are , , and . The corner where the two constraint lines cross beats both corners on the axes.
Frequently asked questions
What is linear programming?
A method for finding the largest or smallest value of a linear expression, the objective, when the variables must satisfy a system of linear inequalities, the constraints.
What is a feasible region?
The set of points that satisfy every constraint. In two variables it is a region of the plane, often a polygon.
Why is the maximum always at a vertex?
The points with one objective value form a line, and changing the value slides that line parallel to itself. Pushed as far as the region allows, the line last touches a corner.
What if two vertices give the same best value?
Then every point on the edge between them is also best. The objective's lines are parallel to that edge.
Can a linear programming problem have no maximum?
Yes, when the feasible region is unbounded in the direction that increases the objective. A minimum may still exist.
Standards alignment
This lesson covers the following Common Core State Standards for Mathematics.
- CCSS.MATH.CONTENT.HSA.CED.A.3Creating EquationsRepresent constraints by equations or inequalities, and by systems of equations and/or inequalities, and interpret solutions as viable or nonviable options in a modeling context.
- CCSS.MATH.CONTENT.HSA.REI.D.12Reasoning with Equations and InequalitiesGraph the solutions to a linear inequality in two variables as a half-plane (excluding the boundary in the case of a strict inequality), and graph the solution set to a system of linear inequalities in two variables as the intersection of the corresponding half-planes.