Commit 557afd88 authored by Erkka Rinne's avatar Erkka Rinne
Browse files

Fixed a bug which caused zero probability to the stochastic root node in long-term secnarios

parent 5b68dbe5
......@@ -283,6 +283,7 @@ $ifthen defined scenario
// Select root sample and central forecast
loop((ms_initial(mSolve, s_), mf_central(mSolve, f)),
s_active(s_) = yes;
p_msProbability(mSolve, s_)$mSettings(mSolve, 'scenarios') = 1;
loop(scenario$(ord(scenario) <= mSettings(mSolve, 'scenarios')),
s_scenario(s_, scenario) = yes;
if(mSettings(mSolve, 'scenarios') > 1,
Markdown is supported
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