Flow optimization in dynamic and continuous networks (polymatroids, submodular, max-flow min-cut)