An optimization procedure for the sustainable management of water resources.