53 subroutine prn2lb(n, x, f, g, iprint, itfile, iter, nfgv, nact,
54 + sbgnrm, nseg, word, iword, iback, stp, xstep)
57 integer n, iprint, itfile, iter, nfgv, nact, nseg,
59 double precision f, sbgnrm, stp, xstep, x(n), g(n)
76 if (iword .eq. 0)
then
79 else if (iword .eq. 1)
then
82 else if (iword .eq. 5)
then
88 if (iprint .ge. 99)
then
89 write (6,*)
'LINE SEARCH',iback,
' times; norm of step = ',xstep
90 write (6,2001) iter,f,sbgnrm
91 if (iprint .gt. 100)
then
92 write (6,1004)
'X =',(x(i), i = 1, n)
93 write (6,1004)
'G =',(g(i), i = 1, n)
95 else if (iprint .gt. 0)
then
96 imod = mod(iter,iprint)
97 if (imod .eq. 0)
write (6,2001) iter,f,sbgnrm
99 if (iprint .ge. 1)
write (itfile,3001)
100 + iter,nfgv,nseg,nact,word,iback,stp,xstep,sbgnrm,f
102 1004
format (/,a4, 1p, 6(1x,d11.4),/,(4x,1p,6(1x,d11.4)))
104 + (/,
'At iterate',i5,4x,
'f= ',1p,d12.5,4x,
'|proj g|= ',1p,d12.5)
105 3001
format(2(1x,i4),2(1x,i5),2x,a3,1x,i4,1p,2(2x,d7.1),1p,2(1x,d10.3))
subroutine prn2lb(n, x, f, g, iprint, itfile, iter, nfgv, nact, sbgnrm, nseg, word, iword, iback, stp, xstep)
This subroutine prints out new information after a successful line search.