Professional Documents
Culture Documents
Operations Research Revised
Operations Research Revised
Ram Kumar
E-mail: pnramkumar@gmail.com
Linear Programming problems – Formulation,
Graphical method - Sensitivity Analysis
Transportation, Transshipment and Assignment
problems
Network optimization models
Integer programming problems
Project management
Scarce resources – Labor, materials, money…
Quest for best combination of inputs
Minimizing costs or Maximizing profits
Linear Programming (LP) problems
- Linear objective function
- Linear constraints
Why only LP?
- Majority of real-life problems can be approximated
- Efficient solution procedures
- Easy Sensitivity Analysis
A small factory makes three products, soap,
shampoo and liquid soap. The processing is done in
two stages at two plants, I and II, each of which
works for 40 hours every week.
The time required for processing each product at
each plant and the profit of each product are shown
in the table
Formulate a linear program to maximize the profits
Plant I Plant II Profit / Kg
Soap 3 5 Rs.10
Shampoo 4 4 Rs. 13
Hours /
40 hrs 40 hrs
week
1. Decision Variables???
2. Let X1, X2, and X3 be the quantities of soap,
shampoo and liquid soap manufactured per week.
3. Constraints???
4. Time available per week (40 hours)
5. Last, the objective function (Max Profit or
Minimize Cost)
Maximize
Z = 10X1 +13X2 + 12X3 Objective Function
Subject to
Decision Variables
A middle-aged woman, convalescing after a surgery,
has been advised by her doctor to plan her diet in
such a way as to ensure that she gets the prescribed
quantities of vitamins.
Rs. 18/unit
Cereals 10 mg/kg 55 mg/kg 30 mg/kg
(kg)
Daily
100 mg 250mg 120mg
requirement
Formulate a linear programme to determine the
quantity of each food that the woman needs to buy in
order to minimize her total expenditure, ensuring at
the same time that she meets her daily requirements
of vitamins.
Decision Variables?
X1, X2, X3 be the quantities of eggs, milk and cereals
bought
Constraints?
Dietary requirements are to be satisfied
Objective Function
Minimization of expenditure
Let X1, X2, X3 be the quantities of eggs, milk and
cereals bought.
The problem is of the form
(i) There is an objective function which describes
what we desire
Subject to
a x
j 1
ij j or bi i 1.....m
Ingredient A B C
Cost/ Litre $10 $8 $7
A
B
C
A shipping company has to lift three types of
cargo whose details are given below.
Work Center-I 4 2 60
Work Center-II 2 4 48
Maximize Z 8 x1 6 x2
Subject to
4x1 2 x2 60
2x1 4 x2 48
x1 , x2 0
Max / Min Z = C1 x1 + C2 x2 +…..+ Cn xn
Subject to
x1 , x2 ,….., xn - ≥ 0
b1 , b2 ,….., bm - ≥ 0
Slack variable: Added to a ≤ constraint
2x1+ 3x2 ≤50
2x1+3x2+x3=50
Surplus variable: Added to a ≥ constraint
5x1+ 7x2 ≥120
5x1+ 7x2 -x3=120
Dealing with Unrestricted in Sign variables
x1 – URS
Let x2, x3 ≥ 0; x1 = x2 – x3
Infeasibility
◦ Occurs in problems where to satisfy one of the constraints,
another constraint must be violated.
Unbounded Problems
◦ Exists when the value of the objective function can be
increased without limit.
Subject to
3X1 + 4X2 + 4X3 < 40
5X1 + 4X2 + 2X3 < 40
constraint
Maximization Problems
Minimization Problems
100% rule
A large automobile company owns 5 manufacturing plants in India
at the following locations:
- Jamshedpur
- Pune
- Lucknow
- Uttarakhand
- Sanand, Gujarat
The automobiles (for simplicity, consider only one model)
produced are shipped to 4 regional warehouses located across the
country in:
- New Delhi (North)
- Kolkata (East)
- Bangalore (South)
- Mumbai (West)
Weekly production in each plant is known
Weekly demand at each warehouse is known
SUPPLY DEMAND
S1 1 C11
C12
C14 C13 1 D1
S2 C21
2 C22
C23
C24 2 D2
S3 3
3 D3
S4 4
C51 C52
4 D4
C53
S5 5 C54
Sources Possible
of Supply distribution routes Destinations
Notations:
m- Number of sources
n- Number of destinations
Si - Supply at source i, i = 1, 2, 3, 4,5
Dj - Demand at destination j, j = 1, 2, 3, 4
Cij - Cost of transportation per unit from
source i to destination j
Xij - Number of units to be transported from source i
to destination j
Source 1 2 3 4 Supply
Demand D1 D2 D3 D4
Minimize Z C11 X 11 C12 X 12 ..... C21 X 21 C22 X 22 .....
C31 X 31 C32 X 32 .... C41 X 41 C42 X 42 ......
C51 X 51 C52 X 52 C53 X 53 C54 X 54 C55 X 55
Subject to
X 11 X 12 X 13 X 14 S1 X 11 X 21 X 31 +X 41 +X 51 D1
X 21 X 22 X 23 X 24 S2 X 12 X 22 X 32 +X 42 +X 52 D2
. .
. .
X 51 X 52 X 53 X 54 S5 X 15 X 25 X 35 +X 45 +X 55 D5
X ij 0 i 1, 2,...m and j 1, 2,...n
m n
Minimize Z Cij X ij
i 1 j 1
Subject to
n
X
j 1
ij Si , i 1, 2,...m
X
i 1
ij Dj , j 1, 2,...n
m n
Minimize Z C
i 1 j 1
ij X ij
Subject to
n
X
j 1
ij Si , i 1, 2, ...m
X
i 1
ij Dj , j 1, 2,...n
1
2
2
2
3
3
3
4
4
k 1 l 1
4
Y
i 1
ij D j j 1, 2,3, 4 (Demand Constraints)
3
X
j 1
ij Si i 1, 2,3, 4 (Supply Constraints)
5 4
X
i 1
ij Y jk j 1, 2,3 (Transshipment Constraints)
k 1
X ij 0 i 1, 2,...5, j 1, 2,3
Ykl 0 k 1, 2,3, l 1, 2,3, 4
A group of four boys and four girls are planning on a one day
picnic. The extent of mutual happiness between boy i and
girl j when they are together is given by the following
matrix (data obtained from their previous dating
experiences)
Girl
1 2 3 4
1 11 1 5 8
Boy 2 9 9 8 1
3 10 3 5 10
4 1 13 12 11
The problem is to decide the proper matching
between the boys and the girls during the picnic that
will maximize the sum of all the mutual happiness of
all the couples. Remember, a boy can team-up with
only one girl and vice-versa.
What are the decision variables?
Constraints?
Objective Function?
Decision Variable
1, if boy i teams-up with girl j
Let Xij =
0, Otherwise
Constraints
X 11 X 12 X 13 X 14 1 X 11 X 21 X 31 X 41 =1
X 21 X 22 X 23 X 24 1 X 12 X 22 X 32 X 42 =1
X 31 X 32 X 33 X 34 1 X 13 X 23 X 33 X 43 =1
X 41 X 42 X 43 X 44 1 X 14 X 24 X 34 X 44 =1
Objective Function
Maximize
11X 11 1X 12 5 X 13 8 X 14
9X 21 9 X 22 8 X 23 1X 24
10 X 31 3 X 32 5 X 33 10 X 34
1X 41 13 X 42 12 X 43 11X 44
n n
Maximize / Minimize Z C
i 1 j 1
ij X ij
Subject to
n
X
j 1
ij 1, i 1, 2,...n
X
i 1
ij 1, j 1, 2,...n
1, if i is assigned to j
X ij
0, otherwise
Minimum Spanning Tree Problem (MST)
Sub-graph 3
Subject to
1, if i is a source node
n n
X ij X ki 0, if i is a transhipment node
j 1; j i k 1; k i 1, if i is a destination node
1, if traversed from i to j
X ij
0, otherwise
F
F
Maximize F
F f12 f13 f14
f12 f 32 f 52 f 21 f 23 f 25
f13 f 23 f 43 f 53 f 63 f31 f32 f34 f35 f36
f14 f 34 f 74 f 41 f 43 f 47
f 25 f 35 f 65 f85 f 52 f53 f56 f58
f 36 f 56 f 76 f86 f 96 f 63 f 65 f 67 f 68 f 69
f 47 f 67 f97 f 74 f 76 f 79
f 58 f 68 f 98 f10 8 f85 f86 f89 f8 10
f 69 f 79 f89 f10 9 f96 f97 f98 f9 10
f810 f9 10 F
f12 20 f 21 0 f13 15 f31 0 f14 22 f 41 0
f 25 18 f52 0 f 23 20 f32 10 f34 0 f 43 5
f35 20 f53 0 f36 13 f 63 0 f 47 18 f74 0
f56 10 f 65 0 f58 14 f85 0 f 67 5 f 76 0
f 68 25 f86 0 f 69 5 f96 0 f 79 20 f97 0
f89 10 f98 0 f810 30 f108 0 f910 25 f109 0
Consider the following road network connecting six cities
(0,10,1)
2 4 (0,18,2)
(0,17,2)
(0,15,2)
6
1 (0,5,3) (0,5,6)
(0,5,3)
(0,25,1) (0,17,3)
3 5
(0,20,5)
The three numbers are the least amount you can ship along the arc, the
maximum tonnage you can ship, and the cost in dollars per ton shipped
along this arc, respectively. There are 30 tons of material at city 1 and it
should be shipped to city 6 at minimum total cost. All materials originate at
city 1 and end up in city 6.
Traveling Salesman Problem (TSP)
Facility Location Problem
Knapsack Problem
Set-Covering Problem
Set-Partitioning Problem
Integer programming problems do not readily
lend themselves to sensitivity analysis as only
a relatively few of the infinite solution
possibilities in a feasible solution space will
meet integer requirements
Problem Description:
Given a list of cities and their pair-wise distances, the
in Graph Theory.
Number of feasible solutions for a ‘n’ city problem?
For a 10 city problem:36,28,800 solutions
For a 15 city problem:1,307,674,368,000!!!!!
Optimal solution for 15,112 towns in Germany (2001)
- Network of 110 processors at Rice and Princeton
- Computational time equivalent: 22.6 years
Optimal solution for 33,810 points on a PCB (2005)
85,900 points – Concorde TSP solver - current record
– April 2006 (136 CPU years)
Logistics: Vehicle routing
Subject to
n
X
j 1
ij 1, i 1, 2,...n
X
i 1
ij 1, j 1, 2,...n
u1 1
2 uj n j 1
ui u j 1 (n 1)(1 X ij ) i 1, j 1
Decision 1:
Hyderabad Where to locate the D1
1
facilities?
Mumbai Kochi
Decision 2:
Chennai Surat From each chosen facility, 2 D2
how much should be
Delhi Lucknow
shipped to the destinations
Bangalore 3 D3
Pune for satisfying the demand?
Kolkata Vizag
Costs incurred:
1. Fixed cost of locating a
Ahmedabad 4 D4
facility (Fi)
2. Transportation costs (Cij)
Set of Potential locations
for facilities (m) Destinations (n)
m m n
Minimize Z= Fi X i Cij yij
i 1 i 1 j 1
Subject to
n
y
j 1
ij Si X i i 1.......m
y
i 1
ij D j j 1.......n
Subject to
n
W
j 1
j Xj K