Docsity

IEOR 162 HW 12 Linear Programs & Network Flows, Exercises of Engineering

Toggle sidebar
bg1
IEOR 162
Homework 12
Linear Programming & Network Flows - Page 1 of 14 Out: April 21, 2017
Due: April 28, 2017
1. (10 points) Consider the following project management graph:
start, 0 A, 2
B, 6
C, 4
D, 4
E, 2
F, 1
G, 2
H, 1
finish, 0
(a) Determine the EST, EFT, LST, LFT of each activity.
(b) Determine the total slack and free float (free slack) of each activity.
Solution:
Activity EST EFT LST LFT Total slack Free float
Start 0 0 0 0 0 0
A 0 2 0 2 0 0
B 2 8 2 8 0 0
C 2 6 10 14 4 0
D 8 12 8 12 0 0
E 6 10 10 14 4 4
F 8 9 13 14 5 5
G 12 14 12 14 0 0
H 6 7 13 14 7 7
Finish 14 14 14 14 0 0
2. (10 points) Consider the project given below.
Activity Current Duration Predecessors Maximum reduction Unit expediting cost
A 20 – 5 300
B 25 – 5 200
C 50 A 5 350
D 40 B 5 260
E 30 C,D 5 320
(a) Formulate an LP to minimize the expediting cost such that the project finishes in 90 days.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe

Partial preview of the text

Download IEOR 162 HW 12 Linear Programs & Network Flows and more Exercises Engineering in PDF only on Docsity!

1. (10 points) Consider the following project management graph:

(b) Determine the total slack and free float (free slack) of each activity.(a) Determine the EST, EFT, LST, LFT of each activity.

Solution:time reduction for activity Let ti the start time for activity i. i, and let xi be the number of units of min s.t. (^300) tA −x Atstart + 200 ≥ x 0 B + 350xC + 260xD + 320xE t tBC −− starttA ≥ 20 ≥ (^0) − xA t tDE (^) −− (^) ttBC ≥≥ (^2550) −− xxCB t tEf inish − tD − ≥ tE (^40) ≥ − 30 x D− xE t tstartf inish = 0 ≤ 90 00 ≤≤ xxAB ≤≤ (^55) 00 ≤≤ xxCD ≤≤ (^55) 0 ≤ xE ≤ 5

(b) Suppose that instead of meeting the deadline exactly, there is a penalty of $290 for eachday the project extends beyond 90 days. In addition, there is a reward of $250 for everyday the project finishes under 90 days. Write two (or one) linear programming problems to determine by how much to expedite the duration of each activity in order to minimizethe net cost. Solution: We use two linear programs:

the objective function min Solution: Let ti the start time for activity tf inish − tstart and remove the constraint that i, and let xi be the number of units of tstart = 0. time reduction for activity i. min s.t. ttf inishA − t (^) start− tstart ≥ 0 (xsa) t tBC −− starttA ≥ 20 ≥ (^0) (x(xacsb)) t tDE −− (^) ttCB ≥≥ 2550 ((xxcebd)) t tEf inish − tD − ≥ tE (^40) ≥ 30 (x de()xef )

(b) Write the dual problem. Solution: max s.t. (^20) −x xacsa + 25 − xsbxbd = + 50 − 1 xce + xde xsa − xac = 0 x xsbac −− xxbdce = 0= 0 x xbdce −+ xxdede −= 0 xef = 0 x xefsa (^) , x= 1sb, xac, xbd, xce, xde, xef ≥ 0 (c) Which problem does the dual correspond to? Solution: After multiplying each flow balance constraint with −1, we obtain: max s.t. (^20) xsax ac+ + 25xsb = 1xbd + 50xce + xde xac − xsa = 0 x xbdce −− xxsbac = 0= 0 x xdeef −− xxbdce = 0− xde = 0 x^ −sa^ x, xefsb^ =, x^ −ac^1 , xbd, xce, xde, xef ≥ 0

This is the formulation of the longest path problem from start to finish.

  1. (20 points) Consider the project given below. ActivityA Duration 4 Predecessors– Workforce requirement 9 BCD 222 – –– (^364) EFG 323 BCF 872 (a) Draw the AON network. Determine the EST, EFT, LST, LFT of each activity.H^3 E,G^1 (b) Give the schedule diagram and the resource loading diagram when all activities are sched-uled at their earliest start time. (c) Give the schedule diagram and the resource loading diagram when all activities are sched-uled at their latest start time. (d) Give the schedule diagram and the resource loading diagram for a hybrid schedule suchthat no day requires more than 15 workers.

