L-BFGS-B  3.0
Large-scale Bound-constrained Optimization
prn2lb.f File Reference

Go to the source code of this file.

Functions/Subroutines

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. More...
 

Function/Subroutine Documentation

◆ prn2lb()

subroutine prn2lb ( integer  n,
double precision, dimension(n)  x,
double precision  f,
double precision, dimension(n)  g,
integer  iprint,
integer  itfile,
integer  iter,
integer  nfgv,
integer  nact,
double precision  sbgnrm,
integer  nseg,
character*3  word,
integer  iword,
integer  iback,
double precision  stp,
double precision  xstep 
)

This subroutine prints out new information after a successful line search.

Parameters
nOn entry n is the number of variables.
On exit n is unchanged.
xOn entry x is an approximation to the solution.
On exit x is the current approximation.
fOn first entry f is unspecified.
On final exit f is the value of the function at x.
gOn first entry g is unspecified.
On final exit g is the value of the gradient at x.
iprintIt controls the frequency and type of output generated:
  • iprint<0 no output is generated;
  • iprint=0 print only one line at the last iteration;
  • 0<iprint<99 print also f and |proj g| every iprint iterations;
  • iprint=99 print details of every iteration except n-vectors;
  • iprint=100 print also the changes of active set and final x;
  • iprint>100 print details of every iteration including x and g;
When iprint > 0, the file iterate.dat will be created to summarize the iteration.
itfileunit number of iterate.dat file
iterCurrent outer iteration number; printed on the per-iterate summary line.
nfgvCumulative number of f/g evaluations across the whole run; logged into the iterate.dat record.
nactNumber of variables active at their bounds at the current iterate.
sbgnrmInfinity norm of the projected gradient at x; the natural first-order optimality measure printed alongside f.
nsegNumber of breakpoint segments traversed by cauchy at the current iteration; printed for diagnostic accounting.
wordOn exit a 3-character status code summarising the subspace solution: 'con' (converged), 'bnd' (hit a bound), 'TNT' (truncated-Newton step used), or '—' otherwise. Determined from iword.
iwordStatus code from subsm: 0 = subspace minimisation converged, 1 = stopped at a bound, 5 = truncated-Newton step used. Maps to word.
ibackNumber of backtracks the line search performed.
stpFinal step length accepted by the line search.
xstepstp * ||d|| – the actual length of the step in x-space.

Definition at line 53 of file prn2lb.f.

Referenced by mainlb().

Here is the caller graph for this function: