Академический Документы
Профессиональный Документы
Культура Документы
SRP Definition
Directed network G = (N, A)
Arc length (cost): arc (i,j) A
Node s as source
Find the shortest length from node s to
node I
The length = sum of the edges on the
path
Example Problem
Problem: Determine the shortest routes from the origin to all destinations.
Solution Method
Dijkstras Algorithm
Select the node with the shortest direct route from the
origin.
Establish a permanent set with the origin node and the
node that was selected in step 1.
Determine all nodes directly connected to the permanent
set nodes.
Select the node with the shortest route (branch) from the
group of nodes directly connected to the permanent set
nodes.
Repeat steps 3 and 4 until all nodes have joined the
permanent set.
4
Decision Variables
Xij = flow from node i to node j
Note: flow on arc ij will be 1 if arc ij is
used,
and 0 if not used
Roads are bi-directional, so the 9 roads
require 18 decision variables
m n 1
c
i 1
s.t.
j i 1
j i 1
x ji
ij
xij
j i 1
n 1
x x
i 2
ij
i2
x x
i a
ia
ij
for i 1
ji
for i 1, j n
ji
for j n
j 1
ij
Total Cost
xij 0
( xij is binary, for all i and j )
Example
= -1
(X25+X35+X45+X65)