Applied Mathematics VIII: Linear Programming, Formulation and the Graphical Method

Unit VIII of Section B2 is linear programming: the terminology, formulating manufacturing, diet and transportation problems, the graphical method for two variables, feasible and infeasible regions, and the optimal feasible solution. The Mathematics chapter on the same topic (the corner-point theorem at length) is the companion; this one follows the Applied Mathematics unit list, with its own three worked formulations. Every corner-point table below was found by listing all intersections of the boundary lines and, as a second route, by an independent solver.
Overview

1. Terminology and Mathematical Formulation

2 min read · 2 parts

A linear programming problem (LPP) asks for the largest or smallest value of a linear function of several variables when those variables must satisfy linear inequalities. The variables are the decision variables (here x and y); the function to be maximised or minimised, such as profit or cost, Z = ax + by, is the objective function; the inequalities are the constraints, and x ≥ 0, y ≥ 0 are the non-negativity restrictions because a quantity of goods cannot be negative. A point satisfying every constraint is a feasible solution, the set of all of them is the feasible region, a point that violates a constraint is an infeasible solution, and the feasible solution with the best value of Z is the optimal feasible solution. Formulating a problem means turning the words into these three parts.

Three standard types. (1) Manufacturing: maximise profit under "at most" resource limits. A firm makes x tables and y chairs; a table takes 3 hours of carpentry and 1 hour of finishing, a chair 2 hours of each; at most 24 carpentry and 12 finishing hours are available; profit is ₹50 per table and ₹40 per chair. Maximise Z = 50x + 40y subject to 3x + 2y ≤ 24, x + 2y ≤ 12, x, y ≥ 0. (2) Diet: minimise cost under "at least" nutrient needs. Food A costs ₹4 and food B ₹3 per unit; a unit of A gives 2 units of protein and 1 of vitamin, a unit of B gives 1 of protein and 3 of vitamin; at least 8 protein and 9 vitamin are needed. Minimise Z = 4x + 3y subject to 2x + y ≥ 8, x + 3y ≥ 9, x, y ≥ 0. (3) Transportation: minimise the cost of moving goods. A shop needs at least 40 units; warehouse A can send at most 30 at ₹5 a unit and warehouse B at most 35 at ₹4 a unit. Minimise Z = 5x + 4y subject to x + y ≥ 40, x ≤ 30, y ≤ 35, x, y ≥ 0.

Three standard types of LPP
Linear programming problems
  • Manufacturing
    • Maximise profit, "at most" limits
    • Z = 50x + 40y
  • Diet
    • Minimise cost, "at least" needs
    • Z = 4x + 3y
  • Transportation
    • Minimise cost of moving goods
    • Z = 5x + 4y

A linear programming problem (LPP) asks for the largest or smallest value of a linear function of several variables when those variables must satisfy linear inequalities. The variables are…

2. The Graphical Method, Feasible and Infeasible Regions

2 min read · 2 parts

For two variables, draw each constraint as a half-plane: draw the line obtained by changing the sign to =, then test the origin (or another point) to see which side satisfies the inequality. The feasible region is the part common to all half-planes and to the first quadrant. It may be bounded (it fits inside some circle) or unbounded (it extends without limit), and it may be empty, in which case the problem is infeasible and has no solution. The corner-point theorem says that an optimum, if it exists, occurs at a corner point (vertex) of the feasible region. So: find all the corner points, compute Z at each, and read off the best.

Worked example 1 (manufacturing). The corner points of the region of 3x + 2y ≤ 24, x + 2y ≤ 12, x, y ≥ 0 are found by solving pairs of boundary lines and keeping the feasible ones: (0, 0): 0; (0, 6): 240; (6, 3): 420; (8, 0): 400 (the Z values listed beside each point for Z = 50x + 40y). The region is bounded, so the maximum is ₹420 at (6, 3): 6 tables and 3 chairs. A second route, an independent solver, gave the same value. Worked example 2 (diet). For the diet problem the corner points and the values of Z = 4x + 3y are (0, 8): 24; (3, 2): 18; (9, 0): 36. The region is unbounded (it extends towards large x and y) but Z has positive coefficients, so a minimum exists: ₹18 at (3, 2), that is 3 units of A and 2 of B. Worked example 3 (transportation). Corner points and costs: (5, 35): 165; (30, 10): 190; (30, 35): 290; the least cost is ₹165 at (5, 35), sending 5 units from A and 35 from B.

