Introduction to Optimization
Learning goals
- Pair an objective with linear constraints
- Explain why a linear objective peaks at a vertex
- Find each vertex by solving the two boundary lines that cross
- Evaluate the objective at every corner and take the extreme
- Say why an unbounded region may have no maximum
- Add and when modeling a word problem
Constraints, the objective, and the feasible region
An optimization problem in two variables has two parts. The first part is a list of constraints, the hard limits written as linear inequalities such as or . The list also carries the natural restrictions and whenever the variables count real things that cannot go negative. You already know how to graph such a system: each inequality shades a half-plane. The points that satisfy all of the inequalities at once fill the overlap, the feasible region. Every point inside that region is an allowed choice, and there are usually infinitely many of them.
The second part is the objective function, the single linear quantity you are trying to make as large or as small as possible. Write it as
where and are fixed numbers set by the problem, such as . Maximizing profit, minimizing cost, and minimizing time are all of this form. The whole task is now sharp. Among the infinitely many points of the feasible region, find the one (or ones) where the objective is largest, for a maximum, or smallest, for a minimum. Testing points one at a time would never end, so you need a reason to look in just one place. That reason is the corner-point principle.
Why the best value sits at a corner
Fix an objective, say , over a feasible region. For any chosen number , the points where , that is where , form a straight line called a level line of the objective. Every point on that line gives the objective the same value . Solving for gives , a line whose slope does not depend on . So the level lines for different values of are all parallel. Changing slides the line across the plane without ever turning it. Sliding it one way makes larger, while sliding it the other way makes smaller.
Maximizing over the region is now a physical picture. Push the level line in the increasing direction as far as you can while it still touches the feasible region. The very last place it touches, just before it leaves the region behind, is where is largest. For a region whose edges are all straight lines, that last contact happens at a corner.
Why a linear objective is optimized at a corner#
Take a bounded feasible region whose boundary is made of straight edges meeting at corners. Take also an objective that genuinely depends on the variables, so and are not both zero.
First, the maximum cannot happen strictly inside the region. From any interior point, take a small step in the direction that increases , the direction pointing across the level lines toward larger values. Because the point started strictly inside, a short enough step stays inside the region, and it lands on a level line with a larger value of . So no interior point can be the best: there is always a nearby feasible point that beats it. The maximum must therefore lie on the boundary.
Now look along a single edge. As you slide from one endpoint of the edge to the other, both and change at steady rates, so changes at a steady rate too. A quantity that changes at a constant rate along a segment is largest at one of the two ends, never strictly in the middle. The ends of the edges are exactly the corners of the region. Since the maximum lives on the boundary, and on each edge it is pushed to an endpoint, the maximum over the whole region is reached at a corner.
The parallel level lines say the same thing in a picture. The last line to touch the region as you slide outward meets it either at a single corner or all along an edge parallel to it. In that second case, the two corners at the ends of that edge tie for the best value. Either way at least one corner achieves the maximum. Sliding the line the opposite way runs the identical argument for the minimum. So both the maximum and the minimum of a linear objective over such a region occur at a corner.
The corners of this region are , , , and . The level line is the last one that still grazes the region, touching it only at . That is the whole idea: the search collapses from infinitely many points down to a short list of corners.
The corner-point method
The principle turns into a four-step recipe that works every time.
First, graph the feasible region from the constraints, exactly as in the last lesson. Second, 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. Third, evaluate the objective at each vertex. Fourth, 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 binding limit is with , giving , so . On the -axis, the binding limit 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 .
Finally, evaluate at all four corners.
The largest value is , reached at . So the maximum of over this region is , achieved at , . Notice the winner is the inside corner where the two slanted limits meet, not one of the axis corners, which is why checking every vertex matters.
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 . Even though has both coordinates positive, the heavy weight on in makes the tall corner win.
When the region is unbounded
The corner-point principle promises a maximum and a minimum whenever the feasible region is bounded, meaning it fits inside some large box. Many cost problems instead have an unbounded region that stretches out forever in some direction, because the constraints only set lower limits. There you have to be a little careful: the objective can still have a minimum at a corner, but it may have no maximum at all. That is because you can travel outward without limit and drive the objective as high as you like. The method is the same; you just report only the extreme that actually 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, which is fine for a minimum. 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 binding constraint is , giving , so . On the -axis (), the binding constraint 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. Reporting “no maximum” is the honest and correct answer when the region is unbounded in the increasing direction.
Optimization in word problems
Most optimization problems arrive as a story, not as ready-made inequalities. Your job is to name the variables, translate each limited resource into one inequality, add the non-negativity constraints, and write the objective. After that, the corner-point method finishes the work.
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?
Let be the number of chairs and the number of tables. Both are counts, so and . Cutting time used is hours and cannot exceed , and assembly time used is hours and cannot exceed . The profit to maximize is dollars. The full model is
Graph the region and find its corners. The origin is one. On the -axis the binding limit is , giving . On the -axis the binding limit 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 . The shop should build chairs and tables each day. That plan uses cutting hours and assembly hours, so it spends both resources completely. That is exactly why the plan lands on the corner where the two limits meet.
Check your understanding
Why is it enough to check only the corners of the feasible region when maximizing a linear objective?
The level lines all share the same slope, so they are parallel; changing just slides the line. Sliding it in the increasing direction, the last place it still touches the region is a corner (or a whole edge, whose endpoints are corners).
So the maximum is attained at a vertex, and comparing the finitely many corners is enough. Interior points are still feasible, and the objective is certainly not zero away from the corners; those other statements are false.