Linear and Integer Programming (ADM II)

TU Berlin/BMS, WS 2007/2008

Programming exercise 2

Here is the exercise again.

Program presentation schedule

DayTimeGroup
Tue 16:00 lop-107
16:30 lop-109
17:00
17:30
DayTimeGroup
Wed 12:00 lop-101
lop-117
12:30 lop-115
lop-116
13:00 lop-103
13:30 lop-121
DayTimeGroup
Wed 16:00 lop-108
16:30
17:00
17:30 lop-113
DayTimeGroup
Thu 16:00 lop-119
lop-111
16:30 lop-106
lop-104
17:00 lop-102
lop-114
17:30 lop-120

Parser for .nwk files

The java parser for .nwk files improved, with added methods for displaying: NetworkIO.java ...and the documentation.
Bug reports (still) to awerner@math.tu-berlin.de.

Test files

The test files each describe one network.

First line contains the total number of nodes.
Each further line contains the complete description of one node (plus possibly whitespaces) in the following form: Here is an example (small.nwk):

FileNodesArcsOptimum
small.nwk 5837014
beispiel.nwk 58550
petersen.nwk 1015-51100
triangular.nwk 2159336400
shortestpath.nwk 2159861
rand50.nwk 501371124371
rand150.nwk 150424818507
randinf.nwk 150424infeasible
randunb.nwk 150424unbounded
ger1.nwk 18570890651
stndrd3.nwk 2002000159442947
transp9.nwk 40010000158058350
cap2.nwk 1000300001032822638
hu.nwk 55003998619291319

NOTE: Some of the examples contain antiparallel arcs, i.e. between some nodes edges in both directions are present. This is no problem from a theoretical viewpoint, but in the implementation you should be aware that the tree corresponding to a basic solution uses only one of both arcs and has to know which one!
An elegant way to remedy this problem is to introduce an artificial node on one of the two edges to distinguish between two antiparallel arcs; alternatively one can modify the algorithms and data structures for handling tree solutions.