A HYBRID NETWORK FLOW ALGORITHM FOR THE OPTIMAL CONTROL OF LARGE-SCALE DISTRIBUTED ENERGY SYSTEMS.