Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dóra Kocsis
dynare
Commits
bcb59e37
Commit
bcb59e37
authored
Dec 10, 2012
by
MichelJuillard
Browse files
fixed bug in conditional forecasts whith constraints on only one period
parent
32b68b71
Changes
1
Show whitespace changes
Inline
Side-by-side
matlab/imcforecast.m
View file @
bcb59e37
...
...
@@ -171,11 +171,8 @@ for i=1:n1
mu
(
jdx
(
i
),
i
)
=
1
;
end
if
(
size
(
constrained_paths
,
2
)
==
1
);
constrained_paths
=
constrained_paths
*
ones
(
1
,
cL
);
else
cL
=
size
(
constrained_paths
,
2
);
end
% number of periods with constrained values
cL
=
size
(
constrained_paths
,
2
);
constrained_paths
=
bsxfun
(
@
minus
,
constrained_paths
,
trend
(
idx
,
1
:
cL
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment