Solving Min-Cost Concave Generalized Dynamic Flows and Approximating Dynamic Optimal Power Flows | Synapse