Optimization: principles and algorithms, by Michel Bierlaire
|
Compute the divergence of a flow vector (Definition 21.13 of [1]) More...
Go to the source code of this file.
Functions | |
function | nodeDivergence (in adj, in flow) |
Compute the divergence of a flow vector. More... | |
Compute the divergence of a flow vector (Definition 21.13 of [1])
Definition in file nodeDivergence.m.
function nodeDivergence | ( | in | adj, |
in | flow | ||
) |
Compute the divergence of a flow vector.
adj | adjacency matrix of the network |
flow | flow vector (number of entries should be equal to the number of non zero entries of the adjacency matrix) |