Optimal regulation of flow networks with transient constraints. (June 2019)