←
Class 12 Mathematics
12. Linear Programming · 12 / 13
⌕
Chapter 12 of 13

12. Linear Programming

7 sections · 9,707 words

12.1 Chapter Opener: Introduction and Optimization Foundations

1,493 words · 7 min read

Chapter 12

Linear Programming

Big idea: when time, material or money are limited, many plans are possible but only one is best. Linear programming finds that best plan with a picture and a short list of corner points.

A small workshop has two products and only a few machine hours each week. The owner can make more of one product and less of the other. Every mix is a plan. Some plans waste time. Some plans break the limits. One plan earns the most.

How can the owner be sure of finding that one plan? Trying every mix by hand is hopeless. There are far too many of them. This chapter builds a method that never misses.

The method has three stages. First, turn the story into mathematics. Second, draw the set of plans that obey every limit. Third, test a short list of corner points and read off the best value.

In this chapter you will learn:

  • the decision variables, objective function and constraints of a linear programming problem;
  • the feasible region: the picture of all plans that obey every limit;
  • the corner-point method, which finds the best plan without trying every plan;
  • what to do when a region is unbounded, has many best plans, or is empty.

Limits draw a shape. The best plan always sits at a corner of that shape.

How to study this chapter: keep paper and pencil ready. Cover each worked solution, try one step yourself, then compare. Drawing the pictures by hand is the fastest way to learn them.

A small workshop makes two products, P and Q. Making one P needs 33 hours of cutting and 22 hours of finishing. Making one Q needs 22 hours of cutting and 44 hours of finishing. Each week the workshop has 2424 hours of cutting time and 3232 hours of finishing time.

Each P gives a profit of 4040 units. Each Q gives 5050 units. The owner chooses how many of each to make. The question is simple: which mix gives the largest profit without breaking either time limit?

One P needsOne Q needsAvailable per week
Cutting (hours)33222424
Finishing (hours)22443232
Profit (units)40405050

Read the table down each column. The P column says one P uses 33 cutting hours and 22 finishing hours. Each row will later become one mathematical limit.

Let us try five mixes and test each one. A plan is allowed only if it fits inside both time limits.

Plan (P, Q)Cutting hours usedFinishing hours usedAllowed?Profit
(8,0)(8, 0)24241616Yes320320
(0,8)(0, 8)16163232Yes400400
(4,6)(4, 6)24243232Yes460460
(2,2)(2, 2)10101212Yes180180
(5,5)(5, 5)25253030No—

Check one row by hand. The plan (4,6)(4, 6) uses 3(4)+2(6)=12+12=243(4) + 2(6) = 12 + 12 = 24 cutting hours. That exactly matches the 2424 available. It uses 2(4)+4(6)=8+24=322(4) + 4(6) = 8 + 24 = 32 finishing hours. That exactly matches the 3232 available. So it is allowed, and it gives 40(4)+50(6)=160+300=46040(4) + 50(6) = 160 + 300 = 460 profit units.

The plan (5,5)(5, 5) needs 3(5)+2(5)=253(5) + 2(5) = 25 cutting hours. Only 2424 are available. So it is not allowed, even though its profit would be high. A plan must pass the limits first. Profit comes second.

All five trial plans on one picture. Four dots sit inside the shaded allowed shape; (5, 5) sits outside it.

Read the figure slowly. The shaded shape holds every allowed plan. Its slanted sides are the two time limits. The four allowed trial plans sit inside it. The rejected plan (5,5)(5, 5) sits outside, past the cutting-time side. The plan (4,6)(4, 6) sits exactly at a corner, where both limits bind.

Among the four allowed trials, (4,6)(4, 6) earns the most. But is it the best of all possible plans? There are infinitely many mixes when fractions are allowed. Even with whole numbers only, the list is far too long to check by hand.

We need a method that is sure to find the best plan. Linear programming is that method. It works whenever two things are true:

  • [Board Standard] you want to make one quantity as large or as small as possible, for example profit or cost;
  • [HOTS] every limit is a straight-line condition such as 3x+2y≤243x + 2y \le 24.

Problems like this appear everywhere. A farm mixes feeds to meet nutrition needs at the lowest cost. A depot sends goods by several routes at the least shipping cost. A factory shares machine time between products for the most profit.

In this chapter we study problems with two unknowns. Then every limit is a line, and the whole problem can be drawn as a picture. The answer is read from that picture.

Trying a few plans can miss the best one. Linear programming checks every plan at once, through a picture.

Common mistake: ranking plans by profit before checking the limits. A plan with a high profit that breaks a limit is worthless. Test the limits first, then compare profits.

⚡ Quick Check Flashcards3 questions
Question 1
[Concept] A new plan makes 22 of P and 55 of Q. How many cutting hours and finishing hours does it use?
Try answering before revealing!
Question 2
[Board Standard] Is the plan (2,5)(2, 5) allowed? What profit does it give?
Try answering before revealing!
Question 3
[HOTS] Why is (5,5)(5, 5) rejected although it would earn 40(5)+50(5)=45040(5) + 50(5) = 450 units?
Try answering before revealing!

⚡ Quick Check Flashcards4 questions

Test yourself on the same workshop. Show each small step.

Question 1
[Concept] Test the plan (6,1)(6, 1). Find the cutting and finishing hours used, decide if it is allowed, and find its profit.
Try answering before revealing!
Question 2
[Board Standard] Test the plan (8,2)(8, 2). Which limit does it break, and by how much?
Try answering before revealing!
Question 3
[Board Standard] The plans (8,0)(8, 0) and (0,8)(0, 8) use cutting hours of 2424 and 1616. Which one uses more finishing hours, and which earns more?
Try answering before revealing!
Question 4
[HOTS] Explain in one or two sentences why trying five or ten plans cannot prove that (4,6)(4, 6) is the best of all plans.
Try answering before revealing!

