MATHEMATICS Learner’s Study and Revision Guide for Grade 12 Linear Programming
Revision Notes, Exercises and Solution Hints by
Roseinnes Phahle
Examination Questions by the Department of Basic Education
Preparation for the Mathematics examination brought to you by Kagiso Trust
Contents Unit 12 The language of linear programming problems
3
Feasuble region
4
The objective function/search lime
5
A tip on working out the mathematical expressions for the constraints
6
Exercise 12.1
7
Answer to Exercise 12.1
8
Examination questions with solution hints and answers
10
More questions from past examination papers
17
Answers
26
How to use this revision and study guide 1. Study the revision notes given at the beginning. The notes are interactive in that in some parts you are required to make a response based on your prior learning of the topic from your teacher in class or from a textbook. Furthermore, the notes cover all the Mathematics from Grade 10 to Grade 12. 2. “Warm-up” exercises follow the notes. Some exercises carry solution HINTS in the answer section. Do not read the answer or hints until you have tried to work out a question and are having difficulty. 3. The notes and exercises are followed by questions from past examination papers. 4. The examination questions are followed by blank spaces or boxes inside a table. Do the working out of the question inside these spaces or boxes. 5. Alongside the blank boxes are HINTS in case you have difficulty solving a part of the question. Do not read the hints until you have tried to work out the question and are having difficulty. 6. What follows next are more questions taken from past examination papers. 7. Answers to the extra past examination questions appear at the end. Some answers carry HINTS and notes to enrich your knowledge. 8. Finally, don’t be a loner. Work through this guide in a team with your classmates.
Linear Programming
REVISION UNIT 12: LINEAR PROGRAMMING How to solve Linear Programming problems:
A. The problems to be encountered will involve unknown quantities of two products. Let x units and y units be the quantities of each product respectively. (Or, instead of x and y, use whatever symbols are specified in the problem). Make sure you understand the statement of the problem: pay attention to the constraints on the quantities of each product taken individually and then taken together. This is simply a matter of being able to read and understand a passage and translating verbal statements such as “at most” into mathematical symbols. “At most” translates into the symbol "≤" .
B. THE LANGUAGE OF LINEAR PROGRAMMING Express the constraints in terms of inequalities. For example: •
x ≤ …. (means that x is at most or not more than a quantity specified in the problem);
•
x< …. (means that x is less than a specified quantity in the problem);
•
x ≥ …. (means that x is at least equal to a specified quantity in the problem);
•
x> …. (means that is greater than a specified quantity in the problem);
•
2x+y ≤ …. (means that twice the quantity x and the quantity y are at most equal to a specified quantity in the problem);
•
•
x ≥ 2 (means that at least twice the number x units are produced for the number y units); y
y 1 ≥ (means that at least half the number of y units are produced for the number of x x 2 units)
Pay particular attention to the last two cases above when it is advisable to first work with ratio and then thereafter convert them to: •
x ≥ 2y
•
y≥
1 x 2 3
Preparation for the Mathematics examination brought to you by Kagiso Trust
C. FEASIBLE REGION First, convert the inequalities into equations and then draw the straight line graphs for these equations. The rule for constructing a feasible region is that: •
If y ≤ or y < {right hand side of the inequality}, then solution region to the inequality is below the line.
•
But if y ≥ or y > {right hand side of the inequality}, then the solution region to the inequality is above the line.
Example: Let us take as an example the constraint 2 x + 3 y ≤ 6 and construct its solution region. We start by first converting the inequality into an equation 2 x + 3 y = 6 and then plotting the graph of this straight line equation. A quick and easy way to plot any straight line is to find the x and y intercepts. That is the points where the line cuts the axes. For the x intercept put y = 0 so that 2 x = 6 giving x = 3 and the intercept at (3; 0). For the y intercept put x = 0 so that 3 y = 6 giving y = 2 and the intercept at (0; 2). Mark these intercepts on the axes and join them by a straight line as shown in the diagram below: y
3
X
2
1
1
2
X 3
x
Linear Programming
Now to find the solution region, make y the subject of the inequality. Thus
2x + 3y ≤ 6 3 y ≤ −2 x + 6 2 y≤− x+2 3 Because we have y ≤ , the solution of the inequality is the region below the line. We shade this region as also shown in the diagram. The above procedure is followed for all the other constraints. The feasible region will then be shown on the graph by the region that is common to all the constraints.
D. OBJECTIVE FUNCTION/SEARCH LINE: Substitute the corner coordinates of the feasible region into the objective function to solve for what is required (maximum or minimum). The search line is the graph of a line that has the same slope as the objective function. Moving this line parallel to itself will identify a corner of the feasible region that gives a solution to the problem. Constructing the search line Suppose the objective function is
P = 500 x + 600 y Then writing this equation in the form of y = mx + c we have
600 y = −500 x + P y=−
500 P x+ 600 600
5 P y =− x+ 6 600 All that is of interest in drawing the searching line is the gradient of this line which is
m=−
5 6
5
Preparation for the Mathematics examination brought to you by Kagiso Trust
The search line is given by any of the infinite number of lines with gradient = −
5 . 6
To show the search line, all we need to do is to draw a line with this gradient. Moving this line parallel to itself, the coordinates for a maximum of the objective function will be given by the coordinates of the corner (vertex) of the feasible region furthest from the origin. In cost problems, the solution may be a given by a minimum value of the objective function. In this case the coordinates for a minimum of the objective function will be given by the coordinates of the point of the corner of the feasible region nearest to the origin.
E. A TIP ON WORKING OUT MATHEMATICAL EXPRESSIONS FOR THE CONSTRAINTS Most students find it difficult to convert “word” problems into mathematical expressions and so are put off answering linear programming problems because these are “word” problems. Linear programming at Grade 12 is first and foremost about translating ordinary language into mathematical symbols. To help with this translation this chapter began by giving you a list of symbols and their meanings used to express constraints. Have another look at that list. To help you even further in turning the words of linear programming problems into constraints expressed in terms of mathematical symbols, setting up a table is highly recommended. The table will be of the form:
Variable No 1 Variable No 2
Quantities
x y Constraints
Other information
Constraints
Other informatiom
Constraints
Cost or Profit Function
C or P =
Constraints Constraints
It is a table like this you must draw and fill in, as will be illustrated in the example bel How you must go about solving a Linear programming problem is now demonstrated below. Example: Mme Mamabolo makes two types of shirts. One is an Afro shirt that requires
1 an hour to 2
make. The other is a Madiba shirt that requires one hour to make. The time available for making the shirts is not more than 8 hours a day. To keep her business going Mme Mamabolo needs to produce at least one and not more than 6 Afro shirts a day; and at most 6 and not less than 2 Madiba shirts a day. However, market demand is for at least 3 Madiba shirts and one Afro shirt a day. If the Afro shirt retails at R300 and the Madiba shirt at R800, how many of each should be produced in a day in order to maximize profit.
Linear Programming
Solution: Pay special attention to the phrases that are highlighted in the statement of the problem above. These correspond to the list of symbols and their meanings given at the beginning of the chapter. First step: If the variables are not already represented by letters in the statement of the problem then do so, for example: Let x be the number of Afro shirts produced in a day. Let y be the number of Madiba shirts produced in a day. Second step: Writing down the constraints. To help you write down the constraints, read the question and set up a table as follows: Afro shirt
Number of cases
Production time
Profit
x
300 x
1≤ x ≤ 6
y
1 x 2 1y
2≤ y≤6
y : x ≤ 3 :1
≤8
800 y P = 300 x + 800 y
Madiba shirt
Make sure by reading the statement of the problem that you understand how this table was set up. Always write down the implicit constraints which in this problem are x; y ∈ Ν . Why are they not x; y ∈ Ν 0 ? Now it is a simple matter to deduce all the constraints from the table:
x ≥1 x≤6 y≥2
y≤6 The ratio y : x ≤ 3 : 1 must be converted to fractional form:
y 3 ≤ or y ≤ 3 x x 1
1 x+ y≤8 2 Third step: Profit function P = 300 x + 800 y EXERCISE 12.1: Sketch the feasible region of the above problem and use a search line to determine the maximum profit. 7
Preparation for the Mathematics examination brought to you by Kagiso Trust
SOLUTION TO EXERCISE 12.1
12.1 y 14 13
y=3x
12 11 10
x=1
x=6
9 8 7
C
6
→
5 4 3
↓
2
y=6
←
E
←
→
B
D
Search Line
↑
A
F
y=2 x+2y=16
1
x -1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Search Line
The arrows indicate the feasible region. (a) Finding the maximum profit using a search line What is shown in the diagram are two dotted lines with gradient = −
Each of these lines and for that matter any line with a gradient = −
3 All you need to do is to show one such line with gradient = − . 8 The gradient of the search line is derived from the profit function:
or
P = 300 x + 800 y 300 x + 800 y = P 800 y = −300 x + P
300 3 =− . 800 8
3 represents the search line. 8
Linear Programming
y=−
300 P x+ (compare with y = mx + c ) 800 800
which is a straight line equation but all that interests us is its gradient m = −
300 3 =− . 800 8
Having drawn the feasible region, you must now use a ruler moving it parallel to the search line. The coordinate of the last corner of the feasible region reached by the ruler will give the maximum profit. It is a corner that is furthest away from the origin. Its coordinates are:
(x; y ) = (4; 6) Substituting into the profit function gives the maximum profit: P = 300 × 4 + 800 × 6 P = 1200 + 4800 P = R6000
NOTE: In profit problems such as this one our interest is in finding the quantities that will yield a maximum profit. But in cost prolems our interest may be in quantities that will minimize cost. In this case, the coordinates nearest the origin will give the solution, or the coordinates of the corner first touched by the search line. (b) Finding the maximum profit by inspecting the coordinates of the corners of the feasible region Coordinates (x; y ) A(1; 2) B(1; 3) C(2; 6) D(4; 6) E(6; 5) F(6; 2)
Profit function = 300 x + 800 y 300 + 1600 300 + 2400 600 + 4800 1200 + 4800 1800 + 4000 1800+1600
Profit 1900 2700 5400 6000 5800 3400
From the table, the maximum profit is clearly R6000 confirming the previous answer found by means of the search line.
9
Preparation for the Mathematics examination brought to you by Kagiso Trust
PAPER 1 QUESTION 13
PAPER 1 QUESTION 13
DoE/ADDITIONAL EXEMPLAR 2008
DoE/ADDITIONAL EXEMPLAR 2008
Number Work out the solutions in the boxes below 13.1 Apart from the table shown below, no hints are given for this question. Linear Programming problems are a matter of understanding language and translating the words in the problems into inequalities called constraints and an equation called the objective or cost function. Simply read the question carefully and complete the table below.
What are the constraints?
Linear Programming
PAPER 1 QUESTION 13
DoE/ADDITIONAL EXEMPLAR 2008
Number Work out the solutions in the boxes below Graph the constraints in the diagram below. 13.2
13.3
Write down the cost equation:
13.4
Make y the subject of the cost function.
The gradient of the cost function is what? Draw the search line by drawing any line that has the same gradient as the cost function and, by inspection, use it to determine the number of each aircraft to be hired in order to minimize cost. 13.5
Answer: 6 Silver Jets and 8 Golden Flyers Answer: Minimum cost = R624 000
11
Preparation for the Mathematics examination brought to you by Kagiso Trust
PAPER 1 QUESTION 11
DoE/NOVEMBER 2008
Linear Programming
PAPER 1 QUESTION 11
DoE/NOVEMBER 2008
Number Work out the solutions in the boxes below 11.1 No hints are given for this question. Linear Programming problems are a matter of understanding language and translating the words in the problems into inequalities called constraints and an equation called the objective or cost function. Simply read the question carefully and use a table to help you write down the constraints. Set up your table in this space.
What are the constraints?
11.2 & 11.3
DIAGRAM SHEET
13
Preparation for the Mathematics examination brought to you by Kagiso Trust
Number Work out the solutions in the boxes below 11.4 Write down the profit equation: 11.5
Make y the subject of the profit function.
So what is the gradient of this new profit function? Draw any line that has the same gradient as the profit function and show this line on the graph above. This will be the search line. Answer: Maximum at (20; 75) 11.6
Make y the subject of the new profit function.
So what is the gradient of this new profit function?
Compare it with the gradient of the original profit function in 11.4.
Or draw its search line on your diagram in order to find a reason to the conclusion you make. What do you conclude in terms of the optimal solution?
Linear Programming
PAPER 1 QUESTION 9
NORTH WEST EDUCATION DEPARTMENT/PREPARATORY EXAMINATION 2008
The figure shows the graph of a system of inequalities depicting the feasible set for maximum profit in a particular sales department of a firm selling x units of refrigerator X and y units of refrigerator Y. y
25
20
15
10
The feasible region is enclosed within these lines
5
x 5
9.1
10
15
20
25
35
Write down the inequalities in terms of x and y that are simultaneously satisfied by the solution set (the innermost shaded area in the figure).
9.2
30
(6)
The objective function P = 200 x + 400 y , where P is the profit in rands, must be maximized. 9.2.1
Explain a technique you would use to maximize P .
9.2.2
Use the graph and the technique in 9.2.1 to determine the corresponding values of x and y such that P is a maximum. (4)
9.2.3
Hence or otherwise determine the maximum profit.
15
(2)
(2) [14]
Preparation for the Mathematics examination brought to you by Kagiso Trust
PAPER 1 QUESTION 9
NORTH WEST EDUCATION DEPARTMENT/PREPARATORY EXAMINATION 2008
Number Hints and answers 9.1 Find the equations of all the straight lines shown in the figure.
Work out the solutions in the boxes below Put you answers in this box:
Convert these equations into constraints. Remember that ≤ is the constraint for a region under a line; and ≥ is the constraint for a region above a line. 9.2.1
Write the equation of the profit function in the form y = Answer: y=
Your answer must explain how you would use the gradient of the profit function. Explanation:
9.2.2
Carry out what you have explained. There is more than one solution. Explain why?
9.2.3
Substitute any of the results you found in 9.2.2 into the profit function. Answer:
Explain here why there is more than one solution:
Linear Programming
MORE QUESTIONS FROM PAST EXAMINATION PAPERS Exemplar 2008
17
Preparation for the Mathematics examination brought to you by Kagiso Trust
Preparatory Examination 2008
Linear Programming
DIAGRAM SHEET
19
Preparation for the Mathematics examination brought to you by Kagiso Trust
November 2008
Linear Programming
Feb â&#x20AC;&#x201C; March 2009
21
Preparation for the Mathematics examination brought to you by Kagiso Trust
November 2009 (Unused paper)
DIAGRAM SHEET
Linear Programming
November 2009(1)
23
Preparation for the Mathematics examination brought to you by Kagiso Trust
DIAGRAM SHEET 1
Feb â&#x20AC;&#x201C; March 2010
Linear Programming
DIAGRAM SHEET 3
25
Preparation for the Mathematics examination brought to you by Kagiso Trust
ANSWERS Exemplar 2008 12.1 5 x + 2 y ≤ 4800
y≥
3x 2
12.2 & 12.3 Sketch:
13.3 13.4
C = 40000 x + 48000 y
13.5
C = R 624000
Minimum cost: 6 Silver Jets 8 Golden Flyers
Preparatory Examination 2008 12.1 x < 150
y < 120 x > 40 y > 10 x + y ≤ 200 x, y ∈ Ν o
12.4 12.5 12.6
P = 12000 x + 4000 y x = 600 and y = 900 P = R10 800 000
Additional Exemplar 2008 13.1 x + y ≤ 16
120 x + 60 y ≥ 1200 2000 x + 3000 y ≥ 3600 x, y ∈ Ν o 13.2
Sketch:
12.2
Sketch:
12.3
Elegance: 80 Classic: 120
12.4 12.5
P = 60 x + 100 y P = R16800
November 2008 11.1 10 x + 8 y ≤ 800
3 x + 4 y ≤ 360 y ≥ 60 x, y ∈ Ν o 11.2 & 11.3 Sketch:
Linear Programming
11.4 11.5
P = 200 x + 250 y
11.6
m=−
Maximum at (20; 75)
3 4
Thus the profit function has the same gradient as the constraint 3 x + 4 y ≤ 360 . This means that (20; 75) is not the only point that results in an optimal solution. Feb/March 2009 14.1 x ≥ 200
x + y ≤ 600 50 x + 100 y ≤ 4500
14.2 & 14.3 Sketch:
12.4 12.5 12.6
P = 3000 x + 1800 y Maximum is at (4; 4) Profit = R174000 per hectare
November 2009(1) 13.1 x + 3 y ≤ 18
x+ y≤8 2 x + y ≤ 14 x, y ≥ 0 13.2
P = 30 x + 40 y
13.3 Sketch: 14.4 P = 30 x + 40 y 14.5 Maximum is at (300; 300) November 2009 (Unused paper) 12.1 x + y ≥ 7
2 x + y ≤ 12 x + 2 y ≤ 12 x, y ≥ 0 12.2 & 12.3 Sketch (see top of opposite column):
13.4
27
− 2 < m < −1
Preparation for the Mathematics examination brought to you by Kagiso Trust
Feb/March 2010 13.1 2 x + y ≤ 16
x + 2 y ≤ 18 x + y ≤ 10 13.2 Sketch:
13.3
P = 60 x + 80 y
13.4 Maximum profit at (2; 8) 13.5 Yes, there will be a difference because the gradient of the new profit function is not the same as the gradient of the original profit function Maximum profit for the new profit function is at (6; 4).