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
Johannes Pfeifer
dynare
Commits
488de200
Commit
488de200
authored
Jul 30, 2012
by
Sébastien Villemot
Browse files
Merge remote-tracking branch 'jpfeifer/master'
parents
029d3dda
b10b2160
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/dynare_estimation_init.m
View file @
488de200
...
...
@@ -138,9 +138,12 @@ if ~isempty(estim_params_)
% Test if initial values of the estimated parameters are all between
% the prior lower and upper bounds.
if
any
(
xparam1
<
bounds
(:,
1
))
||
any
(
xparam1
>
bounds
(:,
2
))
find
(
xparam1
<
bounds
(:,
1
))
find
(
xparam1
>
bounds
(:,
2
))
error
(
'Initial parameter values are outside parameter bounds'
)
outside_bound_vars
=
bayestopt_
.
name
([
find
(
xparam1
<
bounds
(:,
1
));
find
(
xparam1
>
bounds
(:,
2
))],:);
disp_string
=
[
outside_bound_vars
{
1
,:}];
for
ii
=
2
:
size
(
outside_bound_vars
,
1
)
disp_string
=
[
disp_string
,
', '
,
outside_bound_vars
{
ii
,:}];
end
error
([
'Initial value(s) of '
,
disp_string
,
' are outside parameter bounds. Potentially, you should set prior_trunc=0.'
])
end
lb
=
bounds
(:,
1
);
ub
=
bounds
(:,
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