Skip to content
GitLab
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
d1120da6
Commit
d1120da6
authored
Apr 21, 2012
by
MichelJuillard
Browse files
fixing bugs in evaluation of steady state file introduced in last
related commit
parent
6131e597
Changes
2
Hide whitespace changes
Inline
Side-by-side
matlab/evaluate_steady_state.m
View file @
d1120da6
...
...
@@ -55,7 +55,11 @@ function [ys,params,info] = evaluate_steady_state(ys_init,M,options,oo,steadysta
[
ys
,
params
]
=
dyn_ramsey_static
(
ys_init
,
M
,
options
,
oo
);
elseif
steadystate_flag
% explicit steady state file
[
ys
,
params1
,
check
]
=
evaluate_steady_state_file
(
ys_init
,
exo_ss
,
M
,
options
);
[
ys
,
params1
,
info
]
=
evaluate_steady_state_file
(
ys_init
,
exo_ss
,
M
,
...
options
);
if
info
(
1
)
return
;
end
elseif
(
options
.
bytecode
==
0
&&
options
.
block
==
0
)
if
options
.
linear
==
0
% non linear model
...
...
@@ -105,15 +109,3 @@ function [ys,params,info] = evaluate_steady_state(ys_init,M,options,oo,steadysta
return
end
if
options
.
steadystate_flag
&&
updated_params_flag
&&
~
isreal
(
params
)
info
(
1
)
=
23
;
info
(
2
)
=
sum
(
imag
(
params
)
.^
2
);
return
end
if
options
.
steadystate_flag
&&
updated_params_flag
&&
~
isempty
(
find
(
isnan
(
params
)))
info
(
1
)
=
24
;
info
(
2
)
=
NaN
;
return
end
matlab/evaluate_steady_state_file.m
View file @
d1120da6
...
...
@@ -79,6 +79,7 @@ function [ys,params,info] = evaluate_steady_state_file(ys_init,exo_ss,M,options)
% adding values for auxiliary variables
if
length
(
M
.
aux_vars
)
>
0
h_set_auxiliary_variables
=
str2func
([
M
.
fname
'_set_auxiliary_variables'
]);
ys
=
h_set_auxiliary_variables
(
ys
,
exo_ss
,
params
);
end
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment