Professional Documents
Culture Documents
Chapter2 TransportationProblem
Chapter2 TransportationProblem
Transportation-1
Outline
1) Example
2) Problem description
3) Solution method
Transportation-2
1. Example (1)
Transportation-3
1. Example (2)
Cost of Transport TVs from warehouses to MediaMarts:
Total HaiBaTrung TruongChinh ThanhXuan LongBien MyDinh
620 50 100 150 200 120
HaDong 4 2 1 5 3
150
SocSon 6 7 4 2 3
270
HungYen 6 8 7 1 3
200
Transportation-4
1. Example (3)
Transportation-5
1. Example (4)
Total HaiBaTrung TruongChinh ThanhXuan LongBien MyDinh
620 50 100 150 200 120
Transportation-6
Total cost: 4 x11 2 x12 x13 5 x14 3 x15
6 x21 7 x22 4 x23 2 x24 3 x25
6 x11 8 x12 7 x13 1x14 3 x15 min
Transportation-7
1. Example (5)
c x
3 5
min
i 1 j 1
ij ij
s.t.
j 1 j 1 j 1
1j 2j 3j
i 1 i 1 i 1 i 1 i 1
i1 i2 i3 i4 i5
Transportation-8
2. Description problem
Transportation-9
Simple Network Representation
Sources Destinations
Supply a1 1 Demand b1
1
Supply a2 2
2 Demand b2
…
…
xij
n Demand bn
Supply am m
Costs cij
Transportation-10
Formulation
c x
m n
min
i 1 j 1
ij ij
s.t.
x ai ;
n
j 1
ij
x bj ;
m
i 1
ij
Transportation-11
Solution representation
Transportation-12
Transportation Problems (TP)
• Linear programming
Transportation-13
Feasible Solutions
a b
m n
i 1 j 1
i j
Transportation-14
3. Transportation Simplex Method
Transportation-15
3. Transportation Simplex Method
Initialization
(Find an initial solution)
Is the
current Yes
Stop
solution
optimal?
No
Move to a better
adjacent solution
Transportation-16
The Transportation Tableau
Des.
b1 b2 … bn
Source
c11 c12 c1n
a1 …
x11 x12 x1n
… … … … …
Transportation-18
An solution is a vertex?
x ( xij ) is a vertex if
G(x)={(i,j)|x ij >0} does not contain any cycles
Transportation-19
Example
Given a=(50, 70, 55)T , b=(30, 60, 60, 25)T
4 7 12 7
C 5 9 6 1
8 2 9 1
Transportation-21
Northwest corner rule
Transportation-22
Example: Northwest corner rule
bj
60 30 40 70
ai
2 4 5 1
50
3 6 4 8
70
1 2 5 3
80
Transportation-23
Example: Northwest corner rule (1)
bj
60 30 40 70
ai
2 4 5 1
50
50
3 6 4 8
70
1 2 5 3
80
Transportation-24
Example: Northwest corner rule (2)
10
bj
60 30 40 70
ai
2 4 5 1
50
50
3 6 4 8
70
1 2 5 3
80
Transportation-25
Example: Northwest corner rule (3)
10
bj
60 30 40 70
ai
2 4 5 1
50
50
3 6 4 8
70 10
1 2 5 3
80
Transportation-26
Example: Northwest corner rule (4)
10
bj
60 30 40 70
ai
2 4 5 1
50
50
3 6 4 8
70 10
60
1 2 5 3
80
Transportation-27
Example: Northwest corner rule (5)
10
bj
60 30 40 70
ai
2 4 5 1
50
50
3 6 4 8
70 10 30
60
1 2 5 3
80
Transportation-28
Example: Northwest corner rule (6)
10
bj
60 30 40 70
ai
2 4 5 1
50
50
30 3 6 4 8
70 10 30
60
1 2 5 3
80
Transportation-29
Example: Northwest corner rule (7)
10
bj
60 30 40 70
ai
2 4 5 1
50
50
30 3 6 4 8
70 10 30 30
60
1 2 5 3
80
Transportation-30
Example: Northwest corner rule (8)
10 10
bj
60 30 40 70
ai
2 4 5 1
50
50
30 3 6 4 8
70 10 30 30
60
1 2 5 3
80
Transportation-31
Example: Northwest corner rule (9)
10 10
bj
60 30 40 70
ai
2 4 5 1
50
50
30 3 6 4 8
70 10 30 30
60
1 2 5 3
80
10
Transportation-32
Example: Northwest corner rule (10)
10 10
bj
60 30 40 70
ai
2 4 5 1
50
50
30 3 6 4 8
70 10 30 30
60
1 2 5 3
70 80
10
Transportation-33
Example: Northwest corner rule (11)
10 10
bj
60 30 40 70
ai
2 4 5 1
50
50
30 3 6 4 8
70 10 30 30
60
1 2 5 3
70 80
10 70
Transportation-34
The least cost method
Transportation-35
Example: The least cost method
bj
60 30 40 70
ai
2 4 5 1
50
3 6 4 8
70
1 2 5 3
80 60
Transportation-36
Example: The least cost method (1)
bj
60 30 40 70
ai
2 4 5 1
50
3 6 4 8
70
1 2 5 3
20 80 60
Transportation-37
Example: The least cost method (2)
20
bj
60 30 40 70
ai
2 4 5 1
50 50
3 6 4 8
70
1 2 5 3
20 80 60
Transportation-38
Example: The least cost method (3)
10 20
bj
60 30 40 70
ai
2 4 5 1
50 50
3 6 4 8
70
1 2 5 3
20 80 60 20
Transportation-39
Example: The least cost method (3)
10 20
bj
60 30 40 70
ai
2 4 5 1
50 50
3 6 4 8
70 40
30
1 2 5 3
20 80 60 20
Transportation-40
Example: The least cost method (4)
10 20
bj
60 30 40 70
ai
2 4 5 1
50 50
3 6 4 8
20 70 10 40
30
1 2 5 3
20 80 60 20
Transportation-41
Example: The least cost method (5)
10 20
bj
60 30 40 70
ai
2 4 5 1
50 50
3 6 4 8
20 70 10 40 20
30
1 2 5 3
20 80 60 20
Transportation-42
Optimality condition
Transportation-43
Optimality condition
Transportation-44
How to find a better vertex x1?
ik jk 0 x 0 is not optimal
=> how to find a better x1 ?
Transportation-45
How to find a better vertex x1?
xij0 if (i, j ) K ,
0
xij xij if (i, j ) K , where min{xij0 | (i, j ) K }.
x0
1
ij if (i, j ) K ,
We have: f ( x1 ) f ( x 0 ) ik jk
Transportation-46
Remark
f ( x1 ) f ( x 0 ) ik jk
=>The objective value decreases an amount of ik jk
Transportation-47
Transportation simplex algorithm(1)
Transportation-48
Transportation simplex algorithm (2)
Step 4:
Determine (ik , jk ) with ik jk max{ij 0 | (i, j ) G ( x 0 )}
Find K and K
xij0 if (i, j ) K ,
0
Calculate xij xij if (i, j ) K ,
x0
1
ij if (i, j ) K ,
where min{xij0 | (i, j ) K }.
Let x 0 : x1 and back to Step 1.
Transportation-49
Example
Transportation-50
Example (1)
Transportation-51
Example (2)
Transportation-52
Example (3)
Transportation-53
Example (4)
Transportation-54
4. The extension of TP
1) Non-balanced TP
4) TP with restrictions
5) TP in maximization form
i 1 j 1
i 1 j 1
Transportation-56
Supply > Demand ( ai > b j )
m n
i 1 j 1
=> xij ai
n
j 1
bn 1 ai b j 0
m n
i 1 j 1
Transportation-57
Non-balanced formulation
Transportation-58
Example
Transportation-59
Example(1)
Transportation-60
Example(2)
Transportation-61
Example(3)
Transportation-62
Example(4)
0 0 10 90 0 0 0 10 90
x* 0 70 30 0 60 xOPT 0 70 30 0
80 0 60 0 0 80 0 60 0
with f(x opt ) 1160
Transportation-63
Example(5)- unique?
0 10 0 90 0 0 10 0 90
x* 0 60 40 0 60 xOPT 0 60 40 0
80 0 60 0 0 80 0 60 0
with f(x opt ) 1160 Transportation-64
Example(6)
Transportation-65
Supply < Demand ( ai b j )
m n
i 1 j 1
=> xij ai
n
j 1
bn 1 ai b j 0
m n
i 1 j 1
Transportation-66
Non-balanced formulation
Transportation-67
4.2 TP with inequality constraints (TPIC)
Transportation-68
4.2 TP with inequality constraints (TPIC)
2 cases:
a)
b)
Transportation-69
4.2 TP with inequality constraints (TPIC)
a)
b)
Transportation-71
4.2 TP with inequality constraints -Case b
Transportation-72
4.3 Building warehouse problem
One corporation has m plants producing
a commodity with the quantity of ai , i 1,..., m respectively
Transportation-73
Example
One company has 3 plants. Actually, they have 2 warehouses.
They expect to build more 2 warehouses. Determine the size
of two new warehouses and the transportation solution from
the plants to the warehouses.
Transportation-74
Solution method
i 1
j 1 i 1
Transportation-75
Example-Solution method
i 1
j 1 i 1
Transportation-76
Example-Solution method
Transportation-77
Example-Solution method
Transportation-78
Example-Solution method
0 75 0 5
x*
0 0 110 0
85 0 5
0
0 0 170 270
i 1
i 1
Transportation-80
Example
One commodity is transported from three supply points with
quantity of 70, 110 and 120 to three receiving points with the
demand of 80, 100 and 160. Assume that:
- Priority is that the first receiving point got enough commodity.
- The third receiving point got an amount greater than 140.
- No ship from the first supply point to the second receiving
point.
Find the optimal transportation solution, knowing that
Transportation-81
Example-Solution method (1)
Transportation-82
Example-Solution method(2)
• After 2 iterations:
Transportation-83
4.5 TP in maximization form
Transportation-84
Example
Transportation-85
Example (1)
Transportation-86
Example (2)
Transportation-87
Example (3)
Transportation-88
4.6 Personnel assignment problem (PAP)
Transportation-89
4.6 PAP – formulation (1)
c x
n n
min
i 1 j 1
ij ij
s.t.
x 1, i 1, 2,..., n;
n
i 1
ij
x 1, j 1, 2,..., n;
n
j 1
ij
Transportation-90
4.6 PAP – formulation (2)
c x
n n
min
i 1 j 1
ij ij
s.t.
x 1, i 1, 2,..., n;
n
i 1
ij
x 1, j 1, 2,..., n;
n
j 1
ij
Transportation-91
Exercise 1
a) x is a vertex?
b) This problem has optimal solutions? Vector x in
Question a is an optimal solution? Calculate the cost if
using this solution.
Transportation-92
Exercise 2
Transportation-93
Exercise 3
Transportation-94
Exercise 4
Transportation-95
Exercise 5
Transportation-96
Exercise 6
Transportation-97
Exercise 7
Solve the following problems:
Transportation-98
CHAPTER 3
INPUT OUTPUT MODELS
1
3.1 Introduction
There is a dependence of industries in
economics:
Eg.:
Steel industry needs Labour + Coal + many
products (as inputs of manufacture
process).
2
I. Introduction
A direct dependence of two industries arises
when the output of each is a input of the other.
Eg:
Coal- output of mining industry
=> input of thermal power industry.
3
I. Introduction
A modern economic has many (hundred,
milion) different products. They are almost
used as inputs of other product manufacture
process in direct/indirect way.
Quantity of a product?
Total = Consumer + Invest + Export + Input
for other industries.
4
1.1 History
François Quesnay proposed Economic Table
(Tableau économique) in 1758
5
1.1 History
After World War 1, Statistical science developed
6
Wassily Leontief 1905-1999
8
SNA
SNA investigates complex transaction
network of economic entities that a
country produced.
9
Importance
I/O model is used by many countries
10
1.2 Some definitions
Pure industry
11
Pure industry
12
Primary input factors
Import
Labor (Salary)
Depreciation and amortization
Tax
Profit
13
Final product
Total quantity:
- Intermediate product (input for the other
industries)
- Final product: final demand
14
Hypothesis
15
1.3 Classification of I/O table
Based on the expression patterns
- I/O in kind
- I/O in value
16
2. Static I/O Model
2.1 I/O Model in kind
17
2.1. I/O model in kind
I/O table is often built by the one-year cycle
18
I/O table
Product. Unit Consumption industry Final Total
industry product
1 2 … j … n
1 Km/h q11 q12 … q1j … q1n q1 Q1
… … … … … … … … … …
… … … … … … … … … …
19
Notation
i: index of production industry, i= 1..n
j: index of consumption industry, j= 1..n
Qi: product quantity of industry i
qi: final product of industry i
qij: quantity of product i for industry j
Q0: labor used in 1 year
q0j: amount of labor used in industry j
q0: amount of labor used in non-production area
20
Equations
Product distribution equation
21
Direct cost coefficient in kind
22
We have:
23
Direct cost matrix in kind
24
Entire cost matrix in kind
25
Coefficient of the direct costs of the labor
industry j:
26
Example
Given an I/O table with 3 industries:
27
a) Direct cost matrix
28
b) Labor using coefficient vector
29
c) Explain the coefficients:
- In order that industry 1 produces an unit of
product, it needs 0.2 unit of its product.
30
Exercise
Given a I/O table with 3 industries:
Ngành 1 2 3 SP Sản
cuối cùng lượng
1 20 ? 15 41 100
2 20 12 30 ? 120
3 10 24 45 71 ?
10 24 45 16 95
32
2.2 I/O table in value
Product. Consumption industry FP Total
industry 1 2 … j … n
1 x11 x12 … x1j … x1n y1 X1
2 X21 x22 … x2j … x2n y2 X2
… … … … … … … … …
i Xị1 xị2 … xịj … xịn yị Xị
… … … … … … … … …
n Xn1 Xn2 … xnj … xnn yn Xn
PIF
Import g11 g12 … g1j … g1n G1
Labor g21 g22 … g2j … g2n G2
DaA g31 g32 … g3j … g3n G3
Tax g41 g42 … g4j … g4n G4
Profit g51 g52 … g5j … g5n G5
Total X1 X2 … Xj … Xn
33
Notations
Xi: value of industry i,
34
Direct cost coefficient in value
Meaning:
to produce a money unit of industry j, industry i
has to supply aij money unit.
35
Direct cost matrix in value
A = (aij)nxn
Property:
1) aij in [0,1)
2)
36
Basic equations
Product value distribution equation:
37
Basic equations
Product value forming equation
38
Primary input factor coefficient
39
Remarks
1) bhj in [0,1)
2) One has:
40
Example
Consider an economic system having 3 industries with
0.2 0.3 0.2 0 0 0.1 320
A= 0.2 0.3 0.1 0.2 0.05 0.2 Y= 140
0.1 0.2 0.1 B= 0.1 0 0.1 40
0.1 0 0.1
0.1 0.15 0.1
41
Answer
Product. Consumption industry FP Total
industry
1 2 3
1 120 120 40 320 600
2 120 120 20 140 400
3 60 80 20 40 200
PIF
Import 0 0 20 20
Labor 120 20 40 180
DaA 60 0 20 80
Tax 60 0 20 80
Profit 60 60 20 140
Total 600 400 200
42
Answer
b12=0 => Industry 2 does not import anything
43
Entire cost coefficient
44
That means:
X1=c1j, …, Xi=cij, …, Xn = cnj
45
C=(I-A)-1=I + A + A2 + … + Am
with m sufficiently large
cii > 1 for all i
46
Sum of elements in j-th column of C is the
entire cost of all industries for one unit of final
demand of industry i.
The vector
48
Example
Vietnam I/O table in 1996 with 3 economic areas:
I: Agriculture, forestry and fishery
II: Mining industry, power industry, processing and
construction industry
III: service activities
Matrix A:
I II III
49
Matrix C
I II III Sum
I 1.2052 0.4008 0.1015 1.7075
50
3. Some applications of I/0 table
51
3.1 Create a production plan
Input: I/O table of period t
final demand of period (t+1)
Output:
I/O table of period (t+1)
________________________________
Assume that:
A(t)= A(t+1)
B(t)= B(t+1)
52
Schema
Step 1: From I/O table of period t, calculate A
53
Example
Product. Consumption industry FP Total
industry
1 2 3
1 50 60 40 100 250
2 100 20 40 40 200
3 25 60 40 75 200
PIF
Import 10 0 5
Labor 15 20 20
DaA 10 10 15
Tax 10 10 10
Profit 30 20 30
54
Knowing that
y1 increases 5%
y2 increases 10%
y3 increases 10%
Build I/O table in period (t+1)
55
We have:
y1(t+1)= y1x 105%=105
y2(t+1)= y2x 110%=44
y3(t+1)= y3x 110%=82.5
56
Step 1: Calculate A
57
Step 2
0.04 0 0.025
0.06 0.1 0.1
B= 0.04 0.05 0.075
0.04 0.05 0.05
0.12 0.1 0.15
58
Step 4: Determine X
(I-A)X =Y
0.8 -0.3 -0.2 X1 105
-0.4 0.9 -0.2 X2 44
-0.1 -0.3 0.8 X3 82.5
X1 = 266.406
X2 = 215.573
X3 = 217.266
59
Step 5: New table
Product. Consumption industry FP Total
industry
1 2 3
PIF
60
3.2 Determine Price
61
Eg. 1000VND/bread = 500 VND for
wheat + 500 VND for value added
(salary, profit, tax …)
We have:
62
If in the period (t+1) we know
then
63
Example
Given
1.719 0.781 0.625
C= 0.885 1.615 0.625
0.547 0.703 1.563
and WT=(0.2 0.15 0.1)
a) Calculate the price of each industry
b) If ΔWT=(-0,05 0.05 0.1) then how do the
prices change?
64
Chapter IV
Inventory Management
65
4.1 Introduction
Enterprise needs inventory
If inventory is not enough
=> affect to production/ dangerous
eg.run out of material when closing to duedate
run out of fuel when a plane is flying
run out of medicine at an emergency department
If inventory is big
=>capital, maintenance cost
Problem: Determine a suitable quantity for
inventory
66
Some types of cost
a) Cost for employing a contract
b) Cost for maintenance
c) Extra cost
67
a) Cost for a contract
+) Fixed cost: A
Invoice, fax, tel., transaction,…
+) Commodity cost
C: cost for an unit of commodity for inventory
(buying cost, transportation cost, …)
S: quantity of commodity
Commodity cost = C.S
68
b) Maintenance cost
Direct cost:
renting warehouses
salary for guards
Facility for maintaining commodity
Indirect cost:
Interest when using capital from banks
69
c) Extra cost
70
4.2 Wilson inventory model
Each year, fixed demand: Q
Consuming rate is a constant
Time for commodity transportation is 0
71
Strategy
We only order a new contract when
warehouses are run out of commodity (avoid
the maintenance cost)
We have a monotone function representing the
relation between the quantity of remaining
commodity and inventory time
Q
40000 Q(t)
20000
t
1 year
72
Notations
Q: quantity of commodity demand for inventory per year,
A: fixed cost
73
Cost for n contracts in one year = n.A+C.Q
Since n=Q/S
74
Solution
Min D1 = C.Q +A Q/S + I.C.S/2
Min D(S) = A Q/S + I.C.S/2
: Wilson’s formula
75
Optimal average inventory:
Optimal cost:
76
Graphical representation
Consider D= AQ/S + ICS/2
Let D1= ICS/2 and D2= AQ/S
d2 d
ICS* d1
S*
77
Remarks
Carrying out a contract takes time
=> do order before inventory level = 0
78
Example
One import-export company need supply one
kind of commodity to the market with the
demand of 120000 ton/year. The fixed cost is
400 million VND. The maintenance cost
coefficient is 0.1. The cost for this kind of
commodity is 600 thousand VND/ton. The
transportation duration is 6 months.
80
Optimal quantity of commodity needed to buy?
81
Optimal total cost?
82
Optimal total cost?
83
Optimal number of contracts:
84
Average inventory quantity?
85
Average inventory quantity?
86
Contract point?
87
Contract point?
88
Contract point?
89
4.3 Gradual replacement model
In Wilson model, S units of commodity are
added to the warehouse at the same time
90
Model
Q: quantity of commodity demand for inventory in
period T,
K: replacement rate of commodity in T = 1 year
A: fixed cost
C: cost of an unit of commodity
I: maintenance cost coefficient
S: quantity of commodity needed to buy each time,
D1: total cost for inventory
91
Solution
Let Tn be the duration of getting a lot of S => Tn= S/K
In T= 1 year, if getting commodity continuously, the
redundant amount: K-Q
In Tn year, if getting commodity continuously, the
redundant amount : Tn(K-Q) = (S/K)(K-Q)= S(1-Q/K)
=> Average inventory: Z= S(1-Q/K)/2
92
S(1-Q/K)
Tn Tt
93
The cost (order + store commodity):
D(S) = nA + IC(S/2)(1-Q/K)
=AQ/S +(IC/2)(1-Q/K).S min
94
Similar to Wilson model, the contract point:
B = Q.L –m.S*
95
Remark 1
Each time, one gets a lot of S units
max amount of commodity in the warehouse:
S(1-Q/K)
96
Remark 2
97