Operations Optimazation
Operations Optimazation
3 Maximum-Flow Problems
Many situations can be modeled by a network in which the arcs may be thought of as having a
capacity that limits the quantity of a product that may be shipped through the arc. In these situations,
it is often desired to transport the maximum amount of flow from a starting point (called the source
= so) to a terminal point (called the sink = si). Such problems are called maximum-flow problems.
- Biến là lưu lượng chuyển qua các cung ở trong mạng
LP Solution of Maximum-Flow Problems
Sunco Oil muốn vận chuyển lượng dầu tối đa có thể (mỗi giờ) qua đường ống từ nút so đến nút si
trong Hình 6.
Dầu phải đi qua một số hoặc tất cả các trạm 1, 2 và 3. Các cung khác nhau biểu thị các đường ống
có đường kính khác nhau. Số lượng thùng dầu tối đa (triệu thùng/giờ) có thể được bơm qua mỗi
cung được thể hiện trong Bảng 8.
Mỗi số được gọi là arc capacity.
Xây dựng một LP có thể được sử dụng để xác định số lượng thùng dầu tối đa cho mỗi giờ có thể
được gửi từ so tới si.
Node so is called the source node because oil flows out of it but no oil flows into it. Analogously,
node si is called the sink node because oil flows into it and no oil flows out of it. For reasons that
will soon become clear, we have added an artificial arc a0 from the sink to the source. The flow
through a0 is not actually oil, hence the term artificial arc.
To formulate an LP that will yield the maximum flow from node so to si, we observe that Sunco
must determine how much oil (per hour) should be sent through arc (i, j). Thus, we define
xij = millions of barrels of oil per hour that will pass through arc (i,j) of pipeline
As an example of a possible flow (termed a feasible flow), consider the flow indentified by the
numbers in parentheses in Figure 6.
(vào + ra -)
Xo1 Xo2 X12 X13 X2i X3i Xi0 RHS
HMTmaxXio 1 = Z
Nút 0 1 1 0 0 0 0 -1 = 0
Nút 1 -1 1 1 = 0
Nút 2 -1 -1 1 = 0
Nút 3 -1 1 = 0
Nút 4 -1 -1 1 = 0
Cung 01 1 0 0 0 0 0 0 < 2
Cung 02 1 < 3
Cung 03 1 < 3
Cung 04 1 < 4
Cung 05 1 < 2
Cung 06 1 1
And
We assume that no oil gets lost while being pumped through the network, so at each node, a feasible
flow must satify (2), the conservation-of-flow constraint. The introduction of the artificial arc a0
allows us to write the conservation-of-flow constraint for the source and sink.
If we let x0 be the flow through the artificial arc, then conservation of flow implies that x0 5 total
amount of oil entering the sink. Thus, Sunco’s goal is to maximize x0 subject to (1) and (2):
One optimal solution to this LP is z = 3; xso,1 = 2; x13 = 1; x12 = 1; xso,2 = 1; x3,si = 1; x2,si = 2;
x0 = 3. Thus, the maximum possible flow of oil from node so to si is 3 million barrels per hour, with
1 million barrels each sent via the following paths: so–1–2–si, so–1–3–si,
Max z = XBA
A : XBA = XA1 + XA2 + XA3 + XA4
F : XA1 =
Cách 2
PROBLEM 5/447. Consider the (simplified) list of activities and predecessors that are involved in
building a house (Table 20).
a Draw a project network, determine the critical path, find the total float for each activity, and find
the free float for each activity.
Chú ý: Node nào không còn step tiếp theo thì nối đến END
ti = early start of node i (i > 0; với mọi i = 1…..8
min z = t8 - t1
st t2 > t1 + 5
t3 > t2 + 8
t4 > t3 +10
t5 > t3 + 5 forward
t6 > t3 + 4
t7 > t6 +6
t7 > t4
t8 > t7 + 3
t8 > t5
min = 30*A+15*B+20*C+40*D+20*E+30*F+40*G;
t8-t1<20;
A<2; B<3;C<1;D<2;E<2;F<3;G<1;
t2 > t1 + 5-A;
t3 > t2 + 8-B;
t4 > t3 +10-C;
t5 > t3 + 5-D;
t6 > t3 + 4-E;
t7 > t6 +6-F;
t7 > t4;
t8 > t7 + 3-G;
t8 > t5;