Graphical method on the tables-and-chairs problem
  1. Draw 3x + 2y = 24 and x + 2y = 12Test the origin for each side
  2. Feasible region: bounded
  3. Corners (0, 0), (0, 6), (6, 3), (8, 0)
  4. Z = 0, 240, 420, 400
  5. Maximum ₹420 at (6, 3)6 tables and 3 chairs

For two variables, draw each constraint as a half-plane: draw the line obtained by changing the sign to =, then test the origin (or another point) to see which side satisfies the…

3. Multiple Optima, Unbounded and Infeasible Problems

1 min read · 2 parts

Multiple optimal solutions. Maximise Z = 3x + 6y subject to x + 2y ≤ 10, x ≤ 8, y ≤ 4, x, y ≥ 0. The corner points and values are (0, 0): 0; (0, 4): 24; (2, 4): 30; (8, 0): 24; (8, 1): 30. The largest value 30 occurs at both (2, 4) and (8, 1), because the line Z = 30 is parallel to the edge x + 2y = 10. Every point of that edge, such as the midpoint (5, 5/2), gives the same Z, so there are infinitely many optimal solutions. Unbounded problem. Maximise Z = x + y subject to x + y ≥ 3, x + 2y ≥ 4, x, y ≥ 0. The region extends without limit and Z grows with it, so no maximum exists even though the region is not empty (the minimum of such a Z does exist). Infeasible problem. x + y ≤ 4 together with x + y ≥ 6 can never hold, so the feasible region is empty and the problem has no solution.

What the region and the objective tell you
SituationOutcome
Bounded regionMaximum and minimum both exist, at corner points
Unbounded region, minimise with positive coefficientsA minimum exists at a corner point
Unbounded region, maximise with positive coefficientsNo maximum
Two adjacent corners give the same optimumInfinitely many optimal solutions along the edge
No point satisfies all constraintsInfeasible: the region is empty

Multiple optimal solutions. Maximise Z = 3x + 6y subject to x + 2y ≤ 10, x ≤ 8, y ≤ 4, x, y ≥ 0. The corner points and values are (0, 0): 0; (0, 4): 24; (2, 4): 30; (8, 0): 24; (8, 1): 30.…

4. Further Worked Problems and the Minimum-on-an-Unbounded-Region Test

2 min read · 2 parts

Worked example 4 (maximise). A workshop earns ₹5 on each unit of product P and ₹7 on each unit of Q. Machine time allows x + y ≤ 10 and labour allows x + 2y ≤ 16, with x, y ≥ 0. Maximise Z = 5x + 7y. The boundary lines meet the axes at (10, 0) and (0, 8) and each other where x + y = 10 and x + 2y = 16, so y = 6 and x = 4. The corner points and the values of Z are (0, 0): 0; (10, 0): 50; (4, 6): 62; (0, 8): 56. The region is bounded, so the maximum is ₹62 at (4, 6). As a check, a search over every whole-number pair inside the region also gives 62 at (4, 6). Worked example 5 (minimise). Minimise Z = 2x + 5y subject to x + y ≥ 4, x + 3y ≥ 6, x, y ≥ 0. The corner points are (0, 4): 20; (3, 1): 11; (6, 0): 12, where (3, 1) comes from y = 1 and x = 3. The least of these is 11.

⚠️ The least corner value is not automatically the minimum
In example 5 the region is unbounded, so the corner value 11 is the minimum only if the open half-plane 2x + 5y < 11 has no point in common with the region. So test directly: the line 2x + 5y = 11 meets the first quadrant in the segment from (0, 2.2) to (5.5, 0), and every point of that segment violates x + y ≥ 4 or x + 3y ≥ 6 (for example (0, 2.2) has x + 3y = 6.6 ≥ 6 but x + y = 2.2 < 4). So 11 is the minimum ₹11 at (3, 1). Skipping the test, as many students do for a maximum on an unbounded region, is how a wrong "answer" is declared where none exists.

Worked example 4 (maximise). A workshop earns ₹5 on each unit of product P and ₹7 on each unit of Q. Machine time allows x + y ≤ 10 and labour allows x + 2y ≤ 16, with x, y ≥ 0. Maximise Z…

