45
Network Models Management 560: Management Science March 31, 2009 Management 560: Management Science Network Models

Network ModelsNetwork Flow Model: Shortest Route 2/ 12 In these problems, there is only one item (person/truck/etc) that comes from one source and arrives one destination. The problem:

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Network ModelsNetwork Flow Model: Shortest Route 2/ 12 In these problems, there is only one item (person/truck/etc) that comes from one source and arrives one destination. The problem:

Network Models

Management 560: Management Science

March 31, 2009

Management 560: Management Science Network Models

Page 2: Network ModelsNetwork Flow Model: Shortest Route 2/ 12 In these problems, there is only one item (person/truck/etc) that comes from one source and arrives one destination. The problem:

Network Flow Model: Shortest Route 2/ 12

In these problems, there is only one item (person/truck/etc)that comes from one source and arrives one destination.

The problem: there are lots of intermediate points (nodes)and lots of routes to choose from.

Branch: path from one node to an adjacent node.

Management 560: Management Science Network Models

Page 3: Network ModelsNetwork Flow Model: Shortest Route 2/ 12 In these problems, there is only one item (person/truck/etc) that comes from one source and arrives one destination. The problem:

Network Flow Model: Shortest Route 2/ 12

In these problems, there is only one item (person/truck/etc)that comes from one source and arrives one destination.

The problem: there are lots of intermediate points (nodes)and lots of routes to choose from.

Branch: path from one node to an adjacent node.

Management 560: Management Science Network Models

Page 4: Network ModelsNetwork Flow Model: Shortest Route 2/ 12 In these problems, there is only one item (person/truck/etc) that comes from one source and arrives one destination. The problem:

Network Flow Model: Shortest Route 2/ 12

In these problems, there is only one item (person/truck/etc)that comes from one source and arrives one destination.

The problem: there are lots of intermediate points (nodes)and lots of routes to choose from.

Branch: path from one node to an adjacent node.

Management 560: Management Science Network Models

Page 5: Network ModelsNetwork Flow Model: Shortest Route 2/ 12 In these problems, there is only one item (person/truck/etc) that comes from one source and arrives one destination. The problem:

Example 3/ 12

Goal: Drive from Roanoke, VA to Washington DC, using thefastest route (without using Mapquest).

The possible routes and distances are given below.

Management 560: Management Science Network Models

Page 6: Network ModelsNetwork Flow Model: Shortest Route 2/ 12 In these problems, there is only one item (person/truck/etc) that comes from one source and arrives one destination. The problem:

Solving by Hand 4/ 12

Start with source, add it to the permanent set.

Find closest node to the permanent set, add it to thepermanent set.

Add this node to the permanent set, and note the distancefrom the source.

Repeat: add the node that is adjacent to the permanent set,that is closest to the source.

This methodology gives you the shortest route to every point!

Management 560: Management Science Network Models

Page 7: Network ModelsNetwork Flow Model: Shortest Route 2/ 12 In these problems, there is only one item (person/truck/etc) that comes from one source and arrives one destination. The problem:

Solving by Hand 4/ 12

Start with source, add it to the permanent set.

Find closest node to the permanent set, add it to thepermanent set.

Add this node to the permanent set, and note the distancefrom the source.

Repeat: add the node that is adjacent to the permanent set,that is closest to the source.

This methodology gives you the shortest route to every point!

Management 560: Management Science Network Models

Page 8: Network ModelsNetwork Flow Model: Shortest Route 2/ 12 In these problems, there is only one item (person/truck/etc) that comes from one source and arrives one destination. The problem:

Solving by Hand 4/ 12

Start with source, add it to the permanent set.

Find closest node to the permanent set, add it to thepermanent set.

Add this node to the permanent set, and note the distancefrom the source.

Repeat: add the node that is adjacent to the permanent set,that is closest to the source.

This methodology gives you the shortest route to every point!

Management 560: Management Science Network Models

Page 9: Network ModelsNetwork Flow Model: Shortest Route 2/ 12 In these problems, there is only one item (person/truck/etc) that comes from one source and arrives one destination. The problem:

Solving by Hand 4/ 12

Start with source, add it to the permanent set.

Find closest node to the permanent set, add it to thepermanent set.

