Skip to content
Snippets Groups Projects
Commit cff38c00 authored by michel's avatar michel
Browse files

v4.1: initialize_from_mode doesn't need bayestopt_ anymore

git-svn-id: https://www.dynare.org/svn/dynare/trunk@2560 ac1d8469-bf42-47a9-8791-bf33cf982152
parent adc1e775
Branches
Tags
No related merge requests found
...@@ -32,7 +32,7 @@ function estim_params_ = initialize_from_mode(fname,M_,estim_params_) ...@@ -32,7 +32,7 @@ function estim_params_ = initialize_from_mode(fname,M_,estim_params_)
% along with Dynare. If not, see <http://www.gnu.org/licenses/>. % along with Dynare. If not, see <http://www.gnu.org/licenses/>.
load(fname); load(fname,'xparam1','parameter_names');
endo_names = M_.endo_names; endo_names = M_.endo_names;
exo_names = M_.exo_names; exo_names = M_.exo_names;
...@@ -42,9 +42,8 @@ function estim_params_ = initialize_from_mode(fname,M_,estim_params_) ...@@ -42,9 +42,8 @@ function estim_params_ = initialize_from_mode(fname,M_,estim_params_)
var_endo = estim_params_.var_endo; var_endo = estim_params_.var_endo;
corrx = estim_params_.corrx; corrx = estim_params_.corrx;
corrn = estim_params_.corrn; corrn = estim_params_.corrn;
names = bayestopt_.name; for i=1:length(parameter_names)
for i=1:length(names) name = parameter_names{i};
name = names{i};
k1 = strmatch(name,param_names,'exact'); k1 = strmatch(name,param_names,'exact');
if ~isempty(k1) if ~isempty(k1)
k2 = find(param_vals(:,1) == k1); k2 = find(param_vals(:,1) == k1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment