Verified Commit 0b87f664 authored by Johannes Pfeifer 's avatar Johannes Pfeifer Committed by Stéphane Adjemian

non_linear_dsge_likelihood.m: do not set use_k_order_solver with pruning

local_state_space_iteration_k does not support it, use local_state_space_iteration_2 at order=2 instead and error out with order=3
parent f5538265
......@@ -63,6 +63,9 @@ if DynareOptions.order>1
end
end
end
if DynareOptions.order>2 && DynareOptions.particle.pruning==1
error('initial_estimation_checks:: the particle filter with order>2 does not support pruning')
end
end
non_zero_ME=length(EstimatedParameters.H_entries_to_check_for_positive_definiteness);
......
......@@ -119,7 +119,7 @@ ReducedForm.H = H;
ReducedForm.mf0 = mf0;
ReducedForm.mf1 = mf1;
if DynareOptions.k_order_solver
if DynareOptions.k_order_solver && ~(DynareOptions.particle.pruning && DynareOptions.order==2)
ReducedForm.use_k_order_solver = true;
ReducedForm.dr = dr;
else
......
Markdown is supported
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