Add this node to the permanent set, and note the distancefrom the source.

Repeat: add the node that is adjacent to the permanent set,that is closest to the source.

This methodology gives you the shortest route to every point!

Management 560: Management Science Network Models

Page 10: Network ModelsNetwork Flow Model: Shortest Route 2/ 12 In these problems, there is only one item (person/truck/etc) that comes from one source and arrives one destination. The problem:

Solving by Hand 4/ 12

Start with source, add it to the permanent set.

Find closest node to the permanent set, add it to thepermanent set.

Add this node to the permanent set, and note the distancefrom the source.

Repeat: add the node that is adjacent to the permanent set,that is closest to the source.

This methodology gives you the shortest route to every point!

Management 560: Management Science Network Models

Page 11: Network ModelsNetwork Flow Model: Shortest Route 2/ 12 In these problems, there is only one item (person/truck/etc) that comes from one source and arrives one destination. The problem:

Solving using Excel 5/ 12

Design a binary linear programming problem, where eachbranch is a decision variable.

In Excel, make a row for each branch, leave a blank columnfor the decision, and enter a column of travel times.

From this, you can compute the total travel time.

Constraints:

Source node: all branches out must add to 1.Destination node: all branches in must add to 1.Intermediate nodes: all branches in must equal all branchesout.

Figure out the optimal path and driving time for the exampleproblem.

Management 560: Management Science Network Models

Page 12: Network ModelsNetwork Flow Model: Shortest Route 2/ 12 In these problems, there is only one item (person/truck/etc) that comes from one source and arrives one destination. The problem:

Solving using Excel 5/ 12

Design a binary linear programming problem, where eachbranch is a decision variable.

In Excel, make a row for each branch, leave a blank columnfor the decision, and enter a column of travel times.

From this, you can compute the total travel time.

Constraints:

Source node: all branches out must add to 1.Destination node: all branches in must add to 1.Intermediate nodes: all branches in must equal all branchesout.

Figure out the optimal path and driving time for the exampleproblem.

Management 560: Management Science Network Models

Page 13: Network ModelsNetwork Flow Model: Shortest Route 2/ 12 In these problems, there is only one item (person/truck/etc) that comes from one source and arrives one destination. The problem:

Solving using Excel 5/ 12

Design a binary linear programming problem, where eachbranch is a decision variable.

In Excel, make a row for each branch, leave a blank columnfor the decision, and enter a column of travel times.

From this, you can compute the total travel time.

Constraints:

Source node: all branches out must add to 1.Destination node: all branches in must add to 1.Intermediate nodes: all branches in must equal all branchesout.

Figure out the optimal path and driving time for the exampleproblem.

Management 560: Management Science Network Models

Page 14: Network ModelsNetwork Flow Model: Shortest Route 2/ 12 In these problems, there is only one item (person/truck/etc) that comes from one source and arrives one destination. The problem:

Solving using Excel 5/ 12

Design a binary linear programming problem, where eachbranch is a decision variable.

In Excel, make a row for each branch, leave a blank columnfor the decision, and enter a column of travel times.

From this, you can compute the total travel time.

Constraints:

Source node: all branches out must add to 1.Destination node: all branches in must add to 1.Intermediate nodes: all branches in must equal all branchesout.

Figure out the optimal path and driving time for the exampleproblem.

Management 560: Management Science Network Models

Page 15: Network ModelsNetwork Flow Model: Shortest Route 2/ 12 In these problems, there is only one item (person/truck/etc) that comes from one source and arrives one destination. The problem:

Solving using Excel 5/ 12

Design a binary linear programming problem, where eachbranch is a decision variable.

In Excel, make a row for each branch, leave a blank columnfor the decision, and enter a column of travel times.

From this, you can compute the total travel time.

Constraints:

Source node: all branches out must add to 1.Destination node: all branches in must add to 1.Intermediate nodes: all branches in must equal all branchesout.

Figure out the optimal path and driving time for the exampleproblem.

Management 560: Management Science Network Models

Page 16: Network ModelsNetwork Flow Model: Shortest Route 2/ 12 In these problems, there is only one item (person/truck/etc) that comes from one source and arrives one destination. The problem:

Solving using Excel 5/ 12

Design a binary linear programming problem, where eachbranch is a decision variable.