Linear programming grew out of the need to plan large operations with limited resources. It became important during the Second World War, when planners had to decide how to use scarce supplies, vehicles and workers as well as possible.

  • About 1941: the mathematician Leonid Kantorovich and the economist Frank Hitchcock, working separately, each described the transportation problem: how to send goods from several sources to several destinations at the least total cost.
  • 1945: the economist George Stigler described the diet problem: how to choose foods so that nutrition needs are met at the lowest cost.
  • 1947: George Dantzig invented the simplex method, a step-by-step procedure that solves any linear programming problem in a finite number of steps, whatever the number of variables.
  • 1975: Kantorovich and Tjalling Koopmans received the Nobel Prize in Economics for their pioneering work on the best use of resources.

With computers, the simplex method and later methods now solve problems with thousands of variables, in industry, transport, energy and many other areas. The two-variable pictures in this chapter show the main idea behind all of them: the best plan sits at a corner of the region of allowed plans.

12.2 Linear Programming Problems and Mathematical Formulation

1,314 words · 6 min read

Every linear programming problem (LPP) has the same four parts. Look back at the workshop and give each part its name.

  • [Concept] Decision variables. The numbers you can choose. Here xx = number of P made and yy = number of Q made.
  • [Board Standard] Objective function. The quantity you want to make as large or as small as possible. Here the profit Z=40x+50yZ = 40x + 50y. To optimise means to maximise or minimise.
  • [Board Standard] Constraints. The limits. Here cutting time 3x+2y≤243x + 2y \le 24 and finishing time 2x+4y≤322x + 4y \le 32.
  • [HOTS] Non-negativity conditions. You cannot make a negative number of products: x≥0x \ge 0 and y≥0y \ge 0.

In simple words: the decision variables are your choices, the objective function is your goal, and the constraints plus non-negativity are your rules. Every LPP in this chapter has exactly this shape.

The word linear says that the objective function and every constraint are straight-line expressions. Each variable appears only to the first power. Variables are never multiplied together.

Allowed (linear)Not allowed (not linear)
3x+2y≤243x + 2y \le 24xy≤24xy \le 24 (variables multiplied)
40x+50y40x + 50y (objective)x2+y≤5x^2 + y \le 5 (a square appears)
x+2y≥8x + 2y \ge 8x+y≤3\sqrt{x} + y \le 3 (a root appears)

Only straight-line conditions cut the plane with a straight line. That is why the picture method of this chapter works. Curved conditions need other methods, which this chapter does not cover.

  • [Concept] A feasible solution is any pair (x,y)(x, y) that satisfies all constraints and the non-negativity conditions.
  • [Board Standard] The feasible region is the set of all feasible solutions.
  • [HOTS] An optimal solution is a feasible solution that gives the best value of the objective function. That best value is the optimal value.

Notice the order. First a plan must satisfy every limit. Only then can it compete for the best value. “Feasible” means allowed. “Optimal” means best among the allowed.

The line 3x+2y=243x + 2y = 24 splits the plane into two sides. One side satisfies 3x+2y≤243x + 2y \le 24 and the other does not. To find which side, test a point. The origin (0,0)(0, 0) gives 0≤240 \le 24, which is true, so the origin side is the allowed side. The point (10,10)(10, 10) gives 50≤2450 \le 24, which is false.

Why does this test work? A straight line divides the plane into two connected pieces. The expression 3x+2y3x + 2y changes smoothly. So it is below 2424 on the whole of one side and above 2424 on the whole of the other. One test point tells you which side is which.

To draw the line, use its intercepts. Set x=0x = 0: then 2y=242y = 24, so y=12y = 12. Set y=0y = 0: then 3x=243x = 24, so x=8x = 8. The line joins (8,0)(8, 0) to (0,12)(0, 12).

The allowed side of 3x + 2y ≤ 24 for x, y ≥ 0. The point (4, 6) is inside; (5, 5) is outside.

Read the figure step by step. Find the two intercepts (8,0)(8, 0) and (0,12)(0, 12) on the axes. The slanted line joins them. The shaded triangle is on the origin side. The allowed test point (4,6)(4, 6) sits inside it. The rejected point (5,5)(5, 5) sits beyond the slanted side.

Now combine two limits: 2x+y≤102x + y \le 10 and x+2y≤8x + 2y \le 8, with x≥0x \ge 0 and y≥0y \ge 0. Each limit allows one side of its line. The feasible region is where both allowed sides overlap.

Draw each line by its intercepts. For 2x+y=102x + y = 10: setting x=0x = 0 gives y=10y = 10, and setting y=0y = 0 gives x=5x = 5. For x+2y=8x + 2y = 8: setting x=0x = 0 gives y=4y = 4, and setting y=0y = 0 gives x=8x = 8.

The four corners are where pairs of boundary lines meet: (0,0)(0, 0), (5,0)(5, 0) (where 2x+y=102x + y = 10 meets y=0y = 0), (0,4)(0, 4) (where x+2y=8x + 2y = 8 meets x=0x = 0), and the crossing of the two slanted lines. Doubling the second equation gives 2x+4y=162x + 4y = 16. Subtracting the first equation 2x+y=102x + y = 10 leaves 3y=63y = 6, so y=2y = 2 and x=4x = 4. The crossing is (4,2)(4, 2) (confirmed by computer).

