Skip to content

Commit

Permalink
fixing horizon length for MTS
Browse files Browse the repository at this point in the history
  • Loading branch information
squoilin committed Apr 15, 2020
1 parent f6fa3ad commit ffe618d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dispaset/preprocessing/preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def mid_term_scheduling(config, TimeStep=None, mts_plot=None):
freq=pd_timestep(TimeStep)).tz_localize(None)
temp_config['SimulationTimeStep'] = TimeStep
gams_file = 'UCM_h.gms'
temp_config['HorizonLength'] = (idx[-1] - idx[0]).days
temp_config['HorizonLength'] = (idx[-1] - idx[0]).days+1
resultfile = 'Results.gdx'
else:
idx = pd.date_range(start=dt.datetime(*temp_config['StartDate']),
Expand Down

0 comments on commit ffe618d

Please sign in to comment.