From 4e0f2bf695ef2d6cfe356fbc2cb29373e3ca0a70 Mon Sep 17 00:00:00 2001 From: Johannes Pfeifer Date: Wed, 2 Jun 2021 16:21:16 +0200 Subject: [PATCH] dynare_solve.m: have csolve honor selected options --- matlab/dynare_solve.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matlab/dynare_solve.m b/matlab/dynare_solve.m index 913640ac3..6ce29b6c8 100644 --- a/matlab/dynare_solve.m +++ b/matlab/dynare_solve.m @@ -324,9 +324,9 @@ elseif ismember(options.solve_algo, [2, 12, 4]) end elseif options.solve_algo==3 if jacobian_flag - [x, errorflag] = csolve(f, x, f, 1e-6, 500, arguments{:}); + [x, errorflag] = csolve(f, x, f, tolf, maxit, arguments{:}); else - [x, errorflag] = csolve(f, x, [], 1e-6, 500, arguments{:}); + [x, errorflag] = csolve(f, x, [], tolf, maxit, arguments{:}); end [fvec, fjac] = feval(f, x, arguments{:}); elseif options.solve_algo==10