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

Go to the source code of this file.

Functions/Subroutines

subroutine active (n, l, u, nbd, x, iwhere, iprint, prjctd, cnstnd, boxed)
 This subroutine initializes iwhere and projects the initial x to the feasible set if necessary. More...
 

Function/Subroutine Documentation

◆ active()

subroutine active ( integer  n,
double precision, dimension(n)  l,
double precision, dimension(n)  u,
integer, dimension(n)  nbd,
double precision, dimension(n)  x,
integer, dimension(n)  iwhere,
integer  iprint,
logical  prjctd,
logical  cnstnd,
logical  boxed 
)

This subroutine initializes iwhere and projects the initial x to the feasible set if necessary.

Parameters
nnumber of parameters
llower bounds on parameters
uupper bounds on parameters
nbdindicates which bounds are present
xposition
iwhereOn entry iwhere is unspecified.
On exit: iwhere(i)=
  • -1 if x(i) has no bounds
  • 3 if l(i)=u(i),
  • 0 otherwise.
In cauchy, iwhere is given finer gradations.
iprintconsole output flag
prjctdTODO
cnstndTODO
boxedTODO

Definition at line 32 of file active.f.

Referenced by mainlb().

Here is the caller graph for this function: