Antares_Simulator icon indicating copy to clipboard operation
Antares_Simulator copied to clipboard

Unnecessary array assignment in hydro optimization management

Open nikolaredstork opened this issue 8 months ago • 0 comments

In mothly hydro management, when reservoir management is not used, monthly optimal levels array is populated with average reservoir levels. Don't see purpose of assigning monthly optimal level array when reservoir management is not used, in this case there is no reservoir to be filled with inflows and we don't need any arrays that represents reservoir levels. In src/solver/hydro/management/montlhy.cpp file, you can find that one line of code that I found unnecessary, function is called prepareMonthlyOptimalGenerations.

image

nikolaredstork avatar Jun 10 '24 10:06 nikolaredstork