v4 solve1.m: corrected convergence criterium max(abs(fvec)) < tolf instead of f < tolf

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1330 ac1d8469-bf42-47a9-8791-bf33cf982152
time-shift
michel 2007-06-25 14:48:55 +00:00
parent 4074588719
commit ec4d29935d
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ function [x,check] = solve1(func,x,j1,j2,jacobian_flag,varargin)
disp (x)
return
end
elseif f < tolf
elseif max(abs(fvec)) < tolf
return
end
end