Rename bfgsi.m to bfgsi1.m to avoid clash with the one provided by Tao Zha

Closes: #215
time-shift
Sébastien Villemot 2012-04-20 17:24:52 +02:00
parent edbf3bd175
commit f4e3925860
3 changed files with 4 additions and 4 deletions

View File

@ -39,7 +39,7 @@ License: public-domain
Journal of Economic Dynamics and Control, 2010, vol. 34, issue 3,
pages 472-489
Files: matlab/bfgsi.m matlab/csolve.m matlab/csminit1.m matlab/numgrad2.m
Files: matlab/bfgsi1.m matlab/csolve.m matlab/csminit1.m matlab/numgrad2.m
matlab/numgrad3.m matlab/numgrad5.m matlab/csminwel.m matlab/bvar_density.m
matlab/bvar_toolbox.m matlab/partial_information/PI_gensys.m matlab/qzswitch.m
matlab/qzdiv.m

View File

@ -1,5 +1,5 @@
function H = bfgsi(H0,dg,dx)
% H = bfgsi(H0,dg,dx)
function H = bfgsi1(H0,dg,dx)
% H = bfgsi1(H0,dg,dx)
% dg is previous change in gradient; dx is previous change in x;
% 6/8/93 version that updates inverse hessian instead of hessian
% itself.

View File

@ -273,7 +273,7 @@ while ~done
%badgh
stuck = (abs(fh-f) < crit);
if (~badg) && (~badgh) && (~stuck)
H = bfgsi(H,gh-g,xh-x);
H = bfgsi1(H,gh-g,xh-x);
end
if Verbose
disp('----')