forked from maslab-ufrgs/transportation_networks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
OW.net
57 lines (57 loc) · 1.27 KB
/
OW.net
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
##################################################
# #
# OW network #
# #
# Example 10.1 from "Ortúzar & Willumsen (2011). #
# Modelling transport (4th ed.). Chichester: #
# John Wiley & Sons". #
# #
# Created on 17-May-2016 by Gabriel de O. Ramos #
# #
##################################################
#function name (args) formula
function OW (f) t+0.02*f
#node name
node A
node B
node C
node D
node E
node F
node G
node H
node I
node J
node K
node L
node M
#edge name origin destination function constants
edge A-B A B OW 7
edge A-C A C OW 5
edge A-D A D OW 15
edge B-D B D OW 11
edge B-E B E OW 11
edge C-D C D OW 7
edge C-F C F OW 11
edge C-G C G OW 9
edge D-E D E OW 7
edge D-G D G OW 7
edge D-H D H OW 9
edge E-H E H OW 7
edge F-G F G OW 9
edge F-I F I OW 13
edge G-H G H OW 9
edge G-J G J OW 3
edge G-K G K OW 13
edge H-K H K OW 3
edge I-J I J OW 9
edge I-L I L OW 2
edge J-K J K OW 9
edge J-L J L OW 12
edge J-M J M OW 12
edge K-M K M OW 2
#od name origin destination flow
od A|L A L 600
od A|M A M 400
od B|L B L 300
od B|M B M 400