Water Resources Management by Stochastic Optimization