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

Go to the source code of this file.

Functions/Subroutines

subroutine matupd (n, m, ws, wy, sy, ss, d, r, itail, iupdat, col, head, theta, rr, dr, stp, dtd)
 This subroutine updates matrices WS and WY, and forms the middle matrix in B. More...
 

Function/Subroutine Documentation

◆ matupd()

subroutine matupd ( integer  n,
integer  m,
double precision, dimension(n, m)  ws,
double precision, dimension(n, m)  wy,
double precision, dimension(m, m)  sy,
double precision, dimension(m, m)  ss,
double precision, dimension(n)  d,
double precision, dimension(n)  r,
integer  itail,
integer  iupdat,
integer  col,
integer  head,
double precision  theta,
double precision  rr,
double precision  dr,
double precision  stp,
double precision  dtd 
)

This subroutine updates matrices WS and WY, and forms the middle matrix in B.

Parameters
nOn entry n is the number of variables.
On exit n is unchanged.
mOn entry m is the maximum number of variable metric corrections allowed in the limited memory matrix.
On exit m is unchanged.
wsOn entry this stores S, a set of s-vectors, that defines the limited memory BFGS matrix.
On exit this array is unchanged.
wyOn entry this stores Y, a set of y-vectors, that defines the limited memory BFGS matrix.
On exit this array is unchanged.
syOn entry this stores S'Y, that defines the limited memory BFGS matrix.
On exit this array is unchanged.
ssOn entry this stores S'S, that defines the limited memory BFGS matrix.
On exit this array is unchanged.
dTODO
rTODO
itailTODO
iupdatTODO
colOn entry col is the actual number of variable metric corrections stored so far.
On exit col is unchanged.
headOn entry head is the location of the first s-vector (or y-vector) in S (or Y).
On exit col is unchanged.
thetaOn entry theta is the scaling factor specifying B_0 = theta I.
On exit theta is unchanged.
rrTODO
drTODO
stpTODO
dtdTODO

Definition at line 49 of file matupd.f.

Referenced by mainlb().

Here is the caller graph for this function: