Commit bcb59e37 authored by MichelJuillard's avatar MichelJuillard
Browse files

fixed bug in conditional forecasts whith constraints on only one period

parent 32b68b71
......@@ -171,11 +171,8 @@ for i=1:n1
mu(jdx(i),i) = 1;
if (size(constrained_paths,2) == 1);
constrained_paths = constrained_paths*ones(1,cL);
cL = size(constrained_paths,2);
% number of periods with constrained values
cL = size(constrained_paths,2);
constrained_paths = bsxfun(@minus,constrained_paths,trend(idx,1:cL));
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