HsLinear Programming - Mathematics Form 4 Notes-1380
HsLinear Programming - Mathematics Form 4 Notes-1380
Introduction
Forming Linear Inequalities
Solution by Graphing
Optimization
Past KCSE Questions on the Topic.
Introduction
Linear programming is the process of taking various linear inequalities relating to some situation, and finding
the "best" value obtainable under those conditions.
A typical example would be taking the limitations of materials and labor, and then determining the "best"
production levels for maximal profits under those conditions.
In "real life", linear programming is part of a very important area of mathematics called "optimization
techniques".
This field of study are used every day in the organization and allocation of resources.
These "real life" systems can have dozens or hundreds of variables, or more. In algebra, though, you'll only
work with the simple (and graph able) two-variable linear case.
The general process for solving linear-programming exercises is to graph the inequalities (called the
"constraints") to form a walled-off area on the x,y-plane (called the "feasibility region").
Then you figure out the coordinates of the corners of this feasibility region (that is, you find the intersection
points of the various pairs of lines), and test these corner points in the formula (called the "optimization
equation") for which you're trying to find the highest or lowest value.
Example
Suppose a factory want to produce two types of hand calculators, type A and type B. The cost, the labor time and
the profit for every calculator is summarized in the following table:
Suppose the available money and labors are ksh 1 8000 and 1 600 hours. What should the production schedule be
to ensure maximum profit?
Solution
Suppose x is the number of type A hand calculators and x is the number of type B hand calculators and y to be
1 2
the cost. Then, we want to maximize p = 10x + 8x subject to
1 2
30x+20y ≤18000
x+4y≤1600
x≥0, y≥0
where p is the total profit.
Solution
The age of Esha’s sister is x +5 years.
Therefore, the sum of their age is;
x + (x + 5) years
Thus;
2x +5 < 36
2x < 31
X > 15.5
X > 0 ( age is always positive)
Solution by Graphing
Solutions to inequalities formed to represent given conditions can be determined by graphing the inequalities and
then reading off the appropriate values ( possible values)
Example
A student wishes to purchase not less than 1 0 items comprising books and pens only. A book costs sh.20 and a pen
sh.1 0.if the student has sh.220 to spend, form all possible inequalities from the given conditions and graph them
clearly, indicating the possible solutions.
Solution
Let the number of books be x and the number of pens then, the inequalities are;
All the points in the unshaded region represent possible solutions. A point with co-ordinates ( x ,y) represents x
books and y pens. For example, the point (3, 1 0 ) means 3 books and 1 0 pens could be bought by the students.
Optimization
The determination of the minimum or the maximum value of the objective function ax + by is known as
optimization.
Objective function is an equation to be minimized or maximized
Example
A contractor intends to transport 1 000 bags of cement using a lorry and a pick up. The lorry can carry a maximum
of 80 bags while a pick up can carry a maximum of 20 bags. The pick up must make more than twice the number of
trips the lorry makes and the total number of trip to be less than 30.The cost per trip for the lorry is ksh 2000, per
bag and ksh 900 for the pick up.Find the minimum expenditure.
Solution
If we let x and y be the number of trips made by the lorry and the pick up respectively. Then the conditions are
given by the following inequalities;
i. x + y < 30
ii. 80x + 20y ≥ 1000, which simplifies as 4x + y ≥ 50
iii. y > 2x
iv. x < 0
The total cost of transporting the cement is given by sh 2000x + 900y.This is called the objective function.
Note;
Co-ordinates stands for the number of trips. For example (7, 22) means 7 trips by the lorry and 22 trips by the
pickup. Therefore the possible amount of money in shillings to be spent by the contractor can be calculated as
follows.
We note that from the calculation that the least amount the contractor would spend is sh.32200.This is when the
lorry makes 8 trips and the pick- up 1 8 trips. When possibilities are many the method of determining the solution
by calculation becomestedious.
The alternative method involves drawing the graph of the function we wish to maximize or minimize, the objective
function. This function is usually of the form ax +by , where a and b ar constants.
For this ,we use the graph above which is a convenient point (x , y) to give the value of x preferably close to the
region of the possibilities. For example the point ( 5, 1 0) was chosen to give an initial value of thus ,2000x + 900y
= 1 9000.we now draw the line 2000x + 900y=1 9000.such a line is referred to us a
search line.
Using a ruler and a set square, slide the set square keeping one edge parallel to l1 until the edge strikes the
feasible point nearest 1 ( see the dotted line l2) From the graph this point is (8,1 8), which gives the minimum
expenditure as we have seen earlier.The feasible point furthest from the line l1 gives the
maximum value of the objective function.
The determination of the minimum or the maximum value of the objective function ax + by is known
as optimization.
Note;
The process of solving linear equations are as follows
Example
A company produces gadgets which come in two colors: red and blue. The red gadgets are made of steel and sell
for ksh 30 each. The blue gadgets are made of wood and sell for ksh 50 each. A unit of the red gadget requires 1
kilogram of steel, and 3 hours of labor to process. A unit of the blue gadget, on the other hand, requires 2 board
meters of wood and 2 hours of labor to manufacture. There are 180 hours of labor, 120 board meters of wood, and
50 kilograms of steel available. How many units of the red and blue gadgets must the company produce (and sell) if
it wants to maximize revenue?
Solution
The Graphical Approach
Step 1 . Define all decision variables.
Let: x = number of red gadgets to produce (and sell)
1
x = number of blue gadgets to produce (and sell)
2
Note;
The area under the line marked blue is the needed area or area of feasible solutions.
We therefore shade the unwanted region out the trapezium marked blue
Optimization
List all corners (identify the corresponding coordinates), and pick the best in terms of the resulting value of the
objective function.
i. x1 = 0 x2 = 0 R = 30 (0) + 50 (0) = 0
ii. x1 = 50 x2 = 0 R = 30 (50) + 50 (0) = 1 500
iii. x1 = 0 x2 = 60 R = 30 (0) + 50 (60) = 3000
iv. x1 = 20 x2 = 60 R = 30 (20) + 50 (60) = 3600 (the optimal solution)
v. x1 = 50 x2 = 1 5 R = 30 (50) + 50 (15) = 2250
Thank you
© 2024 EasyElimu Learning Innovations
Call 9am - 5pm: +254703165909, Whatsapp 7am to 11pm: +254700755976 for more