Grade 12 · Unit 4 · ሂሳብ

Grade 12 Mathematics — Unit 4: Introduction to linear programming

የ12ኛ ክፍል ሂሳብ መጽሐፍ — ክፍል 4

Kitaaba herrega kutaa 12 — Kutaa 4

Full Grade 12 Mathematics textbook: all 5 units →

This page is an Abrari study guide for Unit 4 of Grade 12 Mathematics: Introduction to linear programming. Optimization through linear inequalities and objective functions; formulating and solving linear programming problems graphically and using spreadsheets. Use the study-check questions, then try unofficial unit practice. Abrari is an independent study aid — not affiliated with the Ministry of Education, EAES, MoLS, or OCACC.

Optimization through linear inequalities and objective functions; formulating and solving linear programming problems graphically and using spreadsheets.

Study guide: Introduction to linear programming

Abrari study notes written from this unit (book pages 247–313) and checked against it. A study aid, not the textbook and not reviewed by a teacher.

This unit shows how to find the largest or smallest value of a linear expression when the allowed choices are limited by linear inequalities. Work begins with one-variable inequalities, including spending limits, and with the rule that multiplying or dividing by a negative number reverses the inequality sign. A straight line then splits the plane into half-planes. A dashed boundary marks a strict inequality and a solid boundary marks one that includes equality. The overlap of several shaded regions is the feasible region, and its corners come from solving pairs of boundary equations. Profit, cost or another objective is evaluated at those corners. A bounded region always has both a maximum and a minimum, while an unbounded region may lack one of them. The same method builds diet mixes, factory plans, medicine allocations and transport schedules. A spreadsheet Solver can run the search in cells. In the bedsheet model that search gives a greatest hourly revenue of Birr 7600.

What you will learn

  • Solve a linear inequality in one variable and state its solution set.
  • Graph a linear inequality in two variables with a boundary line and a test point.
  • Sketch the feasible region of a system and locate its corner points.
  • Maximize or minimize a linear objective function by the corner point method.
  • Turn diet, production, allocation and transport stories into linear programs.
  • Enter decision cells, an objective and constraints so a spreadsheet Solver can optimize them.

Inequalities in one variable

An inequality uses <, >, ≤ or ≥ instead of an equals sign. Alem has Birr 500 for flour at Birr 130 a packet, so 130x < 500. The non-negative whole values x = 0, 1, 2 and 3 all work, because three packets cost 390, but x = 4 fails since 520 is over 500. Those four numbers form the solution set {0, 1, 2, 3}. Adding or subtracting the same number on both sides leaves the sign unchanged. Multiplying or dividing by a positive number also leaves it unchanged, while a negative number reverses it. Thus 7x + 3 < 5x + 9 becomes 2x < 6, so x < 3. Selam's fare 0.75x + 1.75 is at most Birr 10, which allows a ride of at most 11 km.

Half-planes in the coordinate plane

A line splits the coordinate plane into two half-planes. A vertical line separates left from right, and any other line separates a lower side from an upper side. Replace the inequality by an equation and draw the boundary. Use a dashed line for < or >, since points on it are excluded, and a solid line for ≤ or ≥, since those points stay in. Test a point, often the origin. Shade its half-plane if the test works, and shade the other side if the test fails. For y < 5x + 7 the boundary has slope 5 and goes through (0, 7). The origin satisfies it, so shade that side of the dashed line. For y ≥ 2x + 3 the line is solid and the origin fails, because 0 is below 3, so shade the opposite side.

Systems and their corner points

A system contains two or more linear inequalities that must hold together. The feasible region is every ordered pair that satisfies them all. Shade each inequality and keep only the overlap. Keep a crossing of two boundaries only when every inequality includes its line. One strict sign drops that crossing. The lines y = 5x + 7 and y = -2x + 14 meet at (1, 12), but the strict first inequality excludes (1, 12). Non-negative counts add x ≥ 0 and y ≥ 0. Ficho needs at least 40 more answer sheets than pencils. Sheets cost Birr 1, pencils cost Birr 2, and the budget is at most Birr 400. Corners of x ≥ y + 40 and x + 2y ≤ 400 are (40, 0), (400, 0) and (160, 120). (150, 100) fits, but (100, 150) does not.

The corner point method

Linear programming finds the greatest or least value of z = ax + by under linear constraints. If a best value exists, it is attained at a corner. A bounded region has both a maximum and a minimum, each at a corner. An unbounded region may lack either one. A dealer may invest at most Birr 50000 and store at most 60 pieces. Tables cost Birr 2500 and earn Birr 300. Chairs cost Birr 500 and earn Birr 100. Then 5x + y ≤ 100, x + y ≤ 60, and both variables are at least 0. Profit Z = 300x + 100y equals 0, 6000, 8000 and 6000 at (0, 0), (20, 0), (10, 50) and (0, 60). The best plan is 10 tables and 50 chairs.

Diet, production and transport models

Diet, manufacturing, allocation and transportation problems are common linear programs. A diet model cuts cost under nutrition rules, or raises nutrition under a budget. Corn costs Birr 30 per kg and holds 10 percent protein and 2 percent fiber. Soybean meal costs Birr 90 per kg and holds 60 percent protein and 6 percent fiber. A daily mix of at least 800 kg needs at least 30 percent protein and at most 4 percent fiber. The cheapest mix costs Birr 43200, using 480 kg of corn and 320 kg of soybean meal. In manufacturing, earning Birr 8000 on model A and Birr 12000 on model B, a firm makes 12 of A and 6 of B for a weekly profit of Birr 168000. Moving goods from two parks to three markets has a lowest corner cost of Birr 1550.

Optimizing with a spreadsheet Solver

A graph is enough when only two decision variables appear. With more variables the arithmetic grows tedious, so the program is stored as a spreadsheet model. Each decision variable has a cell, one formula computes the objective, and other formulas compute the left side of each constraint. Excel's optimization tool is Solver. After it is switched on under Add-Ins, it opens from the Data menu. Name the objective cell, choose maximize or minimize, name the cells that may change, and enter the constraints. A textile firm sells bedsheet S for Birr 360 and bedsheet L for Birr 800. In one hour the machines allow 2x + 8y ≤ 60 and 5x + 2y ≤ 60. Solver gives x = 10 and y = 5. Both limits are fully used, and the greatest hourly revenue is Birr 7600.

Key terms

Inequality
An inequality compares two expressions using <, >, ≤ or ≥ rather than an equals sign.
Solution set
The solution set is the collection of every value that makes an inequality true.
Half-plane
A half-plane is one of the two regions created when a straight line cuts the coordinate plane.
Strict inequality
A strict inequality uses < or > and does not include the points that lie on its boundary line.
Slack inequality
A slack inequality uses ≤ or ≥, so the points on its boundary are part of the solution.
Feasible region
The feasible region is the set of points that satisfy every constraint at the same time.
Corner point
A corner point is a meeting place of two or more boundary lines of a solution region.
Objective function
The objective function is the linear expression z = ax + by that a program tries to maximize or minimize.
Decision variable
A decision variable is a non-negative quantity the planner chooses, such as a number of items or a number of kilograms.
Optimal solution
An optimal solution is a feasible point at which the objective function reaches its best value.
Bounded region
A bounded region is a feasible region that can be enclosed by a line and does not extend without end.
Constraint
A constraint is a linear inequality that restricts the values the decision variables may take.

Worked example

