Professional Documents
Culture Documents
Topic 3:
Linear Programming
1
Subtopics
Linear Programming Problems
2
Introduction
Linear Programming (LP) describes the
graphical and mathematical procedures that
seek the optimum allocation of scarce or limited
resources to competing products or activities.
The term linear implies that the elements in a
situation are so related that they appear as
straight lines when graphed.
The word programming refers to forming a
mathematical model (or set of inequalities)
which defines the particular situation.
Linear Programming Problem
All linear programming (LP) problems have
three common components:
1. A linear objective function;
2. A set of linear structural constraints;
3. A set of non-negativity variables.
Linear Programming Problem
1. Linear objective function
A mathematical statement of what one wishes
to achieve. In business, this function is usually
maximization of profit, minimization of costs
or some other measurable objective.
Linearity implies that the parameters of the
objective function are fixed, for example, a
constant cost per unit or constant contribution
to profit per unit .
Linear Programming Problem
2. Linear structural constraints
The physical limitations on the objective
function represented by a system of linear
inequalities. They could be limitations on the
availability of the resources such as materials,
labour, funds and time or output that imposed
on the solutions.
Linearity means that all these constraints have
fixed coefficients and can be represented by
straight lines on a graph.
Linear Programming Problem
3. Non-negativity variables
The non-negativity variables limit the
solution to positive and meaningful answers.
Formulate of a LP Problem
Three steps to formulate a LP Problem are:
Step 4 : Method I
By substituting x =200,3(600)
P 4(200) y = 600 into the objective function,
we obtain:
2600
x y 6 4x y 8 x 2y 8 x 5 y 10
x 0, y 6 x 0, y 8 x 0, y 4 x 0, y 2
y 0, x 6 y 0, x 2 y 0, x 8 y 0, x 10
Graphical Solution
y
10
9
8
7 4x + y = 8
6
5 x+y=6
4
3
2 x + 2y = 8
1 x + 5y = 10 x
0
0 2 4 6 8 10
Graphical Solution
Step 2: Identify the feasible region.
y
10
9
8 Feasible
7 4x + y = 8 Region
6
5 x+y=6
4
3
2 x + 2y = 8
1 x + 5y = 10
x
0
0 2 4 6 8 10
Graphical Solution
Step 3: Identifying the optimal point and optimal solution.
Method I:
1. Calculating the contribution at all the corner points.
2. For minimisation problems:
- Optimal point is the point that gives the least value.
Graphical Solution
Step 3: Method I
y Point C = 5x + 7y
10
9 A = (0,8) 56
8 A Feasible
7 4x + y = 8 Region B = (0.6,5.4) 40.8
6 C = (4,2) 34
B
5 x+y=6
4 D = (6.6,0.6) 37.2
3 E = (10,0) 50
C x + 2y = 8
2
1 D x + 5y = 10
E x
0
0 2 4 6 8 10
Optimal point = Point C
= (4,2)
Optimal solution = RM 34
Graphical Solution
Step 3:
Method II :
1. Assigning different values to the objective (cost) function
C = 5x + 7y , we obtain a family of parallel lines called
iso-cost lines.
Let C = 35
-The objective function becomes the line 5x + 7y = 35.
-Sketch the line 5x + 7y = 35 onto the graph.
2. Use iso-cost lines to find the nearest-from-the origin line, C
of the same slope as the line drawn which still cuts one of the
corner points of the feasible region; the nearest point at
which it cuts being the optimal point.
Graphical Solution
y
10
9
8 A Feasible
7 4x + y = 8 Region
6 B
5 x+y=6
4
5x + 7y = 35
3
2
C
x + 2y = 8
1 D x + 5y = 10
E x
0
0 2 4 6 8 10
Graphical Solution
Use iso-cost lines, the optimal point is found at C (4, 2).
By substituting optimal solution x = 4 and x = 2 to
objective function:
Optimal solution, C 5(4) 7(2)
RM 34
Graphical Solution
Step 4 : Conclusion
x=4, y=2
Example 3.4
Using a graphical method, find the maximum
value of the function P = 15x + 10y subject to the
following inequalities :
2 x + y 10
-2x + y 2
x≥0,y≥0
Example 3.5
A factory uses three machines to manufacture two types of
products, A and B. The following table shows the capacities and
time taken by each machine to produce one unit of product A
and one unit of product B.
Product A Product B Capacity
(hours) (hours) (hours)
Machine 1 1 2 42
Machine 2 5 4 120
Machine 3 3 1 75
The profit obtained form each unit of A and B are RM8 and
RM10 respectively. Use the graphical method to determine the
optimum production of A and B to obtain the maximum profit.
Example 3.5 (Solution)
Let x = the number of product A to be produced
y = the number of product B to be produced
P = Profit (RM)
Maximize P 8 x 10 y
subject to x 2 y 42
5 x 4 y 120
3x y 75
x 0, y 0
Example 3.6
A tyre factory needs to send at least 2000 tyres to
two warehouses. Each warehouse can store a
maximum of 1500 tyres. At present, the first
warehouse has 300 tyres in its store while the
second warehouse has 100 tyres. The
transportation cost per tyre from the factory to
the first and second warehouse is RM 4 and RM
8 respectively. How many tyres should be sent
to each warehouse so that the total transportation
cost is minimised?
Example 3.6 (Solution)
Let
x = Number of tyres to be sent to first warehouse
y = Number of tyres to be sent to second warehouse
C = Transportation cost (RM)
Minimise C 4 x 8 y
subject to x y 2000
x 1200
y 1400
x 0, y 0
Example 3.7
A trader wants to make two types of cakes for sale. The
following table shows the amounts of two of the
ingredients required to make each cake and the profit
for each cake. The trader has a supply of 12 kg of
flour,10 kg of sugar every day.
Type of cake
Ingredients Cake A Cake B
Flour (g) 400 500
Sugar (g) 200 500
Profits ( RM ) 3 5
Example 3.7
(a)If x and y respectively denote the number of
cake A and cake B produced every day, write
down the inequalities that fulfill the conditions
above. The trader wishes to maximise his
daily profit, formulate the linear programming
problem.
(b) By using the graphical method, determine
the number of cake A and cake B that should
be produced every day so that the trader
maximises his daily profit and find the
maximum profit.
Example 3.7 (Solution)
Let x be the number of cake A produced
y be the number of cake B produced
Maximize P 3 x 5 y
Subject to 400 x 500 y 12000
4 x 5 y 120
200 x 500 y 10000
2 x 5 y 100
x 0, y 0
The End OF
TOPIC 3