43 subroutine prn2lb(n, x, f, g, iprint, itfile, iter, nfgv, nact,
44 + sbgnrm, nseg, word, iword, iback, stp, xstep)
47 integer n, iprint, itfile, iter, nfgv, nact, nseg,
49 double precision f, sbgnrm, stp, xstep, x(n), g(n)
66 if (iword .eq. 0)
then
69 else if (iword .eq. 1)
then
72 else if (iword .eq. 5)
then
78 if (iprint .ge. 99)
then
79 write (6,*)
'LINE SEARCH',iback,
' times; norm of step = ',xstep
80 write (6,2001) iter,f,sbgnrm
81 if (iprint .gt. 100)
then
82 write (6,1004)
'X =',(x(i), i = 1, n)
83 write (6,1004)
'G =',(g(i), i = 1, n)
85 else if (iprint .gt. 0)
then
86 imod = mod(iter,iprint)
87 if (imod .eq. 0)
write (6,2001) iter,f,sbgnrm
89 if (iprint .ge. 1)
write (itfile,3001)
90 + iter,nfgv,nseg,nact,word,iback,stp,xstep,sbgnrm,f
92 1004
format (/,a4, 1p, 6(1x,d11.4),/,(4x,1p,6(1x,d11.4)))
94 + (/,
'At iterate',i5,4x,
'f= ',1p,d12.5,4x,
'|proj g|= ',1p,d12.5)
95 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.