Docsity

Network Flow Problems: Examples and Solutions, Exercises of Programming for Engineers

Toggle sidebar
bg1
Examples of Network Flow Questions
Professor: Hadi Salmasian
1. Consider the traffic flow described by the following diagram. The letters
Athrough Elabel intersections. The arrows indicate the direction of flow (all
roads are one-way) and their labels indicate flow in cars per minute.
x7
B
x3
~~
x8//C
x4
x1
150 //A
x6
D//300
E
x5
>>
x2
(a) Write down a linear system describing the traffic flow, i.e., all constraints
on the variables xi, i = 1,...,8. (Do not solve the linear system at this stage.)
Solution.
A x3+ 150 = x6
B x7=x3+x8
C x8=x1+x4
D x1+x5= 300
E x4+x6=x2+x5
Total x7+ 150 = x2+ 300
(b) The reduced row echelon form of the augmented matrix corresponding to
the linear system in part (a) is:
1 0 0 0 1 0 0 0 300
0 1 0 0 0 0 −1 0 −150
0 0 1 0 0 0 −1 1 0
0001−1 0 0 −1−300
0 0 0 0 0 1 −1 1 150
0 0 0 0 0 0 0 0 0
Find the general flow pattern (i.e., the general solution of the linear system).
1
pf3
pf4

Partial preview of the text

Download Network Flow Problems: Examples and Solutions and more Exercises Programming for Engineers in PDF only on Docsity!

Examples of Network Flow Questions

Professor: Hadi Salmasian

  1. Consider the traffic flow described by the following diagram. The letters

A through E label intersections. The arrows indicate the direction of flow (all

roads are one-way) and their labels indicate flow in cars per minute.

x 7

B

x 3

~ ~

x 8 / / C

x 4

x 1

A

x 6

D

E

x 5

x 2

(a) Write down a linear system describing the traffic flow, i.e., all constraints

on the variables xi, i = 1,... , 8. (Do not solve the linear system at this stage.)

Solution.

A x 3 + 150 = x 6

B x 7 = x 3 + x 8

C x 8 = x 1 + x 4

D x 1 + x 5 = 300

E x 4 + x 6 = x 2 + x 5

Total x 7 + 150 = x 2 + 300

(b) The reduced row echelon form of the augmented matrix corresponding to

the linear system in part (a) is:

Find the general flow pattern (i.e., the general solution of the linear system).

Solution. x 1 , x 2 , x 3 , x 4 , x 6 : basic; x 5 , x 7 , x 8 : free.

x 1

= −x 5

x 2 = x 7 − 150

x 3 = x 7 − x 8

x 4 = x 5 + x 8 − 300

x 5 = free

x 6 = x 7 − x 8 + 150

x 7 = free

x 8 = free

(c) Suppose we know that at least 170 cars per minute enter the intersection B

from the north. Determine the minimum number of cars that will be leaving

the intersection E towards south.

Solution. Since x 2 = x 7 − 150, from x 7 ≥ 170 it follows that x 2 ≥ 170 − 150 =

x 1 = 200 − x 4

x 2

= 200 + x 4

x 3 = x 7 − 200

x 4 : free

x 5

= 300 − x 7

x 6 = 300

x 7 : free

(c) Suppose that due to road work, the flow along BC is limited to a maximum

of 25 cars per minute. What is the maximum possible flow along EB?

Solution. Since x 4 ≤ 25 and x 2 = 200 + x 4 we obtain x 2 ≤ 225.