Skip to content
Snippets Groups Projects
Verified Commit 9f1270b2 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Forbid alternative 1st order solvers with k_order_solver option

(cherry picked from commit cc02690a)
parent 8c8b9e0d
No related branches found
No related tags found
No related merge requests found
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment