Commit cdcc28f7 authored by Erkka Rinne's avatar Erkka Rinne
Browse files

Calculate forecast offset even for one scenario

Previously forecast offset `df_scenario` was computed only when number of scenarios was
greater than one. Long-term scenario data should use a special label in the `f` dimension
in all cases.
parent 21cbd5f6
......@@ -45,6 +45,27 @@ All notable changes to this project will be documented in this file.
- Limiting the provision of online reserve based on the online variable
- Sample probability bug from scenario reduction (probability of single scenario above one)
## 1.1.5 - 2020-11-28
### Fixed
- Long-term scenario data when using only one scenario
## 1.1.4 - 2019-11-02
### Fixed
- Sample probability bug from scenario reduction
## 1.1.3 - 2019-10-24
### Changed
- Scenario reduction is done based on total available energy
## 1.1.2 - 2019-10-23
### Changed
- Maintain original scenario labels after reduction
## [1.1] - 2019-04-17
### Added
- New model setting 't_perfectForesight' tells the number of time steps (from
......
......@@ -141,6 +141,9 @@ if (mType('schedule'),
mf_central('schedule', f) = no;
mf_central('schedule', 'f02') = yes;
// Define special forecast label that holds scenario data
//mf_scenario('schedule', 'scen') = yes;
// Define forecast probabilities (weights)
p_mfProbability('schedule', f) = 0;
p_mfProbability(mf_realization('schedule', f)) = 1;
......
......@@ -466,7 +466,7 @@ loop(mf_realization(mSolve, f_),
);
// Central forecast for the long-term scenarios comes from a special forecast label
Option clear = df_scenario;
if(mSettings(mSolve, 'scenarios') > 1,
if(mSettings(mSolve, 'scenarios') >= 1,
loop((msft(ms_central(mSolve, s), f, t), mf_scenario(mSolve, f_)),
df_scenario(ft(f, t)) = ord(f_) - ord(f);
);
......
......@@ -20,6 +20,8 @@ $offtext
* =============================================================================
s "Samples from historical periods" / s000 * s999 /
f "Forecasts for the short term" / f00 * f99 /
f "Forecasts for the short term" / f00 * f99,
scen 'long-term scenarios',
/
t "Model time steps" / t000000 * t017568 /
scenario "Long-term scenarios" / scen00 /
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