Commit a83c2ba5 authored by Topi Rasku's avatar Topi Rasku
Browse files

Fixing the length of data update horizon to cover until the next update.

parent 4ec260f2
......@@ -25,10 +25,16 @@ putclose log;
if (ord(tSolve) >= tForecastNext(mSolve),
// Determine the necessary horizon for updating data
option clear = tmp;
tmp = max( mSettings(mSolve, 't_forecastLengthUnchanging') + mSettings(mSolve, 't_forecastJump'),
mSettings('schedule', 't_forecastLengthDecreasesFrom')
);
// Find time steps until the forecast horizon
option clear = tt;
tt_forecast(t_current(t))
${ ord(t) <= tSolveFirst + currentForecastLength }
${ ord(t) <= tSolveFirst + tmp }
= yes;
$ontext
// Update ts_unit
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment