Grade by GradeEssential student suppliesSign in
C. Content · Foundations of Mathematics 11: Reasoning, Angles, Graphical Analysis, Statistics, Scale Models and Financial Literacy

Optimization: Feasible Regions and Objective Functions

BC FOM 11: optimization BC FOM 11: graphical analysis BC FOM 11: linear inequalitiesAbout 70 minutes
Learning goals
  • I can write constraints as linear inequalities and graph the feasible region with technology.
  • I can write an objective function and evaluate it at the vertices of the feasible region.
  • I can find the combination that maximizes profit or minimizes cost, and explain it in context.
  • I can use technology to maximize area or volume, or minimize perimeter.

Words to know

optimization
Finding the best possible value (a maximum or a minimum) under given conditions.
constraint
A condition or limit, written as an inequality.
feasible region
The region of points that satisfy all the constraints.
objective function
The expression to maximize or minimize, such as profit P = 12x + 16y.
vertex (of a region)
A corner of the feasible region, where two boundary lines meet.

Four steps for linear optimization

Many decisions ask for the best choice within limits: the most profit with limited materials, the lowest cost that still meets a need. A common way to organize the work is in four steps:

  1. Define the variables (with units).
  2. Write the constraints as inequalities and graph them with technology. The overlap is the feasible region.
  3. Write the objective function: the quantity to maximize or minimize.
  4. Evaluate the objective function at each vertex of the feasible region. For a linear objective function on a closed region, the maximum and the minimum always happen at a vertex.
Worked example

Example 1: Maximizing profit

A Grade 11 woodworking class in Courtenay makes cedar birdhouses and planter boxes to sell. A birdhouse uses 2 boards and 3 hours; a planter uses 4 boards and 2 hours. They have 100 boards and 90 hours. Profit is $12 per birdhouse and $16 per planter. How many of each should they make?

  1. Let x = birdhouses and y = planters, with x ≥ 0 and y ≥ 0.
  2. Boards: 2x + 4y ≤ 100, which simplifies to x + 2y ≤ 50. Hours: 3x + 2y ≤ 90.
  3. Objective function: maximize P = 12x + 16y.
  4. Graph the constraints. The vertices are (0, 0), (30, 0), (0, 25) and the intersection of x + 2y = 50 and 3x + 2y = 90.
  5. Intersection: subtract the equations: 2x = 40, so x = 20 and y = 15.
  6. Evaluate P at each vertex (see the table). The largest is $480 at (20, 15).
  7. Check the constraints: 20 + 2(15) = 50 boards and 3(20) + 2(15) = 90 hours. Both are used exactly.

Make 20 birdhouses and 15 planters for a maximum profit of $480.

0102030405010203040xy(0, 0)(30, 0)(20, 15)(0, 25)x + 2y = 503x + 2y = 90
The feasible region (shaded) for the woodworking problem: x + 2y ≤ 50, 3x + 2y ≤ 90, x ≥ 0, y ≥ 0. Here x is the number of birdhouses and y the number of planters. Its four vertices are labelled.
Vertex (x, y)P = 12x + 16y
(0, 0)$0
(30, 0)12(30) = $360
(0, 25)16(25) = $400
(20, 15)240 + 240 = $480 (maximum)
Testing the objective function at each vertex of the feasible region.
Worked example

Example 2: Minimizing cost

A Prince George school needs to take at least 160 people on a field trip. A van holds 10 people and costs $150; a bus holds 40 people and costs $650. Only 7 drivers are available (one per vehicle). Minimize the cost.

  1. Let x = vans and y = buses (whole numbers, x ≥ 0, y ≥ 0).
  2. Seats: 10x + 40y ≥ 160, so x + 4y ≥ 16. Drivers: x + y ≤ 7.
  3. Minimize C = 150x + 650y.
  4. Graph with technology. The feasible region has vertices (0, 4), (0, 7) and the intersection of x + 4y = 16 and x + y = 7: subtracting gives 3y = 9, so y = 3 and x = 4.
  5. C(0, 4) = $2600. C(0, 7) = $4550. C(4, 3) = 600 + 1950 = $2550.
  6. Check (4, 3): 10(4) + 40(3) = 160 seats and 7 drivers.

