diff --git a/matlab/stochastic_solver/k_order_pert.m b/matlab/stochastic_solver/k_order_pert.m index 28946e00264ada8060cd8206db7d22f6e08b2549..573c76e166b541b1a47e545ef357fe542b579a79 100644 --- a/matlab/stochastic_solver/k_order_pert.m +++ b/matlab/stochastic_solver/k_order_pert.m @@ -1,7 +1,7 @@ function [dr,info] = k_order_pert(dr,M_,options_) % Compute decision rules using the k-order DLL from Dynare++ -% Copyright © 2009-2023 Dynare Team +% Copyright © 2009-2024 Dynare Team % % This file is part of Dynare. % @@ -30,6 +30,16 @@ if M_.maximum_endo_lead == 0 && order>1 'backward models']) end +if options_.aim_solver + error('Option aim_solver is not compatible with k_order_solver') +end +if options_.dr_cycle_reduction + error('Option dr=cycle_reduction is not compatible with k_order_solver') +end +if options_.dr_logarithmic_reduction + error('Option dr=logarithmic_reduction is not compatible with k_order_solver') +end + try [dynpp_derivs, dyn_derivs] = k_order_perturbation(dr,M_,options_); catch ME