Generalizing Reservoir Operations using a Piecewise Classification and Regression Approach