ntnuiotenergy / OpenEMPIRE

Stochastic linear program for investments in the European power system
https://openempire.readthedocs.io/en/latest/
MIT License
16 stars 15 forks source link

Valid sample hours during scenario generation #39

Open stianbacke opened 3 months ago

stianbacke commented 3 months ago

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

stianbacke commented 3 months ago

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)

stianbacke commented 3 months ago

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