A fork of Transportation Networks with better TNTP format:
- Easier to parse
- Numbering of nodes start with 0 (and not 1)
- Removed redundant zeros from some OD tables
There are four types of TNTP files in this repo:
- Network file (
.net.tntp
) - Origin-destination matrix/table file (
.odm.tntp
) - Edge flow file (
.flow.tntp
) - Node file (
.node.tntp
)
<Text>
in angle brackets in format snippets denotes
some value that is explained below the snippet.
NODES:<nodes>
ZONES:<zones>
NODES:<edges>
END
<start> <end> <capacity> <freeFlow> <length> <speed> <toll> <b> <power> <type>
<start> <end> <capacity> <freeFlow> <length> <speed> <toll> <b> <power> <type>
<start> <end> <capacity> <freeFlow> <length> <speed> <toll> <b> <power> <type>
...
The file starts with header:
<nodes>
- Number of nodes in network. The set of nodes is then represented by the numbers 0..nodes-1.<zones>
- Number of zones in network. Zones are special nodes, they are the sources and sinks of traffic flow in the network (see OD matrix). The set of zones is a subset of set of nodes and is represented by number 0..zones-1.<edges>
- Number of edges in network. Also the number of lines after header.
The header ends with END
line, after which start lines describing each edge:
<start>
- The node from which this edge originates.<end>
- The node to which this edge points.<capacity>
- Practical capacity of traffic link represented by this edge.<freeFlow>
- Free flow time of traffic link represented by this edge. The time one car would take to cross this link if the link would be otherwise empty.<length>
- Irrelevant for STA algorithms.<speed>
- Irrelevant for STA algorithms.<toll>
- Irrelevant for STA algorithms.<b>
- Parameter of BPR function. Might aswell be always 0.15.<power>
- Parameter of BPR function. Might aswell be always 4.<type>
- Irrelevant for STA algorithms.