Two allowed sides overlap in a four-sided shape with corners (0, 0), (5, 0), (4, 2) and (0, 4).

Read the figure the same way. Each slanted line keeps its origin side. The shaded shape is the overlap, kept inside the first quadrant by x≥0x \ge 0 and y≥0y \ge 0. Its corners are exactly the four points found above. Every later problem in this chapter follows this pattern: draw each line, keep the correct side, and read the overlap.

When several constraints combine, the feasible region is always a convex polygon (or an unbounded convex shape): a shape with no dents, where the straight line between any two of its points stays inside it. Dent-free shapes matter, because the corner-point method of Section 12.2.2 depends on them.

One limit keeps one side of a line. All limits together keep the overlap, and that overlap has no dents.

Common mistake: forgetting the non-negativity conditions x≥0x \ge 0 and y≥0y \ge 0. Without them the region would extend to negative numbers, which makes no sense for counts of products or kilograms of food.

⚡ Quick Check Flashcards3 questions
Question 1
[Concept] Why is the origin (0,0)(0, 0) a convenient test point, and when can it not be used?
Try answering before revealing!
Question 2
[Board Standard] In the two-limit example above, verify by substitution that (4,2)(4, 2) satisfies both limits with equality.
Try answering before revealing!
Question 3
[HOTS] Explain the difference between a feasible solution and an optimal solution in one sentence each.
Try answering before revealing!

⚡ Quick Check Flashcards3 questions

Work with the limits x+y≤5x + y \le 5 and 2x+y≤82x + y \le 8, with x,y≥0x, y \ge 0.

Question 1
[Concept] Find the intercepts of each boundary line on the two axes.
Try answering before revealing!
Question 2
[Board Standard] Test the points (1,1)(1, 1) and (5,0)(5, 0). Which one is feasible, and which limit does the other break?
Try answering before revealing!
Question 3
[HOTS] The four corners of the feasible region are (0,0)(0, 0), (4,0)(4, 0), (3,2)(3, 2) and (0,5)(0, 5). Verify that (3,2)(3, 2) lies on both slanted lines and that (4,0)(4, 0) satisfies both limits.
Try answering before revealing!

12.3 Mathematical Formulation of Real-World Scenarios

1,566 words · 7 min read

To formulate a problem means to turn its words into mathematics. You do not solve anything yet. You only write down the choices, the goal and the limits. Follow these four steps every time:

  1. [Concept] Step 1. Read the problem. Decide what you are choosing. Name these decision variables xx and yy, and say what each means, with units.
  2. [Board Standard] Step 2. Write the objective function. Say whether to maximise it or minimise it.
  3. [Board Standard] Step 3. Write one constraint for each limit. Check the direction: “at most” gives ≤\le, and “at least” gives ≥\ge.
  4. [HOTS] Step 4. Add x≥0x \ge 0 and y≥0y \ge 0.
A table helps. Put the products (or foods, or routes) in columns and the resources (or needs) in rows. Each row then becomes one constraint, almost by itself.

This is the workshop from Section 12.1. Step 1: let xx = number of P made per week and yy = number of Q made per week.

Product PProduct QAvailable
Cutting (hours)33222424
Finishing (hours)22443232
Profit (units)40405050

Step 2: the goal is the largest profit, so maximise Z=40x+50yZ = 40x + 50y. Steps 3 and 4: each table row gives one constraint. The problem is:

Maximise Z=40x+50y\text{Maximise } Z = 40x + 50y

  • [Concept] 3x+2y≤243x + 2y \le 24
  • [Board Standard] 2x+4y≤322x + 4y \le 32
  • [HOTS] x≥0,  y≥0x \ge 0, \; y \ge 0

A quick check of one plan: making 66 of P and 22 of Q uses 3(6)+2(2)=18+4=223(6) + 2(2) = 18 + 4 = 22 cutting hours and 2(6)+4(2)=12+8=202(6) + 4(2) = 12 + 8 = 20 finishing hours. Both are within the limits, so the plan is allowed (confirmed by computer), and it gives Z=40(6)+50(2)=240+100=340Z = 40(6) + 50(2) = 240 + 100 = 340 units.

Notice what the check does. It substitutes the plan into every limit. It never skips a limit. Make this a habit: every plan you test must pass every line.

A farm mixes two foods, F1 and F2, for its animals. Each kilogram of F1 gives 33 units of protein and 11 unit of iron. Each kilogram of F2 gives 11 unit of protein and 22 units of iron. Each day the animals need at least 99 units of protein and at least 88 units of iron. F1 costs 44 units per kilogram and F2 costs 33 units per kilogram. Find the cheapest mix.

Step 1: let xx = kilograms of F1 per day and yy = kilograms of F2 per day. Step 2: the goal is the smallest cost, so minimise Z=4x+3yZ = 4x + 3y. Step 3: the needs are “at least”, so each need is a lower bound. The constraints use ≥\ge:

Minimise Z=4x+3y\text{Minimise } Z = 4x + 3y

  • [Concept] 3x+y≥93x + y \ge 9
  • [Board Standard] x+2y≥8x + 2y \ge 8
  • [HOTS] x≥0,  y≥0x \ge 0, \; y \ge 0

Check the mix x=4x = 4, y=2y = 2. Protein: 3(4)+2=12+2=143(4) + 2 = 12 + 2 = 14, which is at least 99. Iron: 4+2(2)=4+4=84 + 2(2) = 4 + 4 = 8, which meets the need of 88 exactly. The mix is allowed (confirmed by computer), at a cost of Z=4(4)+3(2)=16+6=22Z = 4(4) + 3(2) = 16 + 6 = 22 units.