s

t

Augmenting path: s − 1 − t with bottleneck capacity δ = 20.

s

t

Augmenting path: s − 2 − t with bottleneck capacity δ = 15.

s

t

Augmenting path: s − 3 − t with bottleneck capacity δ = 10.

s

t

No more augmenting paths. Flow is optimal. Problem 5 Initial flow:

s

t

Augmenting path: s − 1 − 3 − t with bottleneck capacity δ = 2.

s

t

Augmenting path: s − 2 − 4 − t with bottleneck capacity δ = 3.

  • Add arc (can carry.j, t) for each car j with capacity equal to the number of people the car We wish to find the maximum flow from s to t.

s

Hat Mon McC Cp

c c c c

t

(b) Solve the formulation of part (a) with the Ford-Fulkerson algorithm. Show the flow aftereach iteration of the algorithm. Solution:non-zero flow. Due to space constraints, we will only draw the middle arcs that have Initial flow.

s

Hat Mon McC Cp

c c c c

t

0/4^ 0/

We consider the augmenting paths sin the augmenting path algorithm, we would consider them one by one). − Cp − c 4 − t at once. Since none of the arcs overlap we can safely do this (note that s − Hat − c 1 − t, s − M on − c 2 − t, s − M cC − c 3 − t,

s

Hat Mon McC Cp

c c c c

t

2/4^ 2/

We consider the augmenting paths sin the augmenting path algorithm, we would consider them one by one). − Cp − c 3 − t at once. Since none of the arcs overlap we can safely do this (note that s − Hat − c 2 − t, s − M on − c 1 − t, s − M cC Note that − c 4 − t, the augmenting paths have bottleneck capacity 1 or 2.

s

Hat Mon McC Cp

c c c c

t

Since all sink-adjacent arcs are saturated, this flow is optimal.

  1. (a) Page 431, problem 16. Formulate the problem as a maximum flow problem. Solution: We represent each month and project as node. We then add source s and sink • t.Add arc (s, i) for each month i with capacity 8. This represents the number of - workers available in each month.Add arc (i, j) for each month i and project j with capacity 6 if the month i is

s

Augmenting path: s − m 2 − p 3 − t with bottleneck capacity δ = 6.

Augmenting path: s − m 3 − p 1 − t with bottleneck capacity δ = 6.

Augmenting path: s − m 1 − p 1 − t with bottleneck capacity δ = 2. Finally, we use augmenting pathscomplete the demand for project 2. s − m 2 − p 2 − t, s − m 3 − p 2 − t, s − m 4 − p 2 − t to

 - start, 0 A, - B, - C, - D, - E, - F, - G, - H, - finish, - StartAB 002 028 002 028 000 Solution: Activity EST EFT LST LFT Total slack Free float - CDE 826 12106 10108 141214 404 - GHF^1286 1497 131213 141414 507 - Finish 
  • ActivityA Current Duration 20 Predecessors– Maximum reduction 5 Unit expediting cost 2. (10 points) Consider the project given below.
    • BCD 255040 AB– 555
  • (a) Formulate an LP to minimize the expediting cost such that the project finishes in 90 days.E^30 C,D^5
    • m
    • m
    • m
    • m - p - p - p
  • 6/80/ t
  • 0/80/ - 0/100/ - 6/ - 6/
    • m s
    • m
    • m
    • m - p - p - p
  • 6/ t
  • 6/
  • 0/80/ - 0/ - 0/ - 12/ - 6/ - 6/
    • m s
    • m
    • m
    • m - p - p - p
  • 6/ t
  • 6/
  • 6/
  • 0/ - 0/106/ - 12/ - 6/ - 6/ - 6/
    • m s
    • m
    • m
    • m - p - p - p
  • 8/86/ t
  • 6/80/ - 8/ - 0/ - 12/ - 6/ - 6/ - 6/ - 2/
    • m s
    • m
    • m
    • m - p - p - p
  • 8/88/ t
  • 8/
  • 6/ - 10/108/ - 12/ - 6/ - 6/66/ - 2/ - 2/ - 2/ - 6/