In Excel, make a row for each branch, leave a blank columnfor the decision, and enter a column of travel times.

From this, you can compute the total travel time.

Constraints:

Source node: all branches out must add to 1.Destination node: all branches in must add to 1.Intermediate nodes: all branches in must equal all branchesout.

Figure out the optimal path and driving time for the exampleproblem.

Management 560: Management Science Network Models

Page 17: Network ModelsNetwork Flow Model: Shortest Route 2/ 12 In these problems, there is only one item (person/truck/etc) that comes from one source and arrives one destination. The problem:

Solving using Excel 5/ 12

Design a binary linear programming problem, where eachbranch is a decision variable.

In Excel, make a row for each branch, leave a blank columnfor the decision, and enter a column of travel times.

From this, you can compute the total travel time.

Constraints:

Source node: all branches out must add to 1.Destination node: all branches in must add to 1.Intermediate nodes: all branches in must equal all branchesout.

Figure out the optimal path and driving time for the exampleproblem.

Management 560: Management Science Network Models

Page 18: Network ModelsNetwork Flow Model: Shortest Route 2/ 12 In these problems, there is only one item (person/truck/etc) that comes from one source and arrives one destination. The problem:

Solving using Excel 5/ 12

Design a binary linear programming problem, where eachbranch is a decision variable.

In Excel, make a row for each branch, leave a blank columnfor the decision, and enter a column of travel times.

From this, you can compute the total travel time.

Constraints:

Source node: all branches out must add to 1.Destination node: all branches in must add to 1.Intermediate nodes: all branches in must equal all branchesout.

Figure out the optimal path and driving time for the exampleproblem.

Management 560: Management Science Network Models

Page 19: Network ModelsNetwork Flow Model: Shortest Route 2/ 12 In these problems, there is only one item (person/truck/etc) that comes from one source and arrives one destination. The problem:

Minimal Spanning Tree 6/ 12

Objective is to connect all nodes in the network using theleast possible distance or cost.

Examples:

Cable company running cable to a series of neighborhoodsCity planner may design roads to connect various destinations.

Management 560: Management Science Network Models

Page 20: Network ModelsNetwork Flow Model: Shortest Route 2/ 12 In these problems, there is only one item (person/truck/etc) that comes from one source and arrives one destination. The problem:

Minimal Spanning Tree 6/ 12

Objective is to connect all nodes in the network using theleast possible distance or cost.

Examples:

Cable company running cable to a series of neighborhoodsCity planner may design roads to connect various destinations.

Management 560: Management Science Network Models

Page 21: Network ModelsNetwork Flow Model: Shortest Route 2/ 12 In these problems, there is only one item (person/truck/etc) that comes from one source and arrives one destination. The problem:

Minimal Spanning Tree 6/ 12

Objective is to connect all nodes in the network using theleast possible distance or cost.

Examples:

Cable company running cable to a series of neighborhoodsCity planner may design roads to connect various destinations.

Management 560: Management Science Network Models

Page 22: Network ModelsNetwork Flow Model: Shortest Route 2/ 12 In these problems, there is only one item (person/truck/etc) that comes from one source and arrives one destination. The problem:

Minimal Spanning Tree 6/ 12

Objective is to connect all nodes in the network using theleast possible distance or cost.

Examples:

Cable company running cable to a series of neighborhoodsCity planner may design roads to connect various destinations.

Management 560: Management Science Network Models

Page 23: Network ModelsNetwork Flow Model: Shortest Route 2/ 12 In these problems, there is only one item (person/truck/etc) that comes from one source and arrives one destination. The problem:

Solution Technique by Hand 7/ 12

Often solving these problems by hand is easier than using acomputer.

Start at any node.

Select the path to the closest node. At this node and path tothe network.

From the nodes on the final network, select the path to theclosest node not yet on the network.

Repeat until you have reached all nodes.

Management 560: Management Science Network Models

Page 24: Network ModelsNetwork Flow Model: Shortest Route 2/ 12 In these problems, there is only one item (person/truck/etc) that comes from one source and arrives one destination. The problem:

Solution Technique by Hand 7/ 12

Often solving these problems by hand is easier than using acomputer.

Start at any node.

Select the path to the closest node. At this node and path tothe network.

