This study investigates the application of Reinforcement Learning (RL) to optimize intraday operations of hydropower reservoirs. Unlike previous approaches that focus on long-term planning with coarse temporal resolutions and discretized state-action spaces, we propose an RL framework tailored to the Hydropower Reservoirs Intraday Economic Optimization problem. This framework manages continuous state-action spaces while accounting for fine-grained temporal dynamics, including dam-to-turbine delays, gate movement constraints, and power group operations. Our methodology evaluates three distinct action space formulations (continuous, discrete, and adjustments) implemented using modern RL algorithms (A2C, PPO, and SAC). We compare them against both a greedy baseline and Mixed-Integer Linear Programming (MILP) solutions. Experiments on real-world data from a two-reservoir system and a simulated six-reservoir system demonstrate that while MILP achieves superior performance in the smaller system, its performance degrades significantly when scaled to six reservoirs. In contrast, RL agents, particularly those using discrete action spaces and trained with PPO, maintain consistent performance across both configurations, achieving considerable improvements with less than one second of execution time. These results suggest that RL offers a scalable alternative to traditional optimization methods for hydropower operations, particularly in scenarios requiring real-time decision making or involving larger systems.
8 September 2024 in Central European Journal of Operations Research
Short-term hydropower generation with several water reservoirs requires deciding, for each moment in time, the volume of water (outflow) that is released from every reservoir to be turbined and generate energy. Knowing the price of energy at every time period, the objective is to maximize the income earned from the generated energy. In this paper, we present (1) a Hydropower Reservoirs Operation Optimization problem with a higher level of detail than those found in the literature, encompassing temporal delays, water hammer effects, and increased temporal discretization, among others features, and (2) two distinct approaches for addressing this problem: MILP and PSO. These methods are compared across instances of varying nature to evaluate their performance. We make our code available on GitHub: https://github.com/baobabsoluciones/flowing-basin.