Compare with Example 1. A production problem has “at most” limits and maximises. A diet problem has “at least” needs and minimises. The direction of the inequality follows the words, not the example number.

A shop needs at least 1010 boxes of goods. Depot A can send at most 77 boxes and depot B can send at most 66 boxes. Sending a box from A costs 22 units and from B costs 33 units. How should the shop order to pay the least?

Step 1: let xx = boxes from A and yy = boxes from B. Step 2: minimise the shipping cost Z=2x+3yZ = 2x + 3y. Step 3 needs care, because this problem mixes both directions:

Minimise Z=2x+3y\text{Minimise } Z = 2x + 3y

  • [Concept] x≤7x \le 7
  • [Board Standard] y≤6y \le 6
  • [Board Standard] x+y≥10x + y \ge 10
  • [HOTS] x≥0,  y≥0x \ge 0, \; y \ge 0

Read each line in words. The first says depot A sends at most 77 boxes. The second says depot B sends at most 66. The third says the total is at least 1010. One problem can carry both ≤\le and ≥\ge limits.

Check the order of 77 boxes from A and 44 from B. The total is 7+4=117 + 4 = 11 boxes, which is at least 1010. Both depot limits hold. The order is allowed (confirmed by computer), at a cost of Z=2(7)+3(4)=14+12=26Z = 2(7) + 3(4) = 14 + 12 = 26 units.

A print shop makes posters (xx per day) and banners (yy per day). A poster needs 11 unit of ink and 22 units of press time. A banner needs 22 units of ink and 11 unit of press time. The shop has 4040 units of ink and 3838 units of press time each day. A poster gives 3030 profit units and a banner gives 2020. Plan the day for the most profit.

Step 1: the choices are the daily counts xx and yy. Step 2: maximise Z=30x+20yZ = 30x + 20y. Steps 3 and 4:

Maximise Z=30x+20y\text{Maximise } Z = 30x + 20y

  • [Concept] x+2y≤40x + 2y \le 40
  • [Board Standard] 2x+y≤382x + y \le 38
  • [HOTS] x≥0,  y≥0x \ge 0, \; y \ge 0

Check the plan of 1010 posters and 1010 banners. Ink: 10+2(10)=30≤4010 + 2(10) = 30 \le 40. Press: 2(10)+10=30≤382(10) + 10 = 30 \le 38. Allowed (confirmed by computer), with Z=30(10)+20(10)=300+200=500Z = 30(10) + 20(10) = 300 + 200 = 500 units.

A look ahead: the allowed plans of the print shop form a four-sided shape. Section 12.2.2 shows how to draw it and read the best plan from its corners.

Read the figure as a promise. The shaded shape holds every allowed daily plan. The sample plan (10,10)(10, 10) sits inside it. The corner (12,14)(12, 14) will turn out to be the best plan of all, worth 640640 units. The next section shows how corners give the answer.

Name the choices, write the goal, turn each limit into one line, and never forget x, y ≥ 0.

Common mistake: writing the wrong direction. “Needs at least 99 units” is 3x+y≥93x + y \ge 9, not ≤\le. A diet that is too small is not allowed, but one that is larger is. Read “at most” and “at least” before choosing the sign.

⚡ Quick Check Flashcards2 questions

A kitchen makes soup packs (xx per day) and salad boxes (yy per day). A soup pack needs 22 units of stock and 11 unit of packing time. A salad box needs 33 units of stock and 22 units of packing time. Stock is limited to 2424 units and packing time to 1414 units per day. A soup pack gives 44 profit units and a salad box gives 55.

Question 1
[Board Standard] Formulate the problem: state the objective function and all constraints.
Try answering before revealing!
Question 2
[HOTS] Test the plan (4,4)(4, 4). Is it allowed, and what profit does it give?
Try answering before revealing!

⚡ Quick Check Flashcards4 questions

Formulate each problem from its words. Then test the given plan.

Question 1
[Concept] Two depots supply one shop. Depot A can send at most 66 crates and depot B at most 88. The shop needs at least 1010 crates. Sending one crate from A costs 22 units and from B costs 44. Formulate the cheapest-order problem.
Try answering before revealing!
Question 2
[Board Standard] In that depot problem, test the order of 66 crates from A and 44 from B. Is it allowed? What does it cost? The computer finds the cheapest possible cost is 2828 at (6,4)(6, 4): confirm that (6,4)(6, 4) satisfies every limit and gives 2828.
Try answering before revealing!
Question 3
[Board Standard] A student formulates “at least 99 units of protein” as 3x+y≤93x + y \le 9. Explain the error and write the correct line.
Try answering before revealing!
Question 4
[HOTS] Explain why the non-negativity conditions x≥0x \ge 0, y≥0y \ge 0 are needed for the diet problem, even though “negative kilograms of food” sounds absurd.
Try answering before revealing!

12.4 Graphical Method for Bounded Feasible Regions and Corner Points

879 words · 4 min read

With two variables we can solve an LPP by drawing it. The method has six steps. Example 1 shows every step. Later examples follow the same steps, with shorter comments.

  1. Step 1. Formulate the problem (Section 12.2.1).
  2. Step 2. Draw each constraint as a straight line. Use a test point, usually (0,0)(0, 0), to decide which side is allowed. The feasible region is where all allowed sides overlap, inside x≥0x \ge 0, y≥0y \ge 0.
  3. Step 3. Find the corner points of the region: the points where two boundary lines meet. Solve each pair of line equations together.
  4. Step 4. Calculate the objective function ZZ at every corner point.
  5. Step 5. Compare the values. The rule below tells you how, for bounded and unbounded regions.
  6. Step 6. Write the answer in words, with the units.

