18 COMMON /lminui/ xkin(4),ukin(4),wkin(4),ain(4),
bin(4),
19 &maxfin,relup,relerr,reler2,fcnmax
20 REAL xkin,ukin,wkin,ain,
bin,relerr,relup,reler2,fcnmax
30 1/lmmine/ erp(30) ,ern(30)
31 2/lmpari/
x(15) ,xt(15) ,dirin(15) ,maxint ,npar
32 3/lmpare/ u(30) ,werr(30) ,maxext ,nu
33 4/lmlimi/ alim(30) ,blim(30) ,lcode(30) ,lcorsp(30) ,limset
35 7/lmfix / ipfix(15),xs(15) ,xts(15) ,dirins(15) ,npfix
36 7/lmfix2/ grds(15) ,g2s(15) ,gsteps(15),aberfs(15)
37 c/lmcasc/
y(16) ,jh ,jl
38 f/lmderi/ gin(30) ,grd(15) ,g2(15) ,gstep(15) ,aberf(15)
39 g/lmsimv/
p(15,16) ,pstar(15),pstst(15) ,pbar(15) ,prho(15)
42 6/lmunit/ isysrd ,isyswr ,isyspu
43 8/lmtitl/
title(13),date(2) ,isw(7) ,nblock
44 9/lmconv/ epsi ,apsi ,vtest ,nstepq ,nfcn ,nfcnmx
45 a/lmcard/ cword ,cword2 ,cword3 ,word7(7)
46 b/lmmini/ amin ,up ,newmin ,itaur ,sigma,epsmac
53 INTEGER lcode,lcorsp,limset
58 REAL grds,g2s,gsteps,aberfs
61 REAL gin,grd,g2,gstep,aberf
62 REAL p,pstar,pstst,pbar,prho
65 INTEGER isysrd ,isyswr ,isyspu
68 REAL epsi ,apsi ,vtest
69 INTEGER nstepq ,nfcn ,nfcnmx
70 REAL cword ,cword2 ,cword3 ,word7
71 REAL amin ,up ,sigma,epsmac
78 word7(1)=relup*abs(amin)
80 IF (up .LE. 0.) up = 1.0
81 IF (isw(2) .GE. 1) CALL
lmprin(1,amin)
84 nfcnmx = word7(1) + 0.5
85 IF (nfcnmx .LE. 0) nfcnmx = 1000
87 IF (epsi .LE. 0.) epsi = 0.1 * up
92 IF(abs(dirin(1)).LE.abs(epsmac*
x(1)).AND.
93 & abs(dirin(2)).LE.abs(epsmac*
x(2)))
THEN
94 IF(lst3.GE.1)
WRITE(6,2100)
100 nfcnmx = word7(1) + 0.5
101 IF (nfcnmx .LE. 0) nfcnmx = 1000
103 IF (epsi .LE. 0.) epsi = 0.1 * up
107 IF(lst3.GE.1)
WRITE(6,2200)
113 1100
it = word7(1) + 0.5
114 IF (fval3 .EQ. amin .OR.
it .GT. 0)
RETURN
116 CALL
lsigmx(npar,gin,f,u,iflag)
118 IF(lst3.GE.1.AND.abs(f).GT.fmax)
WRITE(6,2300) f
121 2100
FORMAT(
' Warning: Stepsizes are less than machine accuracy ',
122 &
'times variable values. No further minimization attempted.')
123 2200
FORMAT(
' Warning: Simplex minimization has not converged ',
124 &
'properly.',/,10
x,
'Returned maximum increased by a factor 1.25.')
125 2300
FORMAT(
' Warning from LMCMND: function at minimum, ',e12.4,
126 &
' is smaller than stored minimum.')