Topic 8: Linear Programming – Basic Mathematics Form Four
LINEAR PROGRAMMING
- It gives the best way of utilizing the scarce resources available.
- It is so called because it only involves equations and inequalities which are linear.
Simultaneous Equation.
One of the methods used in solving linear simultaneous equations is a graphical method. Two linear simultaneous equations in two unknowns can be graphically solved by passing through the following procedures.
-
Draw the two lines which represent the two equations on the xy – plane this is done by deter mining at least two points through which each line passes, the intercept are commonly used
- Determine the point of intersection of the two lines. This point of intersection is the solution to the system of equations.
- If two straight lines are not parallel then they meet at only one point:
- In case the lines do not meet, there is no solution to the corresponding system of simultaneous equations.
Example 1


Example 2



Solving Simultaneous Equations Graphically
Solve simultaneous equations graphically
Example 3
Solve the following simultaneous equations graphically and check your solution by a non-graphical method:


Example 4



Exercise 1

Ali paid 34 shillings for 10 oranges and 35 mangoes. Moshi went to the same market and paid 24 shillings for 16 oranges and 18 mangoes. What was the price for a mango and for an orange?
Inequalities
Forming Linear Inequalities in Two Unknowns from Word Problems
- Normally any straight line drawn on xy – plane separates it into two disjoint sets. These sets are called half – planes
- Consider the equation y = 5 drawn on the xy plane as shown below.

From the figure above, all points above the line, that is all points in the half plane A which is above the line satisfy the relation y>5 and those lying in the half plane B which is below the given line, satisfy the relation y< 5.


Shading of Regions
- In linear programming usually the region of interest is left clear that is we shade unwanted region(s).
When shading the half planes we consider the inequalities as the equations but dotted lines are used for the relations with > or < signs and normal lines are used for those with ≥ or ≤ signs.
Consider the inequalities x>0, y>0 and 2x + 3y >12 represented on the xy-plane In this case we draw the line x=0, y= 0 and 2x+3y=12 but the point about the inequality signs for each equation must be considered.

From the figure above, the clear region satisfy all the inequalitiesx>0, y>0 and 2x + 3y >12, these three lines are the boundaries of the region.
The Solution Set of Simultaneous Linear Inequalities Graphically
Example 5

Feasible Region
Example 6
Indicate the feasible region for the inequalities 2x+3y ≥ 12 and y-x ≤ 2.

Determine the solution set of the simultaneous inequalities y + x ≥3 and x-2y ≤ 9.

Example 7
Now
the line 2x + 3y ≤30 is the line passing through (0, 10) and (15,0) and
the line x≥2y or x – 2y ≥ 0 is the line which passes through (0,0) and
(2,1).

Exercise 2
-
Drawthe graph of the equation 2x – y = 7 and show which half plane isrepresented by 2x – y >7 and the one represented by 2x – y <7
- On the same coordinate axes draw the graphs of the following inequalities: x + 2y ≤ 2, y-x ≤ 1 and y ≥ 0.
- Draw the graphs of y < 2x -1 and y > 3 – x on the same axes and indicate the feasible region.
- A post office has to transport 870 parcels using a lorry,
The Objective Function
An Objective Function from Word Problems
Form an objective function from word problems
Any linear programming problem has the following:
- Objective
- Alternative course (s) of action which will achieve the objective.
- The available resources which are in limited supply.
-
Theobjective and its limitations should be able to be expressed as eitherlinear mathematical equations or linear inequalities. Therefore linearprogramming aims at finding the best use of the available resources.
Programmingis the use of mathematical techniques in order to get the best possible solution to the problem
Steps to be followed in solving linear programming problems;
- Read carefully the problem, if possible do it several times.
- Use the variables like x and y to represent the resources of interest.
-
Summarizethe problem by putting it in mathematical form using the variables letin step (b) above. In this step you need to formulate the objectivefunction and inequalities or constraints.
- Plot the constraints on a graph
- From your graph, identify the corner points.
- Use the objective function to test each corner point to find out which one gives the optimum solution.
- Make conclusion after finding or identifying the optimum point among the corner points.
Maximum and Minimum Values
Locate corner points on the feasible region
A student has 1200 shillings to spend on exercise books. At the school shop an exercise book costs 80shillings, and at a stationery store it costs 120 shillings.


Therefore the student will buy 6 exercise books from each site.
Example 9
A nutritionist prescribes a special diet for patients containing the following number of Units of vitamins A and B per kg, of two types of food f1 and f2

If the daily minimum in take required is 120 Units of A and 70 units of B, what is the least total mass of food a patient must have so as to have enough of these vitamins?
Let x be the number of kg(s) of F1 that patient gets daily and y be the number of kg(s) of F2 to be taken by the patient daily.
Objective function: F (x, y) = (x + y) minimum

Therefore the least total mass of food the patient must have is 6.8 kilograms
Example 10
Find the greatest possible land he can sow if he is prepared to use 25,000 shillings.
Let x be the number of hectares of coffee to be planted and y be the number of hectares of potatoes to be planted.

Using the objective function f (x, y) = (x + y) maximum,
Example 11
A technical school is planning to buy two types of machines. A lather machine needs 3m2 of floor space and a drill machine needs 2m2 of floor space. The total space available is 30m2.
The cost of one lather machine is 25,000 shillings and that of drill machine is 30,000 shillings. The school can spend not more than 300,000 shillings, what is the greatest number of machines the school can buy?
y ≥ 0…………………… ………….(iv)

Since the incomplete machine can’t work, then B = (8, 3) or (7, 4).That is approximating values of x and y to the possible integers without affecting the given inequalities or conditions. Now by using the objective function,
Therefore the greatest number of machines that can be bought by the school is 11 machines.
Exercise 3
1. Show on a graph the feasible region for which the restrictions are: y ≤ 2x, x≥ 6, y≥2 and 2x + 3y ≤30 From the graph at which point does:
- y – x take a maximum value?
- x + y take a maximum value?
- y – x take a maximum value?
3. How many corner points does the feasible region restricted by the inequalities? x≥0, y ≥ 0, 3x + 2y ≤ 18 and 2x + 4y ≤16 have? Which corner point maximizes the objective function f (x, y) = 2x + 5y?
Related Posts:
- Topic 1: Coordinate Geometry – Basic Mathematics Form Four
- Topic 2: Area and Perimeter – Basic Mathematics Form Four
- Topic 3: Three Dimensional Figures – Basic Mathematics Form Four
- Topic 4: Probability – Basic Mathematics Form Four
- Topic 5: Trigonometry – Basic Mathematics Form Four
- Topic 6: Vectors – Basic Mathematics Form Four
- Topic 7: Matrices and Transformation – Basic Mathematics Form Four