From the nodes on the final network, select the path to theclosest node not yet on the network.

Repeat until you have reached all nodes.

Management 560: Management Science Network Models

Page 25: Network ModelsNetwork Flow Model: Shortest Route 2/ 12 In these problems, there is only one item (person/truck/etc) that comes from one source and arrives one destination. The problem:

Solution Technique by Hand 7/ 12

Often solving these problems by hand is easier than using acomputer.

Start at any node.

Select the path to the closest node. At this node and path tothe network.

From the nodes on the final network, select the path to theclosest node not yet on the network.

Repeat until you have reached all nodes.

Management 560: Management Science Network Models

Page 26: Network ModelsNetwork Flow Model: Shortest Route 2/ 12 In these problems, there is only one item (person/truck/etc) that comes from one source and arrives one destination. The problem:

Solution Technique by Hand 7/ 12

Often solving these problems by hand is easier than using acomputer.

Start at any node.

Select the path to the closest node. At this node and path tothe network.

From the nodes on the final network, select the path to theclosest node not yet on the network.

Repeat until you have reached all nodes.

Management 560: Management Science Network Models

Page 27: Network ModelsNetwork Flow Model: Shortest Route 2/ 12 In these problems, there is only one item (person/truck/etc) that comes from one source and arrives one destination. The problem:

Solution Technique by Hand 7/ 12

Often solving these problems by hand is easier than using acomputer.

Start at any node.

Select the path to the closest node. At this node and path tothe network.

From the nodes on the final network, select the path to theclosest node not yet on the network.

Repeat until you have reached all nodes.

Management 560: Management Science Network Models

Page 28: Network ModelsNetwork Flow Model: Shortest Route 2/ 12 In these problems, there is only one item (person/truck/etc) that comes from one source and arrives one destination. The problem:

Example 8/ 12

Lets use the same example, but suppose the objective is toconnect all nodes to an electrical grid, using the least amountof wire possible.

The possible routes and distances are given below.

Management 560: Management Science Network Models

Page 29: Network ModelsNetwork Flow Model: Shortest Route 2/ 12 In these problems, there is only one item (person/truck/etc) that comes from one source and arrives one destination. The problem:

Example 8/ 12

Lets use the same example, but suppose the objective is toconnect all nodes to an electrical grid, using the least amountof wire possible.

The possible routes and distances are given below.

Management 560: Management Science Network Models

Page 30: Network ModelsNetwork Flow Model: Shortest Route 2/ 12 In these problems, there is only one item (person/truck/etc) that comes from one source and arrives one destination. The problem:

Maximal Flow Problems 9/ 12

In previous problems: the branches did not have a limitedcapacity.

Objective: select a single path that maximizes the totalamount of flow from the source to the destination.

Problem: paths are limited by the amount of flow they willallow.

Examples:

Maximize the amount of flow of oil, gas, or water throughpipelines.Maximize the flow of traffic through a road network.Maximize the flow of products through a production linesystem.Maximize the flow of forms through a paperwork processingsystem?

Management 560: Management Science Network Models

Page 31: Network ModelsNetwork Flow Model: Shortest Route 2/ 12 In these problems, there is only one item (person/truck/etc) that comes from one source and arrives one destination. The problem:

Maximal Flow Problems 9/ 12

In previous problems: the branches did not have a limitedcapacity.

Objective: select a single path that maximizes the totalamount of flow from the source to the destination.

Problem: paths are limited by the amount of flow they willallow.

Examples:

Maximize the amount of flow of oil, gas, or water throughpipelines.Maximize the flow of traffic through a road network.Maximize the flow of products through a production linesystem.Maximize the flow of forms through a paperwork processingsystem?

Management 560: Management Science Network Models

Page 32: Network ModelsNetwork Flow Model: Shortest Route 2/ 12 In these problems, there is only one item (person/truck/etc) that comes from one source and arrives one destination. The problem:

Maximal Flow Problems 9/ 12

In previous problems: the branches did not have a limitedcapacity.

Objective: select a single path that maximizes the totalamount of flow from the source to the destination.

Problem: paths are limited by the amount of flow they willallow.

Examples:

