Constrained state formulation for the stochastic control of multireservoir systems