Operations Research - Classes 16 To 19
Operations Research - Classes 16 To 19
Subject to
n
W
j 1
j X j K
Investment Opportunity
1 2 3 4 5 6 7
Estimate 17 10 15 19 7 13 9
d Profit
Capital 43 28 34 48 17 32 23
required
Investment Planning example…
The total amount of capital available for these investments is
$100 million.
Investment opportunities 1 and 2 are mutually exclusive, and
so are 3 and 4.
Furthermore, neither 3 nor 4 can be undertaken unless one of
the first two opportunities is undertaken.
There are no restrictions on investment opportunities 5,6 and
7.
The objective is to select the combination of capital
investments that will maximize the total estimated long-run
profit.
Set Covering Problem
A telecommunication company is considering expanding
its mobile phone service operations into a new area.
The area is divided into 10 neighborhoods.
The company is considering 5 locations (to set up mobile
phone towers) to reach all 10 neighborhoods.
It costs a significant amount of money to set-up the facility
at a node and make it operational
The company would like to minimize total costs of setting-
up the towers but at the same time reach all of the
neighborhoods.
Set Covering
Problem Node1 : 1, 2, 7, 8, 9
Node3 : 1, 2, 3, 4, 5, 10
2 3 Node5 : 3, 4, 5, 6, 9, 10
Node7 : 1, 5, 6, 7, 8, 9, 10
1 10 Node9 : 3, 6, 7, 8, 9,10
9
4 Cost of opening
5 nodes:
8 5
6 Node 1: 125
Node 3: 85
7 Node 5: 70
Node 7: 100
Node 9: 110
3 D
3
S4 4
C51 C52
4 D
C53 4
S5 5 C54
Fixed Charge Transportation
Problem
Variable cost of transportation
1 2 3 Supply
1 6 4 9 10
2 8 5 4 20
3 10 7 3 30
Demand 20 20 20
Dj - Demand at destination j, j = 1, 2, 3, 4
Subject to
n
x
j 1
ij Si , i 1, 2,...m
x
i 1
ij Dj , j 1, 2,...n
Subject to
n
y
j 1
ij Si X i i 1.......m
y
i 1
ij D j j 1.......n
(thousands of
Unit Profit 8 7 6
dollars)
Sales
5 7 9 (Units per week)
Traveling Salesman Problem
(TSP)
Problem Description:
Graph Theory.
Interesting facts about TSP
Number of feasible solutions for a ‘n’ city problem?
Subject to
n
X
j 1
ij 1, i 1, 2,...n
X
i 1
ij 1, j 1, 2,...n
OR
• Miller-Tucker-Zemlin (MTZ) Formulation (1960)
ui u j 1 ( N 1)(1 X ij ) i 1, j 1
u1 1, 2 u j N , j 2,..., N
The Seven Bridges of
Königsberg, Germany
In the city of Konigsberg, there was a park through
which a river ran. In this park seven bridges crossed
the river. The problem at the time was to plan a walk
that crossed each of the bridges exactly once, starting
and ending at the same point.
1
2 3
4
Eulerian Circuit or Eulerian
Tour
1 Redrawn 2
Graph:
2 3 4 1
3
4
Applications – Eulerian
circuit
Applications:
1. Trash Collection
2. Transmission line inspections
3. Road-sweeping
4. Snow-plows
5. Highway lawn movers
6. Police patrolling
Chinese Postman Problem
The problem of determining the minimum
additional weights(edges) to be added to a
non-Eulerian graph to make it Eulerian
Solution methodologies for IP
Rules:
1. Use numbers 1,2…..9
2. There should not be
repetition in any row or
column
3. Each box should have
all the numbers 1,2…9
Some more interesting facts about
SUDOKU
Sudoku – Hward Garnes - 1979 - U.S
Creation of SUDOKU – brute force
The number of SUDOKU matrices for the standard 9x9 game
is:
6,670,903,752,021,072,936,960
= 6.67 x 10 21
X
i 1
ijk 1, j 1....n, k 1.....n
X
j 1
ijk 1, i 1....n, k 1.....n
Sub-matrix constraint
mq mp
j mq m 1 i mp m 1
X ijk 1, k 1....n, p 1.....m, q 1....m
Minimum headway
No-Crossing: Applicable for both peace time and
wartime
Reasons:
Roads not having load bearing ability and width
to accommodate two convoys at a time
To avert accidents
To avoid mix-up/confusion
Military Logistics (3/3)
1 if convoy c traverses between nodes q and q' before convoy c' traverses between nodes q' and q
Yqqcc' ' if convoy c' traverses between nodes q' and q before convoy c traverses between q and q'
0 if arc qq' is not on the path of convoy c or c' or both
IP model (4/7)
Objective Function
Minimize AT c
c
qd
c
IP model
1. Network Flow Conservation (5/7)
Constraints
1 if q qsc
Aqq ' Aq '' q 0 if q qs or qd c C , q q ', q q '' and (q, q ', q '') Q
c c c c
q' q '' c
1 if q q d
2. Arc Travel time Constraints
ATqc' M (1 Aqq
c
' ) T A c
qq ' qq ' DT c
q
c c c c
c C , (q, q ') Q and q q '
ATq ' M (1 Aqq ' ) Tqq ' Aqq ' DTq
MX qqcc '' M (1 Aqqc ' ) M (1 Aqqc ' ' ) ATqc' ATqc' ' h(1 X qqcc '' ) (c, c ') C , (q, q ') Q,
cc '
M (1 X qq ' ) M (1 Aqq ' ) M (1 Aqq ' ) ATq ' ATq ' hX qq ' c c ', q q ' and c ' c
cc ' c c' c' c
5. Binding Constraints
X qqcc '' Aqqc ' (c, c ') C ,(q, q ') Q, c c ', q q ' and c ' c
X qqcc '' Aqqc ' ' (c, c ') C ,(q, q ') Q, c c ', q q ' and c ' c
Yqqcc'' Aqqc ' (c, c ') C , (q, q ') Q, c c ', q q ' and c ' c
Yqqcc'' Aqc''q (c, c ') C , (q, q ') Q, c c ', q q ' and c ' c
IP model …(7/7)
6. No-crossing
constraints
MYqqcc'' M (1 Aqqc ' ) M (1 Aqc''q ) DTqc ATqc ' (c, c ') C (q, q ') Q
c
M (1 Yqq ' ) M (1 Aqq ' ) M (1 Aq ' q ) DTq ' ATq ' c c ', q q ', and c ' c
cc ' c c' c'
7. Boundary conditions
c q
qqcc '' ATqc' ' ATqc' h(1 X qqcc '' ) MX qqcc '' M (1 Aqqc ' ) M (1 Aqqc ' ' )
cC c 'C qQ q 'Q
qqcc'' ATqc' ATqc' ' hX qqcc '' M (1 X qqcc '' ) M (1 Aqqc ' ) M (1 Aqqc ' ' )
cC c 'C qQ q 'Q