Maximize the amount of flow of oil, gas, or water throughpipelines.Maximize the flow of traffic through a road network.Maximize the flow of products through a production linesystem.Maximize the flow of forms through a paperwork processingsystem?

Management 560: Management Science Network Models

Page 33: Network ModelsNetwork Flow Model: Shortest Route 2/ 12 In these problems, there is only one item (person/truck/etc) that comes from one source and arrives one destination. The problem:

Maximal Flow Problems 9/ 12

In previous problems: the branches did not have a limitedcapacity.

Objective: select a single path that maximizes the totalamount of flow from the source to the destination.

Problem: paths are limited by the amount of flow they willallow.

Examples:

Maximize the amount of flow of oil, gas, or water throughpipelines.Maximize the flow of traffic through a road network.Maximize the flow of products through a production linesystem.Maximize the flow of forms through a paperwork processingsystem?

Management 560: Management Science Network Models

Page 34: Network ModelsNetwork Flow Model: Shortest Route 2/ 12 In these problems, there is only one item (person/truck/etc) that comes from one source and arrives one destination. The problem:

Maximal Flow Problems 9/ 12

In previous problems: the branches did not have a limitedcapacity.

Objective: select a single path that maximizes the totalamount of flow from the source to the destination.

Problem: paths are limited by the amount of flow they willallow.

Examples:

Maximize the amount of flow of oil, gas, or water throughpipelines.Maximize the flow of traffic through a road network.Maximize the flow of products through a production linesystem.Maximize the flow of forms through a paperwork processingsystem?

Management 560: Management Science Network Models

Page 35: Network ModelsNetwork Flow Model: Shortest Route 2/ 12 In these problems, there is only one item (person/truck/etc) that comes from one source and arrives one destination. The problem:

Maximal Flow Problems 9/ 12

In previous problems: the branches did not have a limitedcapacity.

Objective: select a single path that maximizes the totalamount of flow from the source to the destination.

Problem: paths are limited by the amount of flow they willallow.

Examples:

Maximize the amount of flow of oil, gas, or water throughpipelines.Maximize the flow of traffic through a road network.Maximize the flow of products through a production linesystem.Maximize the flow of forms through a paperwork processingsystem?

Management 560: Management Science Network Models

Page 36: Network ModelsNetwork Flow Model: Shortest Route 2/ 12 In these problems, there is only one item (person/truck/etc) that comes from one source and arrives one destination. The problem:

Maximal Flow Problems 9/ 12

In previous problems: the branches did not have a limitedcapacity.

Objective: select a single path that maximizes the totalamount of flow from the source to the destination.

Problem: paths are limited by the amount of flow they willallow.

Examples:

Maximize the amount of flow of oil, gas, or water throughpipelines.Maximize the flow of traffic through a road network.Maximize the flow of products through a production linesystem.Maximize the flow of forms through a paperwork processingsystem?

Management 560: Management Science Network Models

Page 37: Network ModelsNetwork Flow Model: Shortest Route 2/ 12 In these problems, there is only one item (person/truck/etc) that comes from one source and arrives one destination. The problem:

Maximal Flow Problems 9/ 12

In previous problems: the branches did not have a limitedcapacity.

Objective: select a single path that maximizes the totalamount of flow from the source to the destination.

Problem: paths are limited by the amount of flow they willallow.

Examples:

Maximize the amount of flow of oil, gas, or water throughpipelines.Maximize the flow of traffic through a road network.Maximize the flow of products through a production linesystem.Maximize the flow of forms through a paperwork processingsystem?

Management 560: Management Science Network Models

Page 38: Network ModelsNetwork Flow Model: Shortest Route 2/ 12 In these problems, there is only one item (person/truck/etc) that comes from one source and arrives one destination. The problem:

Example 10/ 12

Suppose the FAA has just granted a license to a new airline. Theairline wants to maximize the number of flights it can send fromLos Angeles to Chicago, but for safety reasons, FAA regulationsrestrict the amount of air traffic between the cities. The flights perday for each route are shown in the following network:

Management 560: Management Science Network Models

Page 39: Network ModelsNetwork Flow Model: Shortest Route 2/ 12 In these problems, there is only one item (person/truck/etc) that comes from one source and arrives one destination. The problem:

Setting Up Maximal Flow Problems 11/ 12

