Optimization: principles and algorithms, by Michel Bierlaire
runPrepareNetwork.m
Go to the documentation of this file.
1 %> \file
2 %> Run the function that prepares the network
3 %>
4 %> @note Calls \ref prepareNetwork
5 %>
6 %> @ingroup Running
7 %> @author Michel Bierlaire
8 %> @date Sun Mar 29 17:12:25 2015
9 %> @ingroup chap21
10 
11 A = [0 1 0 0 0 0 0 0 ;
12  0 0 2 3 0 0 0 0 ;
13  4 0 0 0 5 0 0 0 ;
14  0 6 0 0 7 0 0 0 ;
15  0 0 0 8 0 0 0 0 ;
16  0 0 0 0 0 0 9 0 ;
17  0 0 0 0 0 10 0 0 ;
18  0 0 0 0 0 0 0 0 ] ;
19 
20 arcs = prepareNetwork(A)
21 
function prepareNetwork(in adj)
Identifies the upstream and downstream nodes of each arc.
Copyright 2015-2016 Michel Bierlaire