Commit 4d60dd33 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 f4666250
...@@ -57,7 +57,9 @@ else ...@@ -57,7 +57,9 @@ else
p_sProbability=red_prob; p_sProbability=red_prob;
// Update probabilities // 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 // Update scenarios
loop(mft_lastSteps(mSolve, f, t), // Select last time step 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