Step 1. Maximise Z=40x+50yZ = 40x + 50y subject to 3x+2y≤243x + 2y \le 24, 2x+4y≤322x + 4y \le 32, x≥0x \ge 0, y≥0y \ge 0.

Step 2. Draw the lines 3x+2y=243x + 2y = 24 and 2x+4y=322x + 4y = 32 by their intercepts. The first joins (8,0)(8, 0) to (0,12)(0, 12). For the second, setting x=0x = 0 gives 4y=324y = 32, so y=8y = 8; setting y=0y = 0 gives 2x=322x = 32, so x=16x = 16. It joins (16,0)(16, 0) to (0,8)(0, 8). The origin passes both tests (0≤240 \le 24 and 0≤320 \le 32), so both allowed sides face the origin. Their overlap is the shaded shape below.

Step 3. The corners on the axes are easy: (0,0)(0, 0), (8,0)(8, 0) (where 3x+2y=243x + 2y = 24 meets y=0y = 0) and (0,8)(0, 8) (where 2x+4y=322x + 4y = 32 meets x=0x = 0). The fourth corner is where the two slanted lines meet. Halve the second equation to get x+2y=16x + 2y = 16. Subtract this from 3x+2y=243x + 2y = 24: 2x=82x = 8, so x=4x = 4. Then 4+2y=164 + 2y = 16, so y=6y = 6. The corner is (4,6)(4, 6) (confirmed by computer).

The feasible region (shaded) and three profit lines Z = 200, 320, 460. The highest profit line that still touches the region passes through the corner (4, 6).

Read the figure in three passes. First, find the four labelled corners of the shaded shape. Second, follow each slanted solid line: it is one time limit, and the shape lies on its origin side. Third, look at the three dashed profit lines. They are parallel. As the profit value grows from 200200 to 320320 to 460460, each line sits further from the origin. The 460460 line only just touches the shape, at the single corner (4,6)(4, 6). No higher profit line can reach the shape at all.

Step 4. Evaluate Z=40x+50yZ = 40x + 50y at each corner, showing the substitution:

Corner pointSubstitutionZ = 40x + 50y
(0,0)(0, 0)40(0)+50(0)40(0) + 50(0)00
(0,8)(0, 8)40(0)+50(8)40(0) + 50(8)400400
(4,6)(4, 6)40(4)+50(6)40(4) + 50(6)460460
(8,0)(8, 0)40(8)+50(0)40(8) + 50(0)320320

Step 5. The region fits inside a small box, so it is bounded. The rule for bounded regions (Theorem 2 below) says the largest corner value is the maximum. Step 6. The largest value is 460460 at (4,6)(4, 6). So the workshop should make 44 of P and 66 of Q each week, for a profit of 460460 units.

Sanity check: does (4,6)(4, 6) satisfy every limit? Cutting: 3(4)+2(6)=12+12=24≤243(4) + 2(6) = 12 + 12 = 24 \le 24. Finishing: 2(4)+4(6)=8+24=32≤322(4) + 4(6) = 8 + 24 = 32 \le 32. Both hold with equality, and x,y≥0x, y \ge 0. The answer passes all four lines.

Think of the profit lines 40x+50y=k40x + 50y = k. For each value of kk it is a straight line, and all these lines are parallel. As kk grows, the line slides away from the origin. The best plan lies on the last such line that still touches the feasible region. Because the region is a polygon with straight sides, the last point touched is a corner, unless the sliding line lands exactly along a whole side, in which case both ends of that side are corners. The picture above shows this sliding for k=200k = 200, 320320 and 460460.

This idea is stated in two theorems. We accept them without a long proof.

Theorem 1. If a linear programming problem has an optimal value, then it is attained at a corner point of the feasible region.

Theorem 2. If the feasible region is bounded (it fits inside some circle), then the objective function has both a maximum value and a minimum value, and each is attained at a corner point.

If two corners both give the optimal value, then every point on the line segment between them is also optimal. Example 4 below shows this.

Slide the profit line until it last touches the shape. That touching point is a corner, and it is the answer.

12.5 Unbounded Feasible Regions and Half-Plane Verification Tests

2,088 words · 9 min read

Step 1. Minimise Z=4x+3yZ = 4x + 3y subject to 3x+y≥93x + y \ge 9, x+2y≥8x + 2y \ge 8, x≥0x \ge 0, y≥0y \ge 0 (the diet problem from Section 12.2.1).

Steps 2 and 3. This time the region is unbounded: it goes on for ever to the right and upwards. The boundary lines are 3x+y=93x + y = 9 (intercepts (3,0)(3, 0) and (0,9)(0, 9)) and x+2y=8x + 2y = 8 (intercepts (8,0)(8, 0) and (0,4)(0, 4)). Solving them together: tripling the second equation gives 3x+6y=243x + 6y = 24; subtracting the first leaves 5y=155y = 15, so y=3y = 3 and x=2x = 2. The corners are (0,9)(0, 9), (2,3)(2, 3) and (8,0)(8, 0) (confirmed by computer).

The unbounded region (shown up to the edge of the picture). The dashed line 4x + 3y = 17 passes through (2, 3); nothing in the region lies below it.

