Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dynare
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dóra Kocsis
dynare
Commits
e91f0776
Commit
e91f0776
authored
14 years ago
by
MichelJuillard
Browse files
Options
Downloads
Patches
Plain Diff
discretionary policy: made returned info values compatible with Dynare
parent
abf9a0ee
Loading
Loading
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
matlab/discretionary_policy_engine.m
+5
-5
5 additions, 5 deletions
matlab/discretionary_policy_engine.m
matlab/print_info.m
+10
-1
10 additions, 1 deletion
matlab/print_info.m
with
15 additions
and
6 deletions
matlab/discretionary_policy_engine.m
+
5
−
5
View file @
e91f0776
...
@@ -95,24 +95,24 @@ while 1
...
@@ -95,24 +95,24 @@ while 1
H10
=
H1
;
H10
=
H1
;
F10
=
F1
;
F10
=
F1
;
end
end
retcode
=
rcode
-
1
;
switch
retcode
retcode
=
0
;
switch
rcode
case
3
% nan
case
3
% nan
retcode
=
3
;
retcode
=
6
3
;
retcode
(
2
)
=
10000
;
retcode
(
2
)
=
10000
;
if
verbose
if
verbose
disp
([
mfilename
,
':: NAN elements in the solution'
])
disp
([
mfilename
,
':: NAN elements in the solution'
])
end
end
case
2
% maxiter
case
2
% maxiter
retcode
=
1
retcode
=
6
1
if
verbose
if
verbose
disp
([
mfilename
,
':: Maximum Number of Iterations reached'
])
disp
([
mfilename
,
':: Maximum Number of Iterations reached'
])
end
end
case
1
case
1
BadEig
=
max
(
abs
(
eig
(
H1
)))
>
qz_criterium
;
BadEig
=
max
(
abs
(
eig
(
H1
)))
>
qz_criterium
;
if
BadEig
if
BadEig
retcode
=
3
;
retcode
=
62
;
retcode
(
2
)
=
100
*
max
(
abs
(
eig
(
H1
)));
retcode
(
2
)
=
100
*
max
(
abs
(
eig
(
H1
)));
if
verbose
if
verbose
disp
([
mfilename
,
':: Some eigenvalues greater than qz_criterium, Model potentially unstable'
])
disp
([
mfilename
,
':: Some eigenvalues greater than qz_criterium, Model potentially unstable'
])
...
...
This diff is collapsed.
Click to expand it.
matlab/print_info.m
+
10
−
1
View file @
e91f0776
...
@@ -68,6 +68,15 @@ if ~noprint
...
@@ -68,6 +68,15 @@ if ~noprint
error
(
'You are estimating a DSGE-VAR model, but the value of the dsge prior weight is too low!'
)
error
(
'You are estimating a DSGE-VAR model, but the value of the dsge prior weight is too low!'
)
case
52
%DsgeVarLikelihood
case
52
%DsgeVarLikelihood
error
(
''
);
error
(
''
);
case
61
%Discretionary policy
error
([
'Discretionary policy: maximum number of iterations has '
...
'been reached. Procedure failed. '
]);
case
62
error
([
'Discretionary policy: some eigenvalues greater than '
...
'options_.qz_criterium. Model potentially unstable.'
]);
case
63
error
([
'Discretionary policy: NaN elements are present in the '
...
'solution. Procedure failed.'
]);
% Aim Code Conversions by convertAimCodeToInfo.m
% Aim Code Conversions by convertAimCodeToInfo.m
case
102
case
102
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment