Optimization of the Operation of a Multiple‐Purpose Reservoir by Dynamic Programming