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
Marco Ratto
dynare
Commits
46da76c0
Unverified
Commit
46da76c0
authored
Oct 20, 2020
by
Sébastien Villemot
Browse files
LMMCP: fix bug when periods=1
The fix in commit
24cc67e5
was incorrect.
parent
87cc5193
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/perfect-foresight-models/perfect_foresight_mcp_problem.m
View file @
46da76c0
...
...
@@ -82,7 +82,7 @@ for it = maximum_lag+(1:T)
[
res
,
jacobian
]
=
dynamic_function
(
YY
(
i_cols
),
exo_simul
,
params
,
steady_state
,
it
);
residuals
(
i_rows
)
=
res
(
eq_index
);
if
T
==
1
&&
it
==
maximum_lag
+
1
[
rows
,
cols
,
vals
]
=
find
(
jacobian
(
:
,
i_cols_0
));
[
rows
,
cols
,
vals
]
=
find
(
jacobian
(
eq_index
,
i_cols_0
));
if
size
(
jacobian
,
1
)
==
1
% find() will return row vectors in this case
rows
=
rows
'
;
cols
=
cols
'
;
...
...
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