These principles give all that is needed to define a cost functional, which maps every transport system to its total cost.

The formula is given in definition 2.2 in the paper.

What it amounts to is the sum over all nodes \$$x\$$ of the fluid cost through the pipe leading into \$$x\$$, times the cumulative turning cost factor \$$m_\beta(x)\$$.