Key takeaways

  • An LPP has decision variables, a linear objective function Z = ax + by, linear constraints and non-negativity restrictions x, y ≥ 0.
  • "At most" gives ≤ (manufacturing, a maximum); "at least" gives ≥ (diet, a minimum).
  • The optimum, if it exists, is at a corner point of the feasible region; compute Z at every corner and compare.
  • A bounded region always has a maximum and a minimum; on an unbounded region a maximum of Z with positive coefficients may not exist.
  • Equal optimal values at two adjacent corners mean infinitely many optima along that edge; an empty region means the problem is infeasible.

Practice questions (24)

Attempt each one before opening the answer. Every explanation names the tempting wrong option as well as the right one, because that is where marks are lost.

  1. In a linear programming problem, the linear function whose value is to be maximised or minimised is called

    1. a constraint
    2. the feasible region
    3. a non-negativity restriction
    4. the objective function
    Show answer

    Answer: D — the objective function

    The objective function states the profit or cost to optimise; constraints and restrictions limit the choices.
  2. A point that satisfies every constraint of a linear programming problem is called a

    1. infeasible solution
    2. feasible solution
    3. corner solution only
    4. objective solution
    Show answer

    Answer: B — feasible solution

    Satisfying all constraints is exactly what makes a solution feasible; it need not be optimal.
  3. A shop needs at least 40 units from two warehouses A and B, sending x and y units. The constraint is

    1. x + y ≥ 40
    2. x + y ≤ 40
    3. x + y = 4
    4. xy ≥ 40
    Show answer

    Answer: A — x + y ≥ 40

    "At least" is a minimum requirement, so ≥; the total sent is the sum x + y, not the product.
