Nested algorithms for optimal reservoir operation and their embedding in a decision support platform