Introduction to Optimization Advanced. This lesson goes beyond core Algebra I. You can skip it.
Progress can't be saved in this browser, so this lesson's status can't be set.
Learning goals
- Turn a word problem into an objective and linear constraints, with ,
- Explain why a linear objective's best value sits at a vertex
- Find every vertex, evaluate the objective there, and pick the extreme
- Say why an unbounded region may have no maximum
Constraints, the objective, and the feasible region
Suppose the allowed choices satisfy , , and . These constraints form the triangular feasible region from the last lesson. Each constraint keeps one half-plane, and the feasible region is their overlap. Every point in this triangle is an allowed choice, so there are infinitely many choices to compare. A condition such as would keep the side of its boundary away from the origin. In any model, keep only the overlap of all its constraints.
The constraints here use or , so feasible boundary points are included. If the best boundary point were excluded, there might be no greatest value to reach. Nonnegative amounts need and . If the variables count separate items such as chairs, they must also be whole numbers; nonnegativity alone does not require that.
The objective function is the quantity to maximize or minimize. A function here is simply a rule that gives one value for each allowed pair. For example, gives at . The general linear form is
where and are fixed numbers from the problem. We seek the largest value (a maximum) or smallest value (a minimum) among the feasible points. The corner-point principle lets us check a finite list instead of trying points at random.
Why the best value sits at a corner
For , the equations , , and describe points with objective values , , and . These are level lines: the objective is constant along each one.
For any level , solving for gives
The slope stays , so changing slides the line without turning it. The level lines are parallel. Sliding these lines up and to the right raises ; sliding them the other way lowers it.
The corners of this region are , , , and . As the three dashed level lines slide toward larger , the last one that still touches the region is , and it grazes only the corner . So the maximum of over this region is , at .
For a nonempty, bounded feasible polygon with its boundary included, a nonconstant linear objective has a last level line that touches the region in each direction. That line meets a corner or an entire edge, including its two corners. Checking all the corners therefore finds both extremes.
Here bounded means the region fits inside some large box; nonempty means at least one point satisfies all the constraints. If , then everywhere. Every feasible point ties, including every corner, and no sliding-line argument is needed.
Why a linear objective is optimized at a corner#
First take the triangle with corners , , and , and let . At the interior point , we get . Moving up to stays in the triangle and raises to , so that interior point is not best. Moving up helps because the coefficient of is positive. Along the slanted edge , substitute :
As increases from to , this climbs from to , so that edge’s maximum is at . On either axis edge, increasing its nonzero coordinate also increases . Checking the three corners gives , , and : the maximum is at .
The same reasoning works for a nonempty, bounded feasible polygon with its boundary included and nonconstant. An interior point has room for a small move in any direction. If , move a little right when , or left when . Alternatively, when , move up for or down for , as in the numerical example. At least one coefficient is nonzero, so one of these moves raises while staying inside. Thus an interior point cannot maximize .
Along a straight edge, equal steps change and by fixed amounts, so they change by a fixed amount too. Its value rises, falls, or stays constant along the edge. An endpoint therefore matches or beats every other point of that edge. Any interior point can also be improved until reaching an edge: travel in the chosen direction to the boundary, which is reached because the polygon is bounded and includes that boundary.
Every feasible point is thus matched or beaten by a corner. There are finitely many corners, so the largest corner value is the maximum for the whole polygon. Reverse the improving direction to obtain the same conclusion for the minimum.
The corner-point method
The principle turns into a four-step recipe, for any feasible region that is bounded, has an included boundary, and has at least one point in it:
- Graph the feasible region from the constraints, exactly as in the last lesson.
- Find every vertex (corner) of the region. Each corner is where two boundary lines cross, so read off which two lines meet there and solve that pair as a system, the way you solved systems in an earlier chapter. Not every such crossing is a vertex of the region: check the result against every other constraint, and discard a crossing that fails one, since it lies outside the feasible region rather than on a corner of it.
- Evaluate the objective at each vertex.
- Compare the values: the largest is the maximum and the smallest is the minimum, and the vertex where it happens is the point that achieves it.
Worked example 1 Maximize subject to , , ,
Start with the region. The two axes give the lower and left edges, since and pin everything to the first quadrant. The line runs through and , and testing the origin gives , so its half-plane is the side toward the origin. The line runs through and , and again the origin satisfies it. Shading all four conditions leaves a four-cornered region.
Next, find the vertices. Two come from the axes meeting the slanted lines, and one comes from the two slanted lines meeting each other.
The origin is where the axes cross. On the -axis, the constraint that actually reaches down to meet it is with , giving , so . On the -axis, the constraint that reaches it is with , giving , so . The last corner is where and cross. Subtracting the second from the first removes the constant:
Putting into gives , so and : the vertex .
The other axis crossings are not feasible: gives , and gives . Discard them. Each of the four listed corners satisfies every constraint.
Finally, evaluate at all four corners.
The maximum of over this region is , achieved at , . This point is the inside corner where the two slanted limits meet. If you had checked only the corners on the axes, you would have missed it.
Check your understanding
A feasible region has corners , , , and . Which corner maximizes ?
By the corner-point principle the maximum is at a vertex, so evaluate at each of the four corners.
The largest value is , at . The corner has both coordinates positive, but each unit of adds to and each unit of adds only , so gives the larger value.
Check your understanding
A feasible region is bounded by , , , and . What is the vertex where the lines and cross?
A vertex is where two boundary lines meet, so solve the pair as a system. Subtracting the first equation from the second removes :
Then gives , so the vertex is . Reading a corner off the grid instead of solving the system is exactly the guessing mistake this method avoids; swaps the coordinates, and and are single-constraint intercepts, not the crossing point of these two lines.
When the region is unbounded
A nonempty, bounded feasible polygon with its boundary included has both extremes. An unbounded region stretches forever in some direction. Such a region may lose the maximum, the minimum, both, or neither. Which ones it loses depends on how the objective changes as you move in the unbounded direction.
For example, if feasible points extend upward forever and raising keeps raising , there is no maximum. If that move lowers instead, it prevents a minimum. For the nonempty regions here, with and inclusive linear constraints, any extreme that exists is still achieved at a corner. We use that extension here; its general proof belongs to later optimization courses. Check the unbounded directions as well as the corners before claiming an extreme exists.
Worked example 2 Minimize subject to , , ,
Because both slanted constraints are “greater than or equal to,” each half-plane is the side away from the origin. So the feasible region sits above and to the right of the two lines, and it runs off to infinity in that direction. The region is unbounded, but a minimum can still exist. Push the level line of in the decreasing direction, toward the origin, and it last touches the region at a corner.
Find the corners. On the -axis (), the constraint that reaches it is , giving , so . On the -axis (), the constraint that reaches it is , giving , so . The middle corner is where and meet. Subtracting the first from the second removes :
and then gives : the vertex .
Evaluate at the three corners.
The smallest value is , at , so the minimum cost is . There is no maximum here: starting from any feasible point and moving up and to the right keeps every constraint satisfied while sending upward without bound. When the region is unbounded in the direction that makes the objective grow, the correct answer is “no maximum.”
Check your understanding
A feasible region satisfies , , and , and it stretches upward and to the right without end. For the objective , which is true?
Every point in the region satisfies , so never drops below , and that value is reached all along the edge : a minimum exists. But the region keeps stretching in exactly the direction that grows , so you can move outward forever and drive as high as you like. There is no largest value, so there is no maximum.
Optimization in word problems
Most optimization problems are given as a story, and you write the inequalities yourself. Name the variables, translate each limited resource into one inequality, add the non-negativity constraints, and write the objective. Then use the corner-point method, provided the variables can take any value in the region; if they must be whole numbers because they count separate items, that adds one more thing to check, covered below.
Worked example 3 A workshop's best daily plan
A workshop builds chairs and tables. Each chair needs hours of cutting and hour of assembly. Each table needs hour of cutting and hours of assembly. In a day the shop has at most hours of cutting and hours of assembly available. Each chair brings a profit of dollars and each table dollars. How many of each should the shop build to maximize profit?
Every number in the story goes into the model. Laying them out in a table makes the translation easy to check:
| Cutting (hr) | Assembly (hr) | Profit (dollars) | |
|---|---|---|---|
| Chair () | |||
| Table () | |||
| Daily limit | maximize |
Let be the number of chairs and the number of tables. Reading down the Cutting column, cutting time used is hours and cannot exceed ; reading down the Assembly column, assembly time used is hours and cannot exceed . The Profit column gives the objective, dollars. Since and count separate items, they must also be whole numbers, and of course neither can be negative. The full model is
The corner-point method finds the best point while treating and as any real numbers, whole or not. Whenever that point turns out to have whole-number coordinates, as it will here, it is also the best whole-number plan, so the method still gives the answer directly.
Graph the region and find its corners. The origin is one. On the -axis the constraint that reaches it is , giving . On the -axis the constraint that reaches it is , giving . The inside corner is where and meet. From the first, ; substituting into the second,
so and : the vertex .
Evaluate the profit at every corner.
The best profit is dollars, at , both whole numbers, so the shop should build chairs and tables each day. That plan uses cutting hours and assembly hours, so it spends both resources completely, which confirms is where the two slanted limits cross. Using up every resource does not by itself show that a plan is best. We know this plan earns the most profit because we compared all four corners.
Check your understanding
A garden shop plants rose bushes () and shrubs (). Each rose bush needs square feet and each shrub needs square feet, in a bed with at most square feet. Which inequality models the space limit?
Each rose bush uses square feet, contributing , and each shrub uses square feet, contributing . Together they cannot exceed the square feet available.
The coefficients come straight from the two areas, in the same order as and ; swapping them, as the second option does, would model the wrong plant using the wrong space.
Check your understanding
A caterer makes wraps () and salads (). Each wrap needs minutes of prep and each salad needs minutes, with at most minutes of prep time available. Each wrap earns dollars profit and each salad dollars. Which is the complete correct model for maximizing profit?
The objective adds each item's profit, , and the constraint adds each item's prep time against the -minute limit, . Since wraps and salads cannot be made a negative number of times, and belong in the model too, and since a caterer makes whole wraps and whole salads, not fractions of one, and must also be whole numbers. The second option leaves out the nonnegativity and whole-number conditions, the third swaps the prep-time coefficients into the objective and the profits into the constraint, and the fourth asks to minimize profit instead of maximize it.
Check your understanding
For a nonempty, bounded feasible polygon with its boundary included and a nonconstant linear objective, why is checking the corners enough to find the maximum?
The level lines are parallel. For , their slope is ; for , the nonconstant assumption gives , so they are vertical. Sliding toward larger values, the last line to meet this polygon touches a corner or a whole edge, including its endpoint corners.
Thus at least one corner attains the maximum. Interior points are feasible too, but a small move toward larger improves their values. Distance from the origin does not decide the objective, and the objective need not vanish away from corners.