Notice traffic can move in two directions: each unique pathand direction is a decision variable.

If there are n nodes, there are a maximum of n2 + 2 variablesand even more constraints.

Create two extra variables for the total coming in to thenetwork, and the total leaving the network.

Each path, in each direction, has its own constraint.

The total flow of traffic leaving the source must equal thetotal flow entering destination.

The total flow entering each intermediate node must equalthe total flow leaving the node.

Management 560: Management Science Network Models

Page 40: Network ModelsNetwork Flow Model: Shortest Route 2/ 12 In these problems, there is only one item (person/truck/etc) that comes from one source and arrives one destination. The problem:

Setting Up Maximal Flow Problems 11/ 12

Notice traffic can move in two directions: each unique pathand direction is a decision variable.

If there are n nodes, there are a maximum of n2 + 2 variablesand even more constraints.

Create two extra variables for the total coming in to thenetwork, and the total leaving the network.

Each path, in each direction, has its own constraint.

The total flow of traffic leaving the source must equal thetotal flow entering destination.

The total flow entering each intermediate node must equalthe total flow leaving the node.

Management 560: Management Science Network Models

Page 41: Network ModelsNetwork Flow Model: Shortest Route 2/ 12 In these problems, there is only one item (person/truck/etc) that comes from one source and arrives one destination. The problem:

Setting Up Maximal Flow Problems 11/ 12

Notice traffic can move in two directions: each unique pathand direction is a decision variable.

If there are n nodes, there are a maximum of n2 + 2 variablesand even more constraints.

Create two extra variables for the total coming in to thenetwork, and the total leaving the network.

Each path, in each direction, has its own constraint.

The total flow of traffic leaving the source must equal thetotal flow entering destination.

The total flow entering each intermediate node must equalthe total flow leaving the node.

Management 560: Management Science Network Models

Page 42: Network ModelsNetwork Flow Model: Shortest Route 2/ 12 In these problems, there is only one item (person/truck/etc) that comes from one source and arrives one destination. The problem:

Setting Up Maximal Flow Problems 11/ 12

Notice traffic can move in two directions: each unique pathand direction is a decision variable.

If there are n nodes, there are a maximum of n2 + 2 variablesand even more constraints.

Create two extra variables for the total coming in to thenetwork, and the total leaving the network.

Each path, in each direction, has its own constraint.

The total flow of traffic leaving the source must equal thetotal flow entering destination.

The total flow entering each intermediate node must equalthe total flow leaving the node.

Management 560: Management Science Network Models

Page 43: Network ModelsNetwork Flow Model: Shortest Route 2/ 12 In these problems, there is only one item (person/truck/etc) that comes from one source and arrives one destination. The problem:

Setting Up Maximal Flow Problems 11/ 12

Notice traffic can move in two directions: each unique pathand direction is a decision variable.

If there are n nodes, there are a maximum of n2 + 2 variablesand even more constraints.

Create two extra variables for the total coming in to thenetwork, and the total leaving the network.

Each path, in each direction, has its own constraint.

The total flow of traffic leaving the source must equal thetotal flow entering destination.

The total flow entering each intermediate node must equalthe total flow leaving the node.

Management 560: Management Science Network Models

Page 44: Network ModelsNetwork Flow Model: Shortest Route 2/ 12 In these problems, there is only one item (person/truck/etc) that comes from one source and arrives one destination. The problem:

Setting Up Maximal Flow Problems 11/ 12

Notice traffic can move in two directions: each unique pathand direction is a decision variable.

If there are n nodes, there are a maximum of n2 + 2 variablesand even more constraints.

Create two extra variables for the total coming in to thenetwork, and the total leaving the network.

Each path, in each direction, has its own constraint.

The total flow of traffic leaving the source must equal thetotal flow entering destination.

The total flow entering each intermediate node must equalthe total flow leaving the node.

Management 560: Management Science Network Models

Page 45: Network ModelsNetwork Flow Model: Shortest Route 2/ 12 In these problems, there is only one item (person/truck/etc) that comes from one source and arrives one destination. The problem:

Homework! 12/ 12

Chapter 7, page 306, problem 23.

Chapter 7, page 311-312, problems 36, 37 (this one will bepresented for a case problem).

Management 560: Management Science Network Models