Chapter 2 - Linear Programming
Chapter 2 - Linear Programming
Chapter 2 - Linear Programming
P ax by
What are Constraints are equalities or inequalities that describe
restrictions involved with the minimization or maximization of the
Constraints? objective function.
The simplest form of a linear inequality is presented as:
x≤y
In order to draw this inequality we need to identify at least two
points on the line.
Graphing The easiest way to do so is to replace the inequality with an equals
Inequalities sign:
x=y
Now we can randomly select values for x and then hence y to get
two co-ordinates on the line.
(2,2), (5,5) etc.
Graphing
Inequalities
Now we can identify the area that illustrates the original
inequality, x ≤ y, i.e. the area where x is less than or equal to y.
Graphing This area is on or above the line x=y.
Inequalities However it is common practise to shade the area that is excluded
by the inequality, hence we would shade beneath the line.
• All points on the line show
where x = y.
• All points above the line
Graphing show where x ≤ y.
linear Example
Step by step
problem 1. Creating equations and inequalities
x y 40
40 x
20 2 x y 40
The area on the graph that is common to both is called the feasible
region.
It can be shown that the objective function (profit) is a maximum at one of
the corner points of the feasible region.
Step 4. Correct From the diagram, the corner points are (0, 0), (0, 40), (20, 0).
interpretation
of
mathematical The value of P at each of these points is
calculations. (0, 0) : P 10(0) 8(0) 0
(0, 40) : P 10(0) 8(40) 320
(20, 0) : P 10(20) 8(0) 200
4
3 Feasible Region
The objective 2
A
function 1
C B
0
-1 0 1 2 3 4 5 6 7 8 9 10
Minimising the
Objective
Function 20
D
A Feasible
B Region
C
0
0 1 2 3 4 5
-20
Next we need to identify the points that make up the feasible region, labelled A,
B, C and D on the graph.
Point A is the intersection of the second inequality (-2x + 5y ≤ 10) and x ≥ 0, hence y ≤
2. The co-ordinates are therefore (0,2).
Point C is the intersection of the first inequality (4x + y ≤ 8) and y ≥ 0, hence x ≤ 2. The
co-ordinates are therefore (2,0).
Minimising the Point D is the intersection of x ≥ 0 and y ≥ 0. The co-ordinates are therefore (0,0).
Point B is the intersection of the first inequality and the second inequality which can
Objective be solved using simultaneous equations. The co-ordinates are (15/11,28/11).
We now need to evaluate the objective function at each of these co-ordinates A,
Function B, C and D:
A - (0,2): -5(0) + 2 =2
B - (15/11,28/11): - 5(15/11) + 28/11 = -75/11 + 28/11 = -47/11 = -4.27
C - (2,0): -5(2) + 0 = -10
D - (0,0): -5(0) + 0 = 0
The objective function is therefore minimised when x=2 and y =0 (point C)
Sometimes there are no solutions to a simultaneous linear
equation problem.
Unbounded e.g. when the two lines are parallel, solving for the intersection point
yields no solution.
feasible Hence when we draw the linear equations they will present
regions themselves as unbounded areas which do not have a complete set
of intersection points to define the feasible area.
This is best illustrated with an example.
Example
Maximise 12x – 3y subject to:
Unbounded 2x + y ≥ 14
3x – 4y ≥ 12
feasible x≥0
regions: y≥0
Now we need to graph each of the constraints and identify the feasible
region – see next slide.
Metal Constraint: 12S + 6D ≤ 1824
S=0, D= 304 and D = 0, S= 152
(3) – (1):
48D ≤ 2064 and so D ≤ 43 and S ≤ 130.5
This tells us that the objective function is maximised when the firm
makes 130.5 (rounded to 130) Standard models and 43 Deluxe models
(i.e. point B).