Each day a patient needs at least 84 units of drug A and 120 units of drug B. One gram of substance M supplies 10 units of A, 8 units of B and 3 units of unwanted drug C. One gram of substance N supplies 2 units of A, 4 units of B and 1 unit of C. How many grams of M and of N minimize the intake of C?

  1. 1. Let x be the grams of M and y the grams of N. Minimize C = 3x + y, with x ≥ 0 and y ≥ 0.
  2. 2. Drug A gives 10x + 2y ≥ 84, which rearranges to y ≥ -5x + 42. Drug B gives 8x + 4y ≥ 120, which rearranges to y ≥ -2x + 30.
  3. 3. The binding corners are (0, 42) on the drug A line, (15, 0) on the drug B line, and (4, 22) where the two lines meet.
  4. 4. Substitute into C: (0, 42) gives 42, (4, 22) gives 3 × 4 + 22 = 34, and (15, 0) gives 45.
  5. 5. The least of these three results is 34, reached when x = 4 and y = 22.

Answer: Use 4 grams of M and 22 grams of N. The minimum intake of drug C is 34 units.

Check your understanding

  1. Alem's flour costs Birr 130 a packet and she has Birr 500. Which non-negative whole values of x satisfy 130x < 500?

    Show answer

    The solution set is {0, 1, 2, 3}. Three packets cost 390, which is under 500, but four packets cost 520, which is not.

  2. A taxi fare is Birr 1.75 plus Birr 0.75 per km, and Selam can spend at most Birr 10. What is the farthest she can ride?

    Show answer

    The inequality 0.75x + 1.75 ≤ 10 simplifies to x ≤ 11, so the farthest ride is 11 km.

  3. Why is (1, 12) left out of the region for y < 5x + 7 together with y ≥ -2x + 14?

    Show answer

    The lines cross at (1, 12), but the first inequality is strict, so a point on that boundary is not included.

  4. For Z = 300x + 100y the feasible corners are (0, 0), (20, 0), (10, 50) and (0, 60). Which corner maximizes profit, and what is that profit?

    Show answer

    The values are 0, 6000, 8000 and 6000. The maximum is Birr 8000 at (10, 50), that is 10 tables and 50 chairs.

  5. Semira's first four marks, each out of 100, are 87, 82, 81 and 80. An A needs an average of at least 85 on five examinations. What least mark does the fifth examination require?

    Show answer

    The four marks add to 330, and 5 × 85 = 425, so the fifth mark m must satisfy m ≥ 95.

Common mistakes

  • Flipping the inequality sign after multiplying or dividing by a positive number, or leaving the sign unchanged after multiplying or dividing by a negative number. Only a negative factor reverses the sign.
  • Drawing a solid boundary for a strict inequality, or keeping a crossing of two lines when one inequality does not include its line. A failed test point means the other half-plane should be shaded.
  • Looking for the best objective value at an interior point, or expecting one unique answer in every program. If an optimum exists it is at a corner, and an unbounded region may have none. When Z = 2x + 4y has minimum 20 at both (2, 4) and (10, 0), every point on the segment between them is optimal as well.

Frequently asked questions

Is this the Grade 12 Mathematics Unit 4 textbook chapter?
Yes. This page is Unit 4 (“Introduction to linear programming”) of the Ethiopian new-curriculum Grade 12 Mathematics student textbook (12ኛ ክፍል ሂሳብ የተማሪ መጽሐፍ). Abrari credits the issuing bureau or the Ministry of Education as publisher of the classroom book and is not affiliated with MoE, EAES, MoLS, or OCACC.
How do I practice Grade 12 Mathematics Unit 4?
Read the unit in the on-site reader, then open unofficial Mathematics practice on Abrari. Explanations do not require an account. Answers are unofficial.
How do I study Grade 12 Mathematics Unit 4?
Use the study-check questions on this page, then open unofficial practice when it is listed. Abrari does not offer a download.
Is Abrari official?
No — Abrari is an independent study aid, not affiliated with, endorsed by, or an official product of the Ethiopian Ministry of Education (MoE), EAES, MoLS, or OCACC.

All Mathematics EUEE topics

Other units in this book