Read the figure carefully. The shaded region has only three corners, and it continues past the edge of the picture. The dashed line is the cost line Z=17Z = 17 through (2,3)(2, 3). Slide it downward for smaller costs: it leaves the region at once. Slide it upward: it always cuts through the region. So (2,3)(2, 3) is the lowest reachable cost, even though the region never ends.

Step 4. The corner values are:

Corner pointSubstitutionZ = 4x + 3y
(0,9)(0, 9)4(0)+3(9)4(0) + 3(9)2727
(2,3)(2, 3)4(2)+3(3)4(2) + 3(3)1717
(8,0)(8, 0)4(8)+3(0)4(8) + 3(0)3232

Step 5. The smallest corner value is 1717 at (2,3)(2, 3). But Theorem 2 does not apply, because the region is unbounded. A smallest corner value is only a candidate. We must check it with the half-plane test:

Test for an unbounded region. Let mm be the smallest corner value. Draw the open half-plane Z<mZ < m. If it has no point in common with the feasible region, then mm is the minimum. Otherwise there is no minimum. For a maximum, use the largest corner value MM and the half-plane Z>MZ > M.

Step 6. Here the half-plane 4x+3y<174x + 3y < 17 misses the region completely: the picture shows the whole region on or above the dashed line, and the computer confirms that no feasible point gives a smaller value. So the minimum cost is 1717, using 22 kg of F1 and 33 kg of F2.

For a maximum there is none: the point (100,0)(100, 0) is allowed and gives Z=400Z = 400, and (0,200)(0, 200) is allowed and gives Z=600Z = 600 (confirmed by computer). The cost can be made as large as you like by moving far out into the region.

Sanity check: (2,3)(2, 3) gives protein 3(2)+3=93(2) + 3 = 9 and iron 2+2(3)=82 + 2(3) = 8, meeting both needs exactly. The answer satisfies every limit.

Step 1. Minimise Z=−x+yZ = -x + y subject to 2x+y≥62x + y \ge 6, x+2y≥6x + 2y \ge 6, x≥0x \ge 0, y≥0y \ge 0.

Steps 2 and 3. The boundary lines are 2x+y=62x + y = 6 (intercepts (3,0)(3, 0) and (0,6)(0, 6)) and x+2y=6x + 2y = 6 (intercepts (6,0)(6, 0) and (0,3)(0, 3)). They cross at (2,2)(2, 2), since doubling the second equation gives 2x+4y=122x + 4y = 12 and subtracting the first leaves 3y=63y = 6. The corners are (0,6)(0, 6), (2,2)(2, 2) and (6,0)(6, 0) (confirmed by computer). The region is unbounded.

An unbounded region with corners (0, 6), (2, 2) and (6, 0). Moving along the x-axis to the right, the region never ends.

Read the figure with the xx-axis in mind. The shaded region sits above both slanted lines and stretches right without end. The corner (6,0)(6, 0) is where the region meets the axis. Every point further right on the axis, such as (7,0)(7, 0), is also in the region.

Corner pointSubstitutionZ = -x + y
(0,6)(0, 6)−(0)+6-(0) + 666
(2,2)(2, 2)−(2)+2-(2) + 200
(6,0)(6, 0)−(6)+0-(6) + 0−6-6

Step 5. The smallest corner value is −6-6 at (6,0)(6, 0). Is it the minimum? Test a point of the region further right: (7,0)(7, 0) is allowed and gives Z=−7+0=−7Z = -7 + 0 = -7 (confirmed by computer), which is smaller. Moving right along the axis makes ZZ smaller without end. So there is no minimum, even though the table has a smallest corner value. The computer agrees: this problem is unbounded.

Compare with the same region and Z=x+yZ = x + y. Then moving away from the origin only makes ZZ larger, so the smallest corner value 44 at (2,2)(2, 2) passes the half-plane test and is the true minimum. Whether an unbounded problem has an answer depends on the direction of ZZ, not only on the shape.

Take the workshop region again, but change the profits to 1515 and 1010 units: maximise Z=15x+10yZ = 15x + 10y. The profit lines now have the same slope as the cutting-time line 3x+2y=243x + 2y = 24, because 15:10=3:215 : 10 = 3 : 2. So the last profit line to touch the region lies along a whole side.

The corners (4,6)(4, 6) and (8,0)(8, 0) both give Z=120Z = 120: check 15(4)+10(6)=60+60=12015(4) + 10(6) = 60 + 60 = 120 and 15(8)+10(0)=12015(8) + 10(0) = 120. So does every point on the side between them. For example (6,3)(6, 3) is the midpoint, it is allowed (confirmed by computer), and 15(6)+10(3)=90+30=12015(6) + 10(3) = 90 + 30 = 120. The problem has many optimal solutions, and every one has the same optimal value 120120.

In general, when the objective line is parallel to a binding constraint side, the whole side is optimal. Report both end corners and say the segment between them is optimal too.

Maximise Z=x+yZ = x + y subject to x+y≤2x + y \le 2, x+y≥5x + y \ge 5, x≥0x \ge 0, y≥0y \ge 0. The first says x+yx + y is at most 22. The second says it is at least 55. No point can do both, so the two allowed sides do not overlap.

Two limits that ask for the impossible: x + y ≤ 2 and x + y ≥ 5. Each marked point passes one limit but fails the other.

Read the figure line by line. The lower line allows everything below it. The upper line allows everything above it. The two allowed sides point away from each other and never meet. Point (1,1)(1, 1) passes only the first limit; point (2,4)(2, 4) passes only the second (confirmed by computer). The feasible region is empty: there are no corners, and the problem is infeasible (it has no solution). Checking whole-number or fractional points will not help, because no point at all can satisfy both.

