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
Mark Song
dynare
Commits
410f8bd0
Commit
410f8bd0
authored
Feb 01, 2018
by
Stéphane Adjemian
Browse files
Cosmetic change and fixed copyright header.
parent
3679afe8
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/discretionary_policy_engine.m
View file @
410f8bd0
...
@@ -48,7 +48,7 @@ function [H,G,retcode]=discretionary_policy_engine(AAlag,AA0,AAlead,BB,bigw,inst
...
@@ -48,7 +48,7 @@ function [H,G,retcode]=discretionary_policy_engine(AAlag,AA0,AAlead,BB,bigw,inst
% Dennis, Richard (2007): Optimal policy in rational expectations models: new solution algorithms,
% Dennis, Richard (2007): Optimal policy in rational expectations models: new solution algorithms,
% Macroeconomic Dynamics, 11, 3155.
% Macroeconomic Dynamics, 11, 3155.
% Copyright (C) 2007-201
7
Dynare Team
% Copyright (C) 2007-201
8
Dynare Team
%
%
% This file is part of Dynare.
% This file is part of Dynare.
%
%
...
@@ -112,7 +112,7 @@ F1=F10;
...
@@ -112,7 +112,7 @@ F1=F10;
while
1
while
1
iter
=
iter
+
1
;
iter
=
iter
+
1
;
P
=
SylvesterDoubling
(
W
+
beta
*
F1
'*Q*F1,beta*H1'
,
H1
,
discretion_tol
,
solve_maxit
);
P
=
SylvesterDoubling
(
W
+
beta
*
F1
'*Q*F1,beta*H1'
,
H1
,
discretion_tol
,
solve_maxit
);
if
any
(
any
(
isnan
(
P
)))
||
any
(
any
(
isinf
(
P
)))
if
any
(
any
(
isnan
(
P
)))
||
any
(
any
(
isinf
(
P
)))
P
=
SylvesterHessenbergSchur
(
W
+
beta
*
F1
'*Q*F1,beta*H1'
,
H1
);
P
=
SylvesterHessenbergSchur
(
W
+
beta
*
F1
'*Q*F1,beta*H1'
,
H1
);
if
any
(
any
(
isnan
(
P
)))
||
any
(
any
(
isinf
(
P
)))
if
any
(
any
(
isnan
(
P
)))
||
any
(
any
(
isinf
(
P
)))
retcode
=
2
;
retcode
=
2
;
...
...
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