where one sums over all individual pipes carrying index i . The costs per meter depending on the diameter of pipe i is given by ci and its corresponding length by li . The penalty P only applies when the pressure in any node is less than a predetermined minimal value. For nodes with pressures larger than this minimal value, the associated individual
penalties vanish, and one uses the usual Heaviside step function H in the explicit expression for P