L-BFGS-B
3.0
Large-scale Bound-constrained Optimization
|
Go to the source code of this file.
Functions/Subroutines | |
subroutine | projgr (n, l, u, nbd, x, g, sbgnrm) |
This subroutine computes the infinity norm of the projected gradient. More... | |
subroutine projgr | ( | integer | n, |
double precision, dimension(n) | l, | ||
double precision, dimension(n) | u, | ||
integer, dimension(n) | nbd, | ||
double precision, dimension(n) | x, | ||
double precision, dimension(n) | g, | ||
double precision | sbgnrm | ||
) |
This subroutine computes the infinity norm of the projected gradient.
n | On entry n is the number of variables. On exit n is unchanged. |
l | On entry l is the lower bound of x. On exit l is unchanged. |
u | On entry u is the upper bound of x. On exit u is unchanged. |
nbd | On entry nbd represents the type of bounds imposed on the variables, and must be specified as follows: nbd(i)=
|
x | On entry x is an approximation to the solution. On exit x is unchanged. |
g | On entry g is the gradient. On exit g is unchanged. |
sbgnrm | infinity norm of projected gradient |
Definition at line 33 of file projgr.f.
Referenced by mainlb().