Maximization of hydropower generation through the application of a linear programming model