








Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!









(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.
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.
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
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
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.
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