Professional Documents
Culture Documents
BMS 101:
Group Assignment
Submitted By:
Module Tutor: Kesar Nath Dhakal Type of Course Work: Group Assignment
We hereby declare that this academic work is our own and those derived from other sources have
been appropriately acknowledged. We understand that if found otherwise, our academic work will be
cancelled and no mark will be awarded besides the legal consequences.
1. ( ) ( )
2. ( ) ( )
3. ( ) ( )
4. ( ) ( )
Total Marks
Comments: ……………………………………………………….
……………………………………………………………………..
2
Contents
Formulation of question statement............................................................................3
a) Simplex Method...............................................................................................5
b) Excel Solver...................................................................................................10
3
Formulation of question statement
Mr. Sonam has started a new drive-through restaurant "Grab and Go" in Thimphu city close to
clock tower. To draw in new customers, he has thought of a plan to sell three distinct kinds of
combo packs A, B and C. As he saw that a more prominent number of customers favored combo
A to C, he began to deliver a greater number of combo A. In a week he can produce at least 300
units of combo A, 100 units of combo C and his combo B is only for the armed forces or the
needy people whereby he only produces up to 250 units per week. Combo A comprises of 3 ham
burgers, a coca cola drink, and a chicken barbeque. Combo B comprises of 2 ham burgers, a coca
cola drink and 3 chicken barbeques. Combo C comprises of a ham burger, a coca cola drink and
a piece of chicken barbeque. If the cost of ham burger, coca cola and chicken barbeque are;
Nu.15, Nu.25 and Nu.30 per unit respectively. Find out the maximum profit that he will acquire
by selling his principle combos.
Solution:
4
iii. Identify the set of linear constraints
Combo packs Ham burger Coca cola drink Chicken Total units produced
barbeque
Combo A 3 1 1 300
Combo B 2 1 3 250
Combo C 1 1 1 100
3 x+ y+ z ≥ 300
2 x+ y +3 z ≤250
x + y + z ≥ 100
2 x+ y +3 z ≤250
x + y + z ≥ 100
x , y , z≥0
5
Optimal solution to the LPP formulated using
a) Simplex Method
The problem is:
2 x1 + x 2 +3 x3 ≤ 250
x 1+ x2 + x 3 ≥ 100
And, x1 , x2 , x3 ≥ 0
The problem is converted to standard form by adding slack, surplus and artificial variables as
appropriate.
1. As the “constraint-1” is of type '≥' we should subtract surplus variable S1 and add artificial
variable ‘A1’.
3. As the “constraint-3” is of type '≥' we should subtract surplus variable S3 and add artificial
variable ‘A2’.
2 x1 + x 2 +3 x3 + S2 =250
x 1+ x2 + x 3−S3 + A1 =100
And, x 1 , x 2 , x 3 , S1 , S 2 , S3 , A 1 , A 2 ≥ 0
6
Where M is the large positive number, the simplex tableaux appear below.
Simplex Tableaux 1
Basic 15 25 30 0 0 0 -M -M
Solutio
Cj Variabl Ratio
n
e X1 X2 X3 S1 S2 S3 A1 A2
-M A1 300 3 1 1 -1 0 0 1 0 100
0 S2 250 2 1 3 0 1 0 0 0 125
-M A2 100 1 1 1 0 0 -1 0 1 100
Zj -400M -4M -2M -2M M 0 M -M -M _
15+4M 25+2 30+2
_
Cj- Zj M M -M 0 -M 0 0
Entering =x1,
Departing =A2
1 1 1 0 0 −1 0 1
New key row for X1= =1, =1 , =1 , =0 , =0 , =1 , =0 , =1
1 1 1 1 1 1 1 1
New key row = Old non-key row – (key column number x New key row)
New key row for S2= 250−( 2∗100 ) =50 ,2−( 2∗1 )−0 , … … …
7
Simplex Tableau II
15 25 30 0 0 0 -M -M
Cj Basic Solution Ratio
Variable X1 X2 X3 S1 S2 S3 A1 A2
-M 0
A1 0 0 -2 -2 -1 0 3 1 0
0 S2 50 0 -1 1 0 1 2 0 0 25
15 X1 100 1 1 1 0 0 -1 0 1 _
2M+1
Zj 1500 15 5 2M+15 M 0 -3M-15 -M 15
15+3M
Cj-Zj 0 10-2M 15-60M M 0 0 -M-15
The maximum Cj-Zj value is 15+3M. So, the entering variable is S3.
Entering =S3,
Departing = A1
New key row = Old non-key row – (key column number x New key row)
New key row for S2= 50−( 2∗0 )=50 , 0−( 2∗0 )=0 , … … ….
8
Simplex Tableau III
Basic Solutio 15 25 30 0 0 0 -M -M
Cj Variabl Ratio
n
e X1 X2 X3 S1 S2 S3 A1 A2
0
S3 0 0 -0.667 -0.667 -0.333 0 1 0.333 -1 _
21.428
0
S2 50 0 0.333 2.333 0.667 1 0 -0.667 0 6
Zj 1500 15 5 5 -5 0 0 5 0
25
Cj-Zj 0 20 5 0 0 -M-5 -M
Entering =x3,
Departing = S2
New key row = Old non-key row – (key column number x New key row)
New key row for X1 = 100− ( 0.333∗21.4286 )=92.8571 ,1−( 0.333∗0 )=1 , … … …
9
Simplex Tableau IV
Basic 15 25 30 0 0 0 -M -M
Cj Variabl Solution Ratio
e X1 X2 X3 S1 S2 S3 A1 A2
0 S3 14.2857 0 -0.5714 0 0.1429 0.2857 1 0.428 -1 _
30 150
X3 21.4286 0 0.1429 1 0.2857 0.4286 0 0.286 0
Entering =x2,
Departing = x3
New key row = Old non-key row – (key column number x New key row)
New key row for X1 = 92.8571− ( 0.2857∗150 )=50 , 1−( 0.2857∗0 )=1 , … … …
Simplex Tableau V
10
Basic Solutio 15 25 30 0 0 0 -M -M
Cj Variabl Ratio
n
e X1 X2 X3 S1 S2 S3 A1 A2
0 S3 100 0 0 4 1 2 1 1057 -1
25 X2 150 0 1 7 2 3 0 2 0
15 X1 50 1 0 -2 -1 -1 0 -0.143 0
Zj 4500 15 25 145 35 60 0 47.8 0
-M-
Cj-Zj 0 0 -115 -36 -60 0 47.8 -M
Since all the enteries in Cj-Zj row are negative or zero, we have reaches the optimality.
Therefore, the solution occurs at x 1=50 , x2 =150 , x 3=0 , and the maximum value of Z is 4500.
b) Excel Solver
Let, decision variable be X1, X2 and X3
The optimum value to be obtained can be set as 0 initially.
The coefficient of Z as X1 = 15, X2 =25 and X3 =30
Then, initially set the objective value as the sum product of the values and the coefficient.
11
Coefficient of the given constraints can be shown by:
The value of the left hand side (LHS) can be portrayed as the sum product of the values and the
coefficients.
12
Therefore the entire LPP can be written in excel as
13
Select the solver in the Data tab in excel
The Value cells are to be selected for the “By Changing Variable Cells” section
Selecting the add button will give us the access to add the constraints.
14
15
Thereby we need to select the solve button to get the answer.
The optimal solution occurs when x 1=50 , x2 =150 , x 3=0 , and the maximum value of Z is 4500.
16
Shadow prices of the resources
Maximize Z = 15 x 1+25 x 2 +30 x 3
2 x1 + x 2 +3 x3 ≤ 250
x 1+ x2 + x 3 ≥ 100
Given that the optimal solution at the intersection of the above constraints is
x 1=50 , x2 =150 , x 3=0 . Therefore the original contribution was Nu.45000.
1. We will calculate the shadow price of A, we need to add one extra unit of resources to A.
Hence, the constraints are:
3 x 1+ x 2 + x 3 ≥ 301
2 x1 + x 2 +3 x3 ≤ 250
x 1+ x2 + x 3 ≥ 100
17
The solution of the system is, x 1=51 , x 2=148 , x 3=0
Thus, a negative shadow price indicates that with every 1 unit increase in A, the objective or
optimal solution will decrease by Nu. 35.
2. We will calculate the shadow price of B; we need to add one extra unit of resources to B.
Hence, the constraints are:
3 x 1+ x 2 + x 3 ≥ 300
2 x1 + x 2 +3 x3 ≤ 251
x 1+ x2 + x 3 ≥ 100
15∗49+25∗153+30∗0 = 4560
18
Thus, a positive shadow price indicates that with every 1 unit increase in B, the objective or
optimal solution will increase by Nu. 60
3. We will calculate the shadow price of C; we need to add one extra unit of resources to C.
Hence, the constraints are:
3 x 1+ x 2 + x 3 ≥ 300
2 x1 + x 2 +3 x3 ≤ 251
x 1+ x2 + x 3 ≥ 101
Thus, a Zero shadow price indicates that with every 1 unit increase in B, the objective or optimal
solution will have no effect (will neither increase nor decrease).
Thank you!!!!!!!
19