ntnuiotenergy/OpenEMPIRE

Valid sample hours during scenario generation

Opened this issue · 2 comments

Currently, there is no guarantee that we start a representative week on midnight Monday. This should be included to make operational analysis more consistent. Requires smaller modifications in 'scenario_random.py'.

The following code line should be modified to pick from a list of "midnight mondays" rather than just random integers within season:

Line 521 in 'scenario_random.py': sample_hour = np.random.randint(0, window)

Needs to include functionality for not sampling the same week twice, until all weeks are represented (then reset).