A Hypergraph flow model for water resource system optimization