Linear Programming Problems - Formulation
Linear Programming Problems - Formulation
Linear Programming Problems - Formulation
Linear Programming is a mathematical technique for optimum allocation of limited or scarce resources,
Linear Programming Problems - Formulation The term Linear is used to describe the proportionate
relationship of two or more variables in a model. The given change in one variable will always cause a resulting proportional change in another variable.
Structure of Linear Programming model The general structure of the Linear Programming
i) The activities are represented by X1, X2, X3 ..Xn. These are known as Decision variables. ii) The objective function of an LPP (Linear
Guidelines for formulating Linear Programming model i) Identify and define the decision variable of the problem
iii) State the constraints to which the objective function should be optimized (i.e. either Maximization or Minimization) iv) Add the non-negative constraints from the consideration that the negative values of the decision
Additivity The value of the objective function for the given value of decision variables and the total sum of resources used, must be equal to the sum of the contributions (Profit or Cost) earned from each decision variable and sum of the resources used by each decision variable
Solution: The given data is expressed in the form of table as: Food Vitamins (No. unit of food) A F1 F2 Min. requirement 3 6 80 B 4 3 100 4 5 cost of food
1. The problem is to find the quantities of foods F1 and F2 so as to meet the minimum requirement of vitamins A and B.
4. Constraints: a) First constraint: The minimum requirement of vitamin A is 80 units. The number of units of vitamin A contained in X1 unit of
5. Thus the LPP format will be Minimize C = 4X1 + 5X2 Subject to 3X1 + 6X2 80 (vitamin A constraint) 4X1 + 3X2 100 (vitamin B constraint X1, X2 0 (non negativity condition)
Example 1
A city hospital has the following minimal daily requirements for nurses.
Period 1 2 3 4
2 7 15 8
5 6
20 6
Nurses report at the hospital at the beginning of each period and work for 8 consecutive hours. The hospital wants to determine the minimal number of nurses to be employed so that there will be a sufficient number of nurses available for each period. Formulate this as a linear programming problem by setting up appropriate constraints and
objective function.
i) Identify and define the decision variable of the problem Let X1, X2, X3, X4, X5 and X6 be the number of nurses joining duty at the beginning of periods 1, 2, 3, 4, 5
and 6 respectively.
ii) Define the objective function Minimize Z = X1 + X2 + X3 + X4 + X5 + X6
X5 + X6 6
X6 + X1 2 X1, X2, X3, X4, X5, X6 0
Linear Programming: Graphical Solution Example 2. Solve the following LPP by graphical method Maximize Z = 5X1 + 3X2
Subject to constraints
2X1 + X2 1000 X1 400 X1 700 X1, X2 0
Solution:
The first constraint 2X1 + X2 1000 can be represented as follows. We set 2X1 + X2 = 1000 When X1 = 0 in the above constraint, we get, 2 x 0 + X2 = 1000 X2 = 1000 Similarly when X2 = 0 in the above constraint, we get, 2X1 + 0 = 1000 X1 = 1000/2 = 500
The second constraint X1 400 can be represented as follows, We set X1 = 400 The third constraint X2 700 can be represented as follows, We set X2 = 700
Point 0
X1 0
X2 0
Z = 5X1 +3X2 0
A
B C D
0
150 400 400
700
700 200 0
Z = 5 x 0 + 3 x 700 = 2,100
Z = 5 x 150 + 3 x 700 = 2,850* Maximum Z = 5 x 400 + 3 x 200 = 2,600 Z = 5 x 400 + 3 x 0 = 2,000
Example 3 Solve the following LPP by graphical method Maximize Z = 400X1 + 200X2
Subject to constraints
18X1 + 3X2 800 9X1 + 4X2 600
X2 150
X1, X2 0
Solution:
Similarly when X2 = 0 in the above constraint, we get, 18X1 + 3 x 0 = 800 X1 = 800/18 = 44.44
X2 = 600/4 = 150
X1 = 600/9 = 66.67
Point 0 A B C
X1 0 0 31.11 44.44
X2 0 150 80 0
Z = 400X1 + 200X2
0 Z = 400 x 0+ 200 x 150 = 30,000* Maximum Z = 400 x 31.1 + 200 x 80 = 28,444.4 Z = 400 x 44.44 + 200 x 0 = 17,777.8
Example 4
Solve the following LPP by graphical method Minimize Z = 20X1 + 40X2
Subject to constraints
36X1 + 6X2 108 3X1 + 12X2 36 20X1 + 10X2 100 X1 , X2 0
Solution: The first constraint 36X1 + 6X2 108 can be represented as follows. We set 36X1 + 6X2 = 108
Similarly when X2 = 0 in the above constraint, we get, 36X1 + 6 x 0 = 108 X1 = 108/36 = 3 The second constraint 3X1 + 12X2 36 can be represented as follows,
X1 = 36/3 = 12
X2 = 100/10 = 10
Point 0 A B C D
X1 0 0 2 4 12
X2 0 18 6 2 0
Z = 20X1 + 40X2
0 Z = 20 x 0 + 40 x 18 = 720 Z = 20 x2 + 40 x 6 = 280 Z = 20 x 4 + 40 x 2 = 160* Minimum Z = 20 x 12 + 40 x 0 = 240
X1 + X2 45,000
X1, X2 0
Solution: The first constraint X1 20,000 can be represented as follows. We set X1 = 20,000 The second constraint X2 40,000 can be represented as follows,
We set X2 = 40,000
The third constraint 0.003X1 + 0.001X2 66 can be represented as follows, We set 0.003X1 + 0.001X2 = 66
The fourth constraint X1 + X2 45,000 can be represented as follows, We set X1 + X2 = 45,000 When X1 = 0 in the above constraint, we get, 0 + X2 = 45,000
X2 = 45,000
Similarly when X2 = 0 in the above constraint, we get, X1 + 0 = 45,000 X1 =45,000
Point 0 A
X1 0 0
X2 0 40,000
Z = 2.80X1 + 2.20X2 0 Z = 2.80 x 0 + 2.20 x 40,000 = 88,000 Z = 2.80 x 5,000 + 2.20 x 40,000 = 1,02,000 Z = 2.80 x 10,500 + 2.20 x 34,500 = 1,05,300* Maximum Z = 2.80 x 20,000 + 2.20 x 6,000 = 69,200 Z = 2.80 x 20,000 + 2.20 x 0 = 56,000
B
C D E
5,000
10,500 20,000 20,000
40,000
34,500 6,000 0
Z = 1,05,300
Example 6
Solve the following LPP by graphical method Maximize Z = 10X1 + 8X2 Subject to constraints 2X1 + X2 20
X1 + 3X2 30
X1 - 2X2 -15 X1 X2 0
Solution:
The first constraint 2X1 + X2 20 can be represented as follows. We set 2X1 + X2 = 20 When X1 = 0 in the above constraint, we get,
2 x 0 + X2 = 20
X2 = 20
X1 = 20/2 = 10
The second constraint X1 + 3X2 30 can be represented as follows, We set X1 + 3X2 = 30
The third constraint X1 - 2X2 -15 can be represented as follows, We set X1 - 2X2 = -15 When X1 = 0 in the above constraint, we get,
0 - 2X2 = -15
X2 = -15/2 = 7.5 Similarly when X2 = 0 in the above constraint, we get, X1 2 x 0 = -15 X1 = -15
Point 0 A
X1 0 0
X2 0 7.5
Z = 10X1 + 8X2
0 Z = 10 x 0 + 8 x 7.5 = 60 Z = 10 x 3 + 8 x 9 = 102 Z = 10 x 6 + 8 x 8 = 124* Minimum Z = 10 x 10 + 8 x 0 = 100
B
C D
3
6 10
9
8 0
When X1 = 6 and X2 = 8
Z = 124