Work Sheet-Csbs
Work Sheet-Csbs
ASSIGNMENT – I
SUBMITED BY SUBMITTED TO
Name: Mr. V. Vasanth
Reg. Number: Assistant Professor
Section : SMVEC
DEPARTMENT OF COMPUTER SCIENCE AND BUSINESS SYSTEMS
U20BST440 - OPERATIONS RESEARCH
WORK SHEET-I
NAME:
DEPT. / SEC:
---------------------------------------------------------------------------------------------------------------------------
MaxZ = 100 x1 + 80 x 2
Subject to
5 x1 + 10 x 2 50
8 x1 + 2 x 2 16,
3x1 − 2 x 2 6, x1 , x 2 0
Solution:
5 x1 + 10 x 2 = 50 8x1 + 2 x2 = 16 3x1 − 2 x2 = 6
Graph To find the intersection points:
Result:
2. Solve the following LPP by graphical method
MaxZ = 5 x1 + 7 x 2
Subject to
x1 + x 2 4
3x1 + 8 x 2 24,
10 x1 + 7 x 2 35, x1 , x 2 0
Solution:
x1 + x2 = 4 3 x1 + 8 x 2 = 24 10 x1 + 7 x2 = 35
Graph To find the intersection points:
Result
3. Solve the following LPP by graphical method
MiniZ = 60 x1 + 40 x2
Subject to
10 x1 + 5 x2 1400
6 x1 + 10 x2 1400, x1 , x2 0
Solution:
9200
Result
Formation of LPP
1. A manufacturer of furniture makes two products: Chairs and Tables. Processing of these
products is done on two machines A & B. A chair requires 2 Hrs. On machine A and 6 Hrs. On
machine B. A table required 5Hrs. On machine A and no time on machine B. There are 16
Hrs. Of time per day available on machine A and 30Hrs. On machine B. Profit gained by
manufacturer from chair and table is Rs. 1 and Rs. 5 respectively. What should be daily
Solution:
2. Akash wishes to purchase fans and sewing machines. He has only Rs.5760 to invest and has
space for at the most 20 items. A fan cost Rs. 360 and sewing machine Rs.240. His expectation is
that he can sell a fan at a profit of Rs.22 and a sewing machine at a profit of Rs. 18. How should
Solution:
3. An aero plane can carry a maximum of 200 pessengers. A profit Rs. 400 is made on each first
class tickets and a profit of Rs. 300 on each economy class tickets. The airlines reserves at least
20 seats for first class. However, at least 4 times as many passengers prefer to travel by economy
class than by the first class. Determine how many of each type of tickets must be sold to
Solution:
Solution:
Rewrite the inequality of the constraints into an equation by adding slack variables.
Zj
Zj − Cj
Here 𝒙𝟑 is the entering variable and 𝐒𝟐 is the leaving variable.
First Iteration:
𝐂𝐣 𝟏 𝟏 𝟑 𝟎 𝟎
𝐶𝐵 Basic 𝑥1 𝑥2 𝒙𝟑 𝑆1 𝑆2 Solution Mini.
variable Ratio
0
=
0
=
Zj
Zj − Cj
Solution:
Since the given objective function is of minimization, we shall convert into maximaization using
Min Z = Max (-Z)
Rewrite the inequality of the constraints into an equation by adding slack surplus and
artificial variables.
𝑀𝑎𝑥 𝑧 =
Subject to
=
Zj 0 0 0 0 0 0 0
Zj − Cj 1 -3 2 0 0 0
Here is the entering variable and is the leaving variable.
First Iteration:
𝐂𝐣
𝐶𝐵 Basic Solution Mini.
variable Ratio
=
Zj
Zj − Cj
Here is the entering variable and is the leaving variable.
Second Iteration
𝐂𝐣
𝐶𝐵 Basic 𝑥2 𝑥3 𝒙𝟓 𝑆1 𝑆2 𝑆3 Solution Mini.
variable Ratio
=
Zj
Zj − Cj
Third Iteration
𝐂𝐣
𝐶𝐵 Basic 𝑥2 𝑥3 𝒙𝟓 𝑆1 𝑆2 𝑆3 Solution Mini.
variable Ratio
=
Zj
Zj − Cj
𝒘𝒉𝒆𝒓𝒆 𝒙𝟏 , 𝒙𝟐 , 𝒙𝟑 ≥ 𝟎
Solution:
Rewrite the inequality of the constraints into an equation by adding slack variables.
Phase I
Initial table:
𝐂𝐣
𝐶𝐵 Basic Solution Mini.
variable Ratio
=
Zj
Zj − Cj
First Iteration:
𝐂𝐣
𝐶𝐵 Basic Solution Mini.
variable Ratio
=
Zj
Zj − Cj
Second Iteration:
𝐂𝐣
𝐶𝐵 Basic Solution Mini.
variable Ratio
=
0 S3
=
Zj
Zj − Cj
Phase -II
Solution:
=
Zj
Zj − Cj
Result:
𝟒𝒙𝟏 + 𝟗𝒙𝟐 ≥ 𝟏𝟓
𝟔𝒙𝟏 + 𝟔𝒙𝟐 ≥ 𝟐𝟎
𝒘𝒉𝒆𝒓𝒆 𝒙𝟏 , 𝒙𝟐 ≥ 𝟎
Solution:
𝐂𝐣
𝐶𝐵 Basic Solution Mini.
variable Ratio
=
Zj
Zj − Cj
First Iteration:
𝐂𝐣
𝐶𝐵 Basic Solution Mini.
variable Ratio
=
Zj
Zj − Cj
Second Iteration:
𝐂𝐣
𝐶𝐵 Basic Solution Mini.
variable Ratio
=
Zj
Zj − Cj
Solution: