Some System Approaches to Water Resources Problems III. Optimal Control of Dam Storage