AbstractShort-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.