Commit 1b379854 authored by stepan's avatar stepan
Browse files

Added a generated mat file keeping track of the estimated parameters' values.



git-svn-id: https://www.dynare.org/svn/dynare/trunk@3347 ac1d8469-bf42-47a9-8791-bf33cf982152
parent 5f42e79b
......@@ -66,7 +66,9 @@ if nargin>3
end
if ~master_is_running_a_job
error('Master has to run one job!');
end
end
estimated_parameters_optimization_path = [NaN;xparam];
save('optimization_path.mat','estimated_parameters_optimization_path');
disp(' ')
disp('Master talks to its slaves...')
disp(' ')
......
......@@ -127,7 +127,7 @@ else% parallel mode.
eval(['job' int2str(job_master(1)) ';'])
tElapsedMasterJob = etime(clock, tStartMasterJob);
else
tElapsedMasterJob = 30*100;
% tElapsedMasterJob = 30*100;
end
tStart = clock;
missing_jobs = 1;
......@@ -155,5 +155,11 @@ else% parallel mode.
end
r = transpose(simulated_moments-sample_moments)*weighting_matrix*(simulated_moments-sample_moments);
priorObjectiveValue = r;
priorObjectiveValue = r;
\ No newline at end of file
if exist('optimization_path.mat')
load('optimization_path.mat');
new_state = [ r; xparams];
estimated_parameters_optimization_path = [ estimated_parameters_optimization_path , new_state ];
save('optimization_path.mat','estimated_parameters_optimization_path');
end
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment