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
044d19c5
Commit
044d19c5
authored
Sep 04, 2011
by
MichelJuillard
Browse files
fixed bug in detection of near 0/0 eigenvalues
parent
d91c4ac1
Changes
2
Show whitespace changes
Inline
Side-by-side
matlab/dr1.m
View file @
044d19c5
...
...
@@ -100,7 +100,8 @@ if options_.ramsey_policy
ys
=
oo_
.
steady_state
;
if
inst_nbr
==
1
nl_func
=
@
(
x
)
dyn_ramsey_static_
(
x
,
M_
,
options_
,
oo_
,
it_
);
inst_val
=
fzero
(
nl_func
,
oo_
.
steady_state
(
k_inst
));
% inst_val = fzero(nl_func,oo_.steady_state(k_inst));
inst_val
=
csolve
(
nl_func
,
oo_
.
steady_state
(
k_inst
),
''
,
options_
.
solve_tolf
,
100
);
else
[
inst_val
,
info1
]
=
dynare_solve
(
'dyn_ramsey_static_'
,
...
oo_
.
steady_state
(
k_inst
),
0
,
...
...
...
@@ -380,7 +381,7 @@ else % use original Dynare solver
end
for
i
=
1
:
nd
if
abs
(
ss
(
i
,
i
))
<
1e-6
&&
abs
(
tt
(
i
,
i
))
<
1e-6
info
(
7
)
=
1
;
info
(
1
)
=
7
;
end
end
return
...
...
matlab/print_info.m
View file @
044d19c5
...
...
@@ -49,7 +49,7 @@ if ~noprint
error
([
'The Jacobian matrix evaluated at the steady state contains elements '
...
'that are not real or are infinite'
])
case
7
error
([
'One of the eigenvalue is is close to 0/0 (the absolute '
...
error
([
'One of the eigenvalue
s
is is close to 0/0 (the absolute '
...
'value of numerator and denominator is smaller than 1e-6).'
])
case
19
error
(
'The steadystate file did not compute the steady state (inconsistent deep parameters).'
)
...
...
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