Maximise Z=5x+4yZ = 5x + 4y subject to 2x+3y≤132x + 3y \le 13, 3x+y≤103x + y \le 10, x,y≥0x, y \ge 0, where xx and yy must be whole numbers of items.

The graphical method ignores the whole-number rule at first. The slanted lines are 2x+3y=132x + 3y = 13 and 3x+y=103x + y = 10. Tripling the second gives 9x+3y=309x + 3y = 30; subtracting the first leaves 7x=177x = 17, so x=177x = \frac{17}{7} and y=197y = \frac{19}{7} (confirmed by computer). The corner value there is 5(177)+4(197)=85+767=1617=235(\frac{17}{7}) + 4(\frac{19}{7}) = \frac{85 + 76}{7} = \frac{161}{7} = 23.

But you cannot make 177\frac{17}{7} of an item. Rounding to (2,3)(2, 3) is allowed (confirmed by computer) but may not be best. Test the whole-number plans directly: the computer tried every whole pair with x,y≤10x, y \le 10. The best whole-number plan is (2,3)(2, 3) with Z=5(2)+4(3)=10+12=22Z = 5(2) + 4(3) = 10 + 12 = 22, which is below 2323. So the best whole-number answer is (2,3)(2, 3) with value 2222.

The lesson: a corner with fractions is only a starting hint for whole-item problems. Always test the nearby whole-number plans and report the best of those.

Common mistakes: (1) shading the wrong side of a constraint line; (2) forgetting that the region is also limited by x≥0x \ge 0 and y≥0y \ge 0; (3) taking the smallest or largest corner value as the answer when the region is unbounded, without doing the half-plane test; (4) rounding a fractional corner to the nearest whole numbers and assuming the result is best: always test the whole-number plans.

⚡ Quick Check Flashcards3 questions
Question 1
[Concept] A bounded region has corners (0,0)(0, 0), (4,0)(4, 0), (4,1)(4, 1) and (0,5)(0, 5). The values of Z=2x+yZ = 2x + y there are 00, 88, 99 and 55. What is the maximum, and which theorem justifies reading it straight from the table?
Try answering before revealing!
Question 2
[Board Standard] An unbounded region has smallest corner value m=8m = 8. A student declares 88 the minimum at once. What single test must be done first, and what does each outcome mean?
Try answering before revealing!
Question 3
[HOTS] Two corners (1,6)(1, 6) and (5,2)(5, 2) both give the best value 77 of Z=x+yZ = x + y. Name one more optimal solution and explain why it is optimal.
Try answering before revealing!

⚡ Quick Check Flashcards3 questions

Solve each problem by all six steps. Draw the region, list every corner, show each substitution, and finish with a sentence that answers the question.

Question 1
[Concept] Maximise Z=4x+3yZ = 4x + 3y subject to 2x+y≤122x + y \le 12, x+2y≤12x + 2y \le 12, x≥0x \ge 0, y≥0y \ge 0.
Try answering before revealing!
Question 2
[Board Standard] Minimise Z=3x+2yZ = 3x + 2y subject to x+y≥4x + y \ge 4, x+3y≥6x + 3y \ge 6, x≥0x \ge 0, y≥0y \ge 0. The region is unbounded: remember the half-plane test.
Try answering before revealing!
Question 3
[HOTS] Show that maximising Z=2x+3yZ = 2x + 3y subject to x+2y≤4x + 2y \le 4, x+y≥6x + y \ge 6, x≥0x \ge 0, y≥0y \ge 0 has no solution. Explain the clash in words as well as in symbols.
Try answering before revealing!

12.6 Exercise 12.1: Graded Corner-Point Problems

2,081 words · 9 min read

⚡ Quick Check Flashcards19 questions
Question 1
[Concept] Maximise Z=3x+4yZ = 3x + 4y subject to x+y≤7x + y \le 7, x+3y≤15x + 3y \le 15, and x,y≥0x, y \ge 0.
Try answering before revealing!
Question 2
[Concept] Minimise Z=2x+5yZ = 2x + 5y subject to x+y≥5x + y \ge 5, x+3y≥9x + 3y \ge 9, and x,y≥0x, y \ge 0.
Try answering before revealing!
Question 3
[Concept] Maximise Z=5x+3yZ = 5x + 3y subject to 2x+y≤102x + y \le 10, x+2y≤8x + 2y \le 8, x≤4x \le 4, and x,y≥0x, y \ge 0.
Try answering before revealing!
Question 4
[Concept] Minimise Z=3x+2yZ = 3x + 2y subject to 2x+y≥82x + y \ge 8, x+2y≥10x + 2y \ge 10, and x,y≥0x, y \ge 0.
Try answering before revealing!
Question 5
[Concept] Maximise Z=x+3yZ = x + 3y subject to x+y≤8x + y \le 8, 2x+y≤122x + y \le 12, y≤5y \le 5, and x,y≥0x, y \ge 0.
Try answering before revealing!
Question 6
[Concept] Minimise Z=4x+3yZ = 4x + 3y subject to x+y≥6x + y \ge 6, 2x+y≥102x + y \ge 10, and x,y≥0x, y \ge 0.
Try answering before revealing!
Question 7
[Board Standard] A workshop makes tables (xx per week) and chairs (yy per week). A table needs 33 hours of carpentry and 11 hour of polishing. A chair needs 22 hours of carpentry and 22 hours of polishing. Carpentry time is limited to 4848 hours and polishing to 2828 hours per week. A table gives 4040 profit units and a chair 5050. Formulate the problem and find the weekly plan with the most profit.
Try answering before revealing!
Question 8
[Board Standard] A garden shop mixes two feeds, A and B. Each kilogram of A has 22 units of protein and 11 unit of vitamins. Each kilogram of B has 11 unit of protein and 22 units of vitamins. The daily mix must have at least 88 units of protein and at least 77 units of vitamins. A costs 66 units per kilogram and B costs 55. Find the cheapest mix.
Try answering before revealing!
Question 9
[Board Standard] A shop needs at least 1212 crates. Depot A can send at most 88 crates and depot B at most 77. Sending one crate from A costs 33 units and from B costs 55. How should the shop order to pay the least?
Try answering before revealing!
Question 10
[Board Standard] A workshop makes frames (xx per day) and trays (yy per day). A frame needs 11 hour of cutting and 22 hours of assembly. A tray needs 22 hours of cutting and 11 hour of assembly. Cutting time is limited to 1414 hours and assembly to 1616 hours per day. A frame gives 66 profit units and a tray 55. Find the daily plan with the most profit.
Try answering before revealing!
Question 11
[Board Standard] A gardener mixes two fertilisers, P and Q. Each bag of P has 22 units of nitrogen and 11 unit of phosphate. Each bag of Q has 11 unit of nitrogen and 22 units of phosphate. The soil needs at least 1010 units of nitrogen and at least 1111 units of phosphate. P costs 55 units per bag and Q costs 33. Find the cheapest mix.
Try answering before revealing!
Question 12
[Board Standard] Maximise Z=x+yZ = x + y subject to x−2y≤2x - 2y \le 2, and x,y≥0x, y \ge 0.
Try answering before revealing!
Question 13
[Board Standard] Maximise Z=x+2yZ = x + 2y subject to x+y≤3x + y \le 3, 2x+2y≥102x + 2y \ge 10, and x,y≥0x, y \ge 0.
Try answering before revealing!
Question 14
[Board Standard] Maximise Z=2x+yZ = 2x + y subject to 2x+y≤102x + y \le 10, x≤4x \le 4, and x,y≥0x, y \ge 0.
Try answering before revealing!
Question 15
[HOTS] Maximise Z=5x+4yZ = 5x + 4y subject to 2x+3y≤132x + 3y \le 13, 3x+2y≤143x + 2y \le 14, x≥0x \ge 0, y≥0y \ge 0, where xx and yy must be whole numbers of items. First ignore the whole-number rule and find the fractional corner optimum; then find the best whole-number plan by testing.
Try answering before revealing!
Question 16
[HOTS] A student solves “maximise Z=2x+yZ = 2x + y subject to x+y≤5x + y \le 5, x≤4x \le 4, x,y≥0x, y \ge 0” and reports the maximum 99 at (4,1)(4, 1). The region is bounded. Is the student right? Justify with a theorem.
Try answering before revealing!
Question 17
[HOTS] A courier plans van trips (xx) and bike trips (yy). Each van trip carries 2020 parcels and uses 6060 fuel units. Each bike trip carries 44 parcels and uses 1010 fuel units. At least 100100 parcels must go out, and at most 400400 fuel units are available. Formulate the problem for the fewest total trips, then solve it.
Try answering before revealing!
Question 18
[HOTS] True or false? “Every linear programming problem has an optimal solution.” Give a reason with one counterexample.
Try answering before revealing!
Question 19
[HOTS] For “maximise Z=x+yZ = x + y subject to x+y≤7x + y \le 7, 2x+y≤122x + y \le 12, y≤6y \le 6, x,y≥0x, y \ge 0”, the corners (1,6)(1, 6) and (5,2)(5, 2) both give the value 77. Give one more optimal solution and prove it is optimal.
Try answering before revealing!

12.7 Chapter Summary and 5-Step LPP Solver Rubric

286 words · 1 min read

  • LPP: optimise (maximise or minimise) a linear objective function Z=ax+byZ = ax + by subject to linear constraints and x≥0x \ge 0, y≥0y \ge 0.
  • Feasible solution: a point satisfying all constraints. Feasible region: the set of all of them (a convex polygon, bounded or unbounded). Optimal solution: a feasible point giving the best value of ZZ.
  • Formulating: name the variables, write the objective function, write one constraint per limit (“at most” is ≤\le, “at least” is ≥\ge), add x,y≥0x, y \ge 0.
  • Corner-point method: draw the region, find the corners, evaluate ZZ at each corner, compare.
  • Theorem 1: if an optimal value exists, it is attained at a corner point.
  • Theorem 2: if the region is bounded, both a maximum and a minimum exist, at corner points.
  • Unbounded region: the best corner value mm (or MM) is only a candidate. It is the minimum (maximum) only if the open half-plane Z<mZ < m (Z>MZ > M) has no point in common with the region. Otherwise there is no minimum (maximum).
  • Many optimal solutions: if two corners give the same best value, every point on the segment between them does too.
  • Infeasible: if the allowed sides do not overlap, the region is empty and there is no solution.
  • Whole numbers: a corner may have fractions. If items must be whole, test whole-number plans directly.
Region shapeMaximumMinimum
BoundedExists, at a cornerExists, at a corner
UnboundedExists only if Z>MZ > M misses the regionExists only if Z<mZ < m misses the region
Empty (infeasible)No solutionNo solution

Draw the shape, test the corners, and check the special cases. That is the whole chapter in one line.

Up next
Continue to the next chapter