Book 4 vans and 3 buses for a minimum cost of $2550.

Maximizing area or volume, minimizing perimeter

Optimization is not only about straight lines. In the last lesson, a fixed length of fence gave a quadratic area function with a maximum at its vertex. Some other classic results:

  • For a fixed perimeter, the rectangle with the largest area is a square.
  • For a fixed area, the rectangle with the smallest perimeter is also a square. A 400 m^2 rectangle needs at least 80 m of fence (20 m by 20 m); a 10 m by 40 m rectangle with the same area needs 100 m.
  • For a box, graph the volume function with technology and tap its maximum.
Worked example

Example 3: The biggest box

An open-top box is made from a 20 cm by 20 cm piece of card by cutting an x cm square from each corner and folding up the sides. Use technology to find the cut that gives the largest volume.

  1. Base: (20 - 2x) by (20 - 2x); height: x. So V = x(20 - 2x)^2, with 0 < x < 10.
  2. Graph V = x(20 - 2x)^2 for 0 < x < 10 and tap the maximum: about (3.33, 592.6).
  3. Check: x = 3.33 gives a base of 13.34 cm and V ≈ 3.33 × 13.34^2 ≈ 592.6 cm^3. A nearby value, x = 3, gives 3 × 14^2 = 588 cm^3, which is less.

Cut squares of about 3.33 cm, for a maximum volume of about 593 cm^3.

Read the question twice

Decide first whether you want a maximum or a minimum, and check whether the answer must be a whole number. If the best vertex is not a whole number in a problem about people or objects, test the nearby whole-number points that are inside the feasible region.

Hands-on activity

Plan a bake sale

Plan a bake sale with two items, such as bannock and muffins, or two kinds of cookies.

  1. Choose realistic limits: flour available, oven time, or a budget.
  2. Write the constraints and graph them in Desmos.
  3. Choose a profit for each item and write the objective function.
  4. Find the vertices and the best plan. Would you change the plan for reasons the math does not include?
Just for fun

In 1939, a graduate student named George Dantzig arrived late to a statistics class and copied two problems from the board, thinking they were homework. They were famous unsolved problems, and he solved them. Later he invented the simplex method, still used to solve optimization problems with thousands of variables.

Your turn

1

Evaluate P = 5x + 8y at the vertices (0, 0), (10, 0), (6, 4) and (0, 6). Which gives the maximum?

2

A worker has at most 40 hours. Task A takes 2 h and task B takes 1 h. Write the constraint.

3

Find the vertex where x + y = 12 meets 2x + y = 16.

4

Minimize C = 3x + 2y over the vertices (0, 10), (2, 4) and (6, 0).

5

A rectangle has an area of 36 m^2. What dimensions give the smallest perimeter?

6

Why do we only test the vertices of the feasible region?

More practice

1

In Example 1, suppose profit is P = 20x + 10y instead. What is the best plan?

2

Is (25, 10) in the feasible region of Example 1?

3

An open box is made from a 30 cm square card. Technology shows the maximum of V = x(30 - 2x)^2 at x = 5. Find the volume.

4

With 100 m of fence for four sides of a rectangle, what is the maximum area?

5

In Example 2, suppose a van costs $200. What is the cheapest plan?

Check your understanding

Quiz

1.

The feasible region is...

2.

For a linear objective function, the maximum value on a feasible region occurs...

3.

What is P = 12x + 16y at (20, 15)?

4.

For a fixed perimeter, which rectangle has the largest area?

For parents and teachers

How to help: Talk through real choices with limits: "We have $60 and two hours; what is the best mix?" Ask your teen to name the variables, the constraints and what they are trying to maximize or minimize.

Common mistakes:

  • Mixing up the constraints (limits) with the objective function (the goal).
  • Testing only some of the vertices.
  • Writing ≤ when the problem says "at least" (that means ≥).
  • Giving a fractional answer for whole objects without checking nearby whole-number points.