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

Fix probability error from scenario reduction

Probabilities of single scenarios can be slightly above one as returned
by SCENRED2. Limit the probabilities to one.
parent 8e6f4516
......@@ -25,6 +25,8 @@ All notable changes to this project will be documented in this file.
- Time series smooting not working at all (#100)
- Fix a number of compilation warnings
- Limiting the provision of online reserve based on the online variable
- Sample probability bug from scenario reduction (probability of single scneario
above one)
## [1.1] - 2019-04-17
### Added
......@@ -57,7 +57,9 @@ else
// Update probabilities
p_msProbability(mSolve, s) = p_sProbability(s);
// Account for small errors from SCENRED2 where the probability of a single
// scenario can be slightly above one.
p_msProbability(mSolve, s) = min(p_sProbability(s), 1);
// Update scenarios
loop(mft_lastSteps(mSolve, f, t), // Select last time step
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