|
Optimization: principles and algorithms, by Michel Bierlaire
|
Prepares the network for efficient access to the data. More...
Go to the source code of this file.
Functions | |
| function | prepareNetwork (in adj) |
| Identifies the upstream and downstream nodes of each arc. More... | |
Prepares the network for efficient access to the data.
Definition in file prepareNetwork.m.
| function prepareNetwork | ( | in | adj | ) |
Identifies the upstream and downstream nodes of each arc.
| adj | the adjacency matrix of the network. It is a matrix, such that the element at row i and column j corresponds to the id of the arc (i,j). The numbering should be from 1 to n. |