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-bf33cf982152time-shift
parent
5f42e79bfc
commit
1b37985435
|
@ -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;
|
||||
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
|
Loading…
Reference in New Issue