Network Models Tran Van Hoai Faculty of Computer Science & Engineering HCMC University of Technology...

22
Network Models Tran Van Hoai Faculty of Computer Science & Engineering HCMC University of Technology 2010-2011 1 Tran Van Hoai

Transcript of Network Models Tran Van Hoai Faculty of Computer Science & Engineering HCMC University of Technology...

Page 1: Network Models Tran Van Hoai Faculty of Computer Science & Engineering HCMC University of Technology 2010-20111Tran Van Hoai.

Tran Van Hoai 1

Network Models

Tran Van HoaiFaculty of Computer Science & Engineering

HCMC University of Technology

2010-2011

Page 2: Network Models Tran Van Hoai Faculty of Computer Science & Engineering HCMC University of Technology 2010-20111Tran Van Hoai.

Tran Van Hoai 2

Harmful Waste Collection at HCM city

Industrial zoneProcessing Factory

Industrial zone

Industrial zone Industrial zoneProcessing Factory2010-2011

Page 3: Network Models Tran Van Hoai Faculty of Computer Science & Engineering HCMC University of Technology 2010-20111Tran Van Hoai.

Tran Van Hoai 3

Typical route

Depot

2010-2011

Page 4: Network Models Tran Van Hoai Faculty of Computer Science & Engineering HCMC University of Technology 2010-20111Tran Van Hoai.

Tran Van Hoai 4

Solution

2010-2011

HIGHLY COMPLEX

PRACTICAL ISSUES

Page 5: Network Models Tran Van Hoai Faculty of Computer Science & Engineering HCMC University of Technology 2010-20111Tran Van Hoai.

Tran Van Hoai 5

Problem Constraints

• Vehicle’s capacity• Customer’s Time Window• Conflict Harmful Waste cannot transport in

the same vehicles• Maximum time for a route• …

2010-2011

Page 6: Network Models Tran Van Hoai Faculty of Computer Science & Engineering HCMC University of Technology 2010-20111Tran Van Hoai.

Tran Van Hoai 6

Objectives• Minimize cost travel• Minimize the number of vehicles• Balance workload among the vehicles• Minimize waiting time needed to

serve customers in their required hours

• Satisfy service requirements• …

2010-2011

Page 7: Network Models Tran Van Hoai Faculty of Computer Science & Engineering HCMC University of Technology 2010-20111Tran Van Hoai.

Tran Van Hoai 7

Delivery route without optimization

2010-2011

STRATEGY: GO TO THE NEAREST LOCATION FIRST

Page 8: Network Models Tran Van Hoai Faculty of Computer Science & Engineering HCMC University of Technology 2010-20111Tran Van Hoai.

Tran Van Hoai 8

Delivery route with optimization

2010-2011

Practical problems are much more difficult• Traffic jam (time-dependence)• Delivery time (time-window)• Carrier capacity (space-dependence)• Precedence constraint• …

Traffic jam from 6:30am to 9am

Delivery time from 9am to 10am

Page 9: Network Models Tran Van Hoai Faculty of Computer Science & Engineering HCMC University of Technology 2010-20111Tran Van Hoai.

Tran Van Hoai 9

Networks

• Nodes– Microchips, cities, TV stations,…

• Arcs– Wires, roads, satellite transmission,…

• Functions (defining resource)– Resource: electrical current, delivery trucks, TV program,…)

2010-2011

Network =- A set of nodes- A set of arcs (connecting nodes)- Functions defined on nodes & arcs

Page 10: Network Models Tran Van Hoai Faculty of Computer Science & Engineering HCMC University of Technology 2010-20111Tran Van Hoai.

Tran Van Hoai 10

Classification (1)

• Network flow models– Delivery of goods or resource from supply nodes,

thru intermediate nodes, to demand nodes– Examples: • Transportation models• Capacitated transshipment models• Assignment models• Shortest path models• Maximum flow models

2010-2011

Page 11: Network Models Tran Van Hoai Faculty of Computer Science & Engineering HCMC University of Technology 2010-20111Tran Van Hoai.

Tran Van Hoai 11

Classification (2)

• Network connectivity models– Link all nodes together– Examples: • Traveling salesman models• Minimal spanning tree models

2010-2011

Flow models can be modeled as LP (although they are ILP)

Connectivity models cannot modeled as LP

