Optimization: principles and algorithms, by Michel Bierlaire
Functions
nodeDivergence.m File Reference

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...
 

Detailed Description

Compute the divergence of a flow vector (Definition 21.13 of [1])

Note
Tested with runDivergence.m
Called by flowDecomposition
Author
Michel Bierlaire
Date
Sun Mar 29 17:30:04 2015

Definition in file nodeDivergence.m.

Function Documentation

◆ nodeDivergence()

function nodeDivergence ( in  adj,
in  flow 
)

Compute the divergence of a flow vector.

Parameters
adjadjacency matrix of the network
flowflow vector (number of entries should be equal to the number of non zero entries of the adjacency matrix)
Returns
divergence of eachnode
Copyright 2015-2018 Michel Bierlaire