L-BFGS-B  3.0
Large-scale Bound-constrained Optimization
prn1lb.f
Go to the documentation of this file.
1 c> \file prn1lb.f
2 
3 c> \brief This subroutine prints the input data, initial point, upper and
4 c> lower bounds of each variable, machine precision, as well as
5 c> the headings of the output.
6 c>
7 c> This subroutine prints the input data, initial point, upper and
8 c> lower bounds of each variable, machine precision, as well as
9 c> the headings of the output.
10 c>
11 c> @param n On entry n is the number of variables.<br/>
12 c> On exit n is unchanged.
13 c>
14 c> @param m On entry m is the maximum number of variable metric
15 c> corrections allowed in the limited memory matrix.<br/>
16 c> On exit m is unchanged.
17 c>
18 c> @param l On entry l is the lower bound of x.<br/>
19 c> On exit l is unchanged.
20 c>
21 c> @param u On entry u is the upper bound of x.<br/>
22 c> On exit u is unchanged.
23 c>
24 c> @param x On entry x is an approximation to the solution.<br/>
25 c> On exit x is the current approximation.
26 c>
27 c> @param iprint It controls the frequency and type of output generated:<ul>
28 c> <li>iprint<0 no output is generated;</li>
29 c> <li>iprint=0 print only one line at the last iteration;</li>
30 c> <li>0<iprint<99 print also f and |proj g| every iprint iterations;</li>
31 c> <li>iprint=99 print details of every iteration except n-vectors;</li>
32 c> <li>iprint=100 print also the changes of active set and final x;</li>
33 c> <li>iprint>100 print details of every iteration including x and g;</li></ul>
34 c> When iprint > 0, the file iterate.dat will be created to
35 c> summarize the iteration.
36 c>
37 c> @param itfile unit number of iterate.dat file
38 c> @param epsmch machine precision epsilon
39  subroutine prn1lb(n, m, l, u, x, iprint, itfile, epsmch)
40 
41  integer n, m, iprint, itfile
42  double precision epsmch, x(n), l(n), u(n)
43 
44 c
45 c * * *
46 c
47 c NEOS, November 1994. (Latest revision June 1996.)
48 c Optimization Technology Center.
49 c Argonne National Laboratory and Northwestern University.
50 c Written by
51 c Ciyou Zhu
52 c in collaboration with R.H. Byrd, P. Lu-Chen and J. Nocedal.
53 c
54 c
55 c ************
56 
57  integer i
58 
59  if (iprint .ge. 0) then
60  write (6,7001) epsmch
61  write (6,*) 'N = ',n,' M = ',m
62  if (iprint .ge. 1) then
63  write (itfile,2001) epsmch
64  write (itfile,*)'N = ',n,' M = ',m
65  write (itfile,9001)
66  if (iprint .gt. 100) then
67  write (6,1004) 'L =',(l(i),i = 1,n)
68  write (6,1004) 'X0 =',(x(i),i = 1,n)
69  write (6,1004) 'U =',(u(i),i = 1,n)
70  endif
71  endif
72  endif
73 
74  1004 format (/,a4, 1p, 6(1x,d11.4),/,(4x,1p,6(1x,d11.4)))
75  2001 format ('RUNNING THE L-BFGS-B CODE',/,/,
76  + 'it = iteration number',/,
77  + 'nf = number of function evaluations',/,
78  + 'nseg = number of segments explored during the Cauchy search',/,
79  + 'nact = number of active bounds at the generalized Cauchy point'
80  + ,/,
81  + 'sub = manner in which the subspace minimization terminated:'
82  + ,/,' con = converged, bnd = a bound was reached',/,
83  + 'itls = number of iterations performed in the line search',/,
84  + 'stepl = step length used',/,
85  + 'tstep = norm of the displacement (total step)',/,
86  + 'projg = norm of the projected gradient',/,
87  + 'f = function value',/,/,
88  + ' * * *',/,/,
89  + 'Machine precision =',1p,d10.3)
90  7001 format ('RUNNING THE L-BFGS-B CODE',/,/,
91  + ' * * *',/,/,
92  + 'Machine precision =',1p,d10.3)
93  9001 format (/,3x,'it',3x,'nf',2x,'nseg',2x,'nact',2x,'sub',2x,'itls',
94  + 2x,'stepl',4x,'tstep',5x,'projg',8x,'f')
95 
96  return
97 
98  end
subroutine prn1lb(n, m, l, u, x, iprint, itfile, epsmch)
This subroutine prints the input data, initial point, upper and lower bounds of each variable,...
Definition: prn1lb.f:40