Page 12: Network Models Tran Van Hoai Faculty of Computer Science & Engineering HCMC University of Technology 2010-20111Tran Van Hoai.

Tran Van Hoai 12

Terminology (1)

2010-2011

i jFLOW Xij

CAPACITY Uij

Decisionvariable

i jDirected arc

i jUndirected arc

Page 13: Network Models Tran Van Hoai Faculty of Computer Science & Engineering HCMC University of Technology 2010-20111Tran Van Hoai.

Tran Van Hoai 13

Terminology (2)

2010-2011

1 3

25

4

7

6Path

Cycle

Page 14: Network Models Tran Van Hoai Faculty of Computer Science & Engineering HCMC University of Technology 2010-20111Tran Van Hoai.

Tran Van Hoai 14

Terminology (3)

2010-2011

1 3

25

4

7

6Tree

Spanning tree

Page 15: Network Models Tran Van Hoai Faculty of Computer Science & Engineering HCMC University of Technology 2010-20111Tran Van Hoai.

Tran Van Hoai 15

Transportation model

2010-2011

- m sources- Supply resource at source Si

- n destinations- Demands for resource at destination Di

- Unit shipping cost Cij between i & j

GOAL: minimize total shipping cost

Page 16: Network Models Tran Van Hoai Faculty of Computer Science & Engineering HCMC University of Technology 2010-20111Tran Van Hoai.

Tran Van Hoai 16

Carlton Pharmaceutical transportation network

2010-2011

5

4

7

6

Distributionwarehouses

1

3

2

Productionplants

S1=1200

S2=1000

S3=800

D1=1100

D2=400

D3=750

D4=750

3530

4032

3740

4225

4015

2028

Page 17: Network Models Tran Van Hoai Faculty of Computer Science & Engineering HCMC University of Technology 2010-20111Tran Van Hoai.

Tran Van Hoai 17

Assumptions (simplification)

• Constant per item shipping cost• All shipping performed simultaneously (within

fixed time frame)• Vaccine only shipped from source to

destination

2010-2011

Page 18: Network Models Tran Van Hoai Faculty of Computer Science & Engineering HCMC University of Technology 2010-20111Tran Van Hoai.

Tran Van Hoai 18

FormulationMIN <Total shipping cost>S.T. <Amount shipped from each

source>≤ <Supply at that source>

<Amount received at each destination>

= <Demand at that destination>

<No negative shipments>

2010-2011

• Xij: shipment from i (1,…,3) to j (4,…,7)• 12 integer variables

• Complexity increases quickly when number sources (destinations) increases

Page 19: Network Models Tran Van Hoai Faculty of Computer Science & Engineering HCMC University of Technology 2010-20111Tran Van Hoai.

Tran Van Hoai 19

Practical issues

• Blocked routes– Xij = 0 means no vaccine assigned to route i to j– Or ….

• Minimum/maximum shipments– Lij ≤ Xij ≤ Uij

• Production planning can be considered as transportation model

2010-2011

Page 20: Network Models Tran Van Hoai Faculty of Computer Science & Engineering HCMC University of Technology 2010-20111Tran Van Hoai.

Tran Van Hoai 20

Capacitated transshipment networks

2010-2011

5

4

7

6

Distributionwarehouses

1

3

2

Productionplants

S1=1200

S2=1000

S3=800

D1=1100

D2=400

D3=750

D4=750

3530

4032

3740

4225

4015

2028

Intermediate nodes(no supply, no demand)

Page 21: Network Models Tran Van Hoai Faculty of Computer Science & Engineering HCMC University of Technology 2010-20111Tran Van Hoai.

Tran Van Hoai 21

Capacitated transshipment

2010-2011

Constraints:- supply node: net flow out (flow out – flow in) not exceed its supply

- intermediate node: net flow out = 0- demand node: net flow out = - demand

GOAL: minimize total shipping cost(capacitated transshipment = general network model)

Page 22: Network Models Tran Van Hoai Faculty of Computer Science & Engineering HCMC University of Technology 2010-20111Tran Van Hoai.

Tran Van Hoai 22

Depot Max

2010-2011

Alexandria

Chevy chase

Fairfax

Gerogetown

Fall Church

Bethesda

Supply nodes

Transshipment nodes

Demandnodes

S1=10

S2=17

D5=12

D6=13$1510

$1517

$117

$7 5

$78

$1012

$6 7

$53

$206