Initialize state space matrices with occbin smoother, when realtime regimes are computed, otherwise they are set to 0 for t<first_period_occbin_update!

trust-region-mex
Marco Ratto 2021-07-21 16:43:01 +02:00
parent bec52fe731
commit d3e5e7b8ef
1 changed files with 7 additions and 0 deletions

View File

@ -212,6 +212,13 @@ else
R0=R;
end
if ~isinf(occbin_options.first_period_occbin_update)
% initialize state matrices (otherwise they are set to 0 for
% t<first_period_occbin_update!)
TTT=repmat(T0,1,1,smpl+1);
RRR=repmat(R0,1,1,smpl+1);
CCC=repmat(zeros(length(T0),1),1,smpl+1);
end
end