Lesson · Grade 11 · Foundations of Mathematics

Linear programming: the best answer is at a corner

  • Grade 11
  • Foundations of Mathematics
  • 2 min 7 s
  • British Columbia
  • BC11-MA-30

A bakery's two limits, oven space (x + y ≤ 10) and prep hours (2x + y ≤ 16), are graphed and the feasible region is shaded. Its corners (0, 0), (8, 0), (6, 4) and (0, 10) are tested in P = 30x + 20y to give $0, $240, $260 and $200. A profit line slid across the region shows why the best answer, 6 trays of muffins and 4 trays of cookies for $260, sits at the corner where the two lines cross, a point that is missed if only the axes are checked.

Anyone can watch two lessons on the website without an account. Signing in is free, no payment and no card, and opens three a day; Plus has no limit.

Loading

In one sentence

The question this lesson answers

A bakery makes x trays of muffins and y trays of cookies. Which mix earns the most profit?

Linear programming finds the best value within limits, called constraints.

Transcript

What the lesson says

A bakery makes x trays of muffins and y trays of cookies. Which mix earns the most profit?

Linear programming finds the best value within limits, called constraints.

Oven space: x plus y is at most 10.

Prep hours: 2x plus y is at most 16.

Trays cannot be negative, so x and y are at least 0.

The points that meet every constraint form the feasible region.

The profit, P equals 30x plus 20y dollars, is the objective function. We want it as large as possible.

The corners, called vertices, are (0, 0), (8, 0), (6, 4) and (0, 10).

(6, 4) is where the lines cross: 6 plus 4 is 10, and 2 times 6 plus 4 is 16.

(0, 0) gives 0 dollars, and (8, 0) gives 30 times 8, or 240 dollars.

At (6, 4), 30 times 6 is 180 and 20 times 4 is 80, so 260 dollars.

(0, 10) gives 20 times 10, or 200 dollars.

The largest is 260 dollars, at (6, 4).

Why a corner? Every point on this line earns 120 dollars.

Slide it outward and the profit grows. The last point it touches is (6, 4).

A common mistake is checking only the corners on the axes. That gives 240 dollars and misses the crossing at (6, 4).

So bake 6 trays of muffins and 4 trays of cookies, for 260 dollars.

Recap: the best value is at a corner, so test every corner.