Show the other 21 questions
  1. For the manufacturing problem Z = 50x + 40y, 3x + 2y ≤ 24, x + 2y ≤ 12, x, y ≥ 0, the corner points include

    1. (5, 5)
    2. (12, 0)
    3. (6, 3)
    4. (0, 12)
    Show answer

    Answer: C — (6, 3)

    The two boundary lines meet at (6, 3), which satisfies both; (12, 0) breaks 3x + 2y ≤ 24, and (0, 12) and (5, 5) break x + 2y ≤ 12.
  2. The maximum value of Z = 50x + 40y in that problem is

    1. ₹240
    2. ₹420
    3. ₹480
    4. ₹360
    Show answer

    Answer: B — ₹420

    Z at the corner points is (0, 0): 0; (0, 6): 240; (6, 3): 420; (8, 0): 400; the largest is 420.
  3. If a feasible region is empty, the linear programming problem is

    1. unbounded
    2. solved at the origin
    3. having infinitely many optima
    4. infeasible, with no solution
    Show answer

    Answer: D — infeasible, with no solution

    With no point satisfying all constraints there is nothing to optimise.
  4. For the diet problem Z = 4x + 3y, 2x + y ≥ 8, x + 3y ≥ 9, the minimum value of Z is

    1. ₹18
    2. ₹24
    3. ₹36
    4. ₹9
    Show answer

    Answer: A — ₹18

    The corner points and Z values are (0, 8): 24; (3, 2): 18; (9, 0): 36. The region is unbounded, but Z has positive coefficients, so the smallest corner value 18 is the minimum.
  5. Z = 3x + 6y has the same maximum 30 at two adjacent corner points of a feasible region. The problem has

    1. exactly two optimal solutions
    2. no optimal solution
    3. infinitely many optimal solutions
    4. a unique optimal solution
    Show answer

    Answer: C — infinitely many optimal solutions

    Z is linear, so it keeps the value 30 along the whole edge joining the two corners; every point of the edge is optimal.
  6. The restrictions x ≥ 0 and y ≥ 0 in a linear programming problem are called

    1. the objective function
    2. non-negativity restrictions
    3. the optimal solution
    4. infeasible constraints
    Show answer

    Answer: B — non-negativity restrictions

    x, y ≥ 0 say quantities cannot be negative, so they are non-negativity restrictions. The objective function is the tempting wrong option because it is the other thing written with x and y, but it is the quantity being optimised.
  7. Maximise Z = 5x + 7y subject to x + y ≤ 10, x + 2y ≤ 16, x, y ≥ 0. The maximum value is

    1. ₹50
    2. ₹56
    3. ₹62
    4. ₹70
    Show answer

    Answer: C — ₹62

    The corner points (0, 0), (10, 0), (4, 6) and (0, 8) give 0, 50, 62 and 56, so the maximum is 62 at (4, 6). The value 70 is the tempting wrong option from putting all 10 units into Q, which breaks the labour limit x + 2y ≤ 16.
  8. Minimise Z = 2x + 5y subject to x + y ≥ 4, x + 3y ≥ 6, x, y ≥ 0. The minimum value and the point are

    1. 11 at (3, 1)
    2. 12 at (6, 0)
    3. 20 at (0, 4)
    4. 0 at (0, 0)
    Show answer

    Answer: A — 11 at (3, 1)

    The corner points (0, 4), (3, 1) and (6, 0) give 20, 11 and 12, and the open half-plane test confirms 11. The origin gives 0 but is infeasible because it violates x + y ≥ 4, which makes it the tempting wrong option.
  9. In the problem Z = 5x + 7y, x + y ≤ 10, x + 2y ≤ 16, the corner point (4, 6) is found by

    1. solving x + y = 10 and x + 2y = 16 together
    2. putting x = 0 in x + y = 10
    3. putting y = 0 in x + 2y = 16
    4. averaging the points (10, 0) and (0, 8)
    Show answer

    Answer: A — solving x + y = 10 and x + 2y = 16 together

    Subtracting the equations gives y = 6 and then x = 4. Averaging (10, 0) and (0, 8) gives (5, 4), which lies inside the region and is not a corner, so it is the tempting wrong option.
  10. Each unit of A needs 2 hours and each unit of B needs 3 hours of machine time, and at most 60 hours are available. With x units of A and y of B, the constraint is

    1. 2x + 3y ≥ 60
    2. 3x + 2y ≤ 60
    3. x + y ≤ 60
    4. 2x + 3y ≤ 60
    Show answer

    Answer: D — 2x + 3y ≤ 60

    Time used is 2x + 3y, and "at most 60" means it cannot exceed 60, so 2x + 3y ≤ 60. 3x + 2y ≤ 60 is the tempting wrong option, which swaps the hours of the two products; ≥ would mean "at least".
  11. The feasible region has corner points (0, 0), (4, 0) and (0, 3). The maximum of Z = 2x + 5y over it is

    1. 15
    2. 8
    3. 0
    4. 23
    Show answer

    Answer: A — 15

    Z at the corners is 0, 8 and 15, so the maximum is 15 at (0, 3). 8 is the tempting wrong option, the value at (4, 0), where the larger coefficient 5 is not used; 23 adds the values 8 and 15, which is not any corner value.
  12. Which point is a feasible solution of x + y ≤ 5, x − y ≥ 1, x ≥ 0, y ≥ 0?

    1. (2, 2)
    2. (3, 1)
    3. (1, 1)
    4. (5, 1)
    Show answer

    Answer: B — (3, 1)

    For (3, 1): 3 + 1 = 4 ≤ 5 and 3 − 1 = 2 ≥ 1, so it is feasible. (2, 2) is the tempting wrong option because 2 + 2 = 4 ≤ 5, but 2 − 2 = 0 is below 1; (1, 1) fails x − y ≥ 1 and (5, 1) fails x + y ≤ 5.
  13. Maximise Z = 4x + 3y subject to 2x + y ≤ 10, x + 3y ≤ 15, x, y ≥ 0. The maximum value of Z is

    1. 20
    2. 15
    3. 24
    4. 26
    Show answer

    Answer: C — 24

    The lines meet at (3, 4), and the corners (0, 0), (5, 0), (3, 4), (0, 5) give Z = 0, 20, 24, 15. 20 is the tempting wrong option, the value on the x-axis at (5, 0); 26 would need a point such as (5, 2), which breaks 2x + y ≤ 10.
  14. Minimise Z = 5x + 4y subject to x + y ≥ 6, 2x + y ≥ 8, x, y ≥ 0. The minimum value of Z is

    1. 30
    2. 32
    3. 24
    4. 26
    Show answer

    Answer: D — 26

    The corners are (6, 0), (2, 4) and (0, 8) with Z = 30, 26, 32, and no point of the region has Z < 26. 30 is the tempting wrong option, the value at the x-axis corner (6, 0); 24 at (0, 6) is not feasible because 2(0) + 6 = 6 < 8.
  15. Food P costs ₹4 a unit and food Q costs ₹3 a unit. P gives 3 and Q gives 1 unit of vitamin A (need at least 12); P gives 1 and Q gives 2 units of vitamin B (need at least 9). The minimum cost is

    1. ₹21
    2. ₹36
    3. ₹33
    4. ₹18
    Show answer

    Answer: A — ₹21

    Minimise 4x + 3y subject to 3x + y ≥ 12, x + 2y ≥ 9: the corners are (9, 0), (3, 3), (0, 12) with costs 36, 21, 36, so the minimum is ₹21 at (3, 3). ₹36 is the tempting wrong option, the cost at either axis corner, where only one food is bought.
  16. The region x + y ≤ 6, x ≤ 4, y ≤ 5, x, y ≥ 0 has how many corner points?

    1. 4
    2. 5
    3. 6
    4. 3
    Show answer

    Answer: B — 5

    The corners are (0, 0), (4, 0), (4, 2), (1, 5) and (0, 5), five in all. 4 is the tempting wrong option, from missing that the line x + y = 6 cuts both x = 4 and y = 5, at (4, 2) and (1, 5), so the corner (4, 5) is replaced by two vertices.
  17. Maximise Z = x + 2y subject to x + y ≤ 6, y ≤ 4, x, y ≥ 0. The maximum value of Z is

    1. 12
    2. 8
    3. 10
    4. 6
    Show answer

    Answer: C — 10

    The corners are (0, 0), (6, 0), (2, 4), (0, 4) with Z = 0, 6, 10, 8, so the maximum is 10 at (2, 4). 12 is the tempting wrong option, the value at (0, 6), which is not feasible because it breaks y ≤ 4.
  18. The iso-cost line 4x + 6y = 24 cuts the x-axis and the y-axis at

    1. (4, 0) and (0, 6)
    2. (24, 0) and (0, 24)
    3. (6, 0) and (0, 6)
    4. (6, 0) and (0, 4)
    Show answer

    Answer: D — (6, 0) and (0, 4)

    Putting y = 0 gives x = 24 ÷ 4 = 6, and putting x = 0 gives y = 24 ÷ 6 = 4. (4, 0) and (0, 6) is the tempting wrong option, which pairs each coefficient with the wrong axis.
  19. Minimise Z = 3x + 2y subject to x + y ≥ 5, x + 2y ≥ 8, x, y ≥ 0. The minimum value of Z is

    1. 10
    2. 12
    3. 24
    4. 8
    Show answer

    Answer: A — 10

    The corners are (8, 0), (2, 3) and (0, 5), with Z = 24, 12, 10. The region is unbounded, but 3x + 2y ≥ 2(x + y) ≥ 10 everywhere in it, so 10 at (0, 5) is the minimum. 12 is the tempting wrong option, the value at the interior corner (2, 3).
  20. Maximise Z = 10x + 8y subject to x + y ≤ 9, 2x + y ≤ 14, x + 3y ≤ 21, x, y ≥ 0. The maximum value of Z is

    1. 78
    2. 82
    3. 70
    4. 80
    Show answer

    Answer: B — 82

    The corners are (0, 0), (7, 0), (5, 4), (3, 6), (0, 7) with Z = 0, 70, 82, 78, 56, so the maximum is 82 at (5, 4). 78 is the tempting wrong option, the value at (3, 6) where x + y = 9 meets x + 3y = 21; 80 would be a mid-edge value that is not a corner, and corners alone decide the maximum.
  21. A firm makes chairs (x) and tables (y), earning ₹30 and ₹50. A chair needs 2 hours of carpentry and 1 of finishing; a table needs 3 and 2. At most 120 carpentry and 70 finishing hours are available. The maximum profit is

    1. ₹1,800
    2. ₹1,750
    3. ₹1,900
    4. ₹2,000
    Show answer

    Answer: C — ₹1,900

    Maximise 30x + 50y subject to 2x + 3y ≤ 120, x + 2y ≤ 70: the lines meet at (30, 20), and the corners (0, 0), (60, 0), (30, 20), (0, 35) give ₹0, 1,800, 1,900, 1,750. ₹1,800 is the tempting wrong option, making only the 60 chairs that carpentry allows, which is not the best mix.