#include <OptBCNewtonLike.h>
Inheritance diagram for OPTPP::OptBCNewtonLike:

Public Member Functions | |
| OptBCNewtonLike () | |
| OptBCNewtonLike (int n) | |
| OptBCNewtonLike (int n, UPDATEFCN u) | |
| OptBCNewtonLike (int n, TOLS t) | |
| virtual | ~OptBCNewtonLike () |
| virtual void | acceptStep (int k, int step_type) |
| virtual NEWMAT::ColumnVector | computeSearch (NEWMAT::SymmetricMatrix &H) |
| Compute search direction. | |
| virtual void | updateModel (int k, int ndim, NEWMAT::ColumnVector x) |
| virtual void | reset () |
| virtual int | updateConstraints (int) |
| Add and remove variables from the working set. | |
| virtual int | checkConvg () |
| Check to see if algorithm satisfies the convergence criterion. | |
| virtual int | checkDeriv () |
| Compare the analytic gradient with the finite difference gradient. | |
| virtual double | computeMaxStep (NEWMAT::ColumnVector &) |
| Compute the maximum step allowed along the search direction before we hit a constraint. | |
| virtual int | computeStep (NEWMAT::ColumnVector sk) |
| Compute the step length along the search direction. | |
| virtual void | initHessian () |
| Compute the Hessian or its approximation at the initial point. | |
| virtual void | initOpt () |
| Initialize algorithmic parameters. | |
| virtual double | initTrustRegionSize () const |
| Initialize the size of the trust-region. | |
| virtual void | optimize () |
| Invoke a bound constrained Newton's method. | |
| virtual void | readOptInput () |
| Read user-specified input options from a file. | |
| virtual NEWMAT::SymmetricMatrix | updateH (NEWMAT::SymmetricMatrix &H, int k)=0 |
| Compute the Hessian or its approximation at the current point. | |
| int | checkAnalyticFDGrad () |
| Check analytic gradients against finite-difference gradients. | |
| void | printStatus (char *) |
| Print status of the bound constrained Newton's method. | |
| int | getFevals () const |
| int | getGevals () const |
| DerivOption | getDerivOption () const |
| void | setDerivOption (DerivOption d) |
| Set the type of finite difference routine. | |
| real | getTRSize () const |
| void | setTRSize (real delta) |
| Set radius of trust-region. | |
| real | getGradMult () const |
| void | setGradMult (real tau) |
| Set gradient multiplier which is used to compute trust-region radius. | |
| int | getSearchSize () const |
| void | setSearchSize (int sss) |
| Set number of points in search scheme for trust-pds search strategy. | |
| bool | getWarmStart () const |
| void | useWarmStart (NEWMAT::SymmetricMatrix &H) |
| SearchStrategy | getSearchStrategy () const |
| void | setSearchStrategy (SearchStrategy s) |
| Set globalization strategy for optimization algorithms. | |
| NEWMAT::SymmetricMatrix | getHessian () const |
| void | setHessian (NEWMAT::SymmetricMatrix &H) |
| Store the current Hessian matrix. | |
Protected Member Functions | |
| virtual NLP1 * | nlprob () const =0 |
| returns an NLP1 pointer | |
| void | defaultAcceptStep (int, int) |
| NEWMAT::ColumnVector | defaultComputeSearch (NEWMAT::SymmetricMatrix &) |
Protected Attributes | |
| NEWMAT::ColumnVector | gprev |
| Gradient at previous iteration. | |
| NEWMAT::SymmetricMatrix | Hessian |
| Current Hessian. | |
| int | grad_evals |
| Number of gradient evaluations. | |
| SearchStrategy | strategy |
| User-specified globalization strategy. | |
| DerivOption | finitediff |
| User-specified derivative option. | |
| real | TR_size |
| Trust region radius. | |
| real | gradMult |
| Gradient multiplier to compute TR_size. | |
| int | searchSize |
| Search pattern size for TRPDS. | |
| int | m_nconvgd |
| Syncs fcn & constraint convergence. | |
| bool | WarmStart |
Friends | |
| int | trustregion (NLP1 *, ostream *, NEWMAT::SymmetricMatrix &, NEWMAT::ColumnVector &, NEWMAT::ColumnVector &, real &, real &, real stpmax, real stpmin) |
| int | trustpds (NLP1 *, ostream *, NEWMAT::SymmetricMatrix &, NEWMAT::ColumnVector &, NEWMAT::ColumnVector &, real &, real &, real stpmax, real stpmin, int) |
OptBCNewtonlike implements a active set algorithm for bound constrained optimization.
|
|
Default Constructor |
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
Destructor |
|
||||||||||||
|
Implements OPTPP::OptimizeClass. Reimplemented in OPTPP::OptBaNewton, and OPTPP::OptBaQNewton. |
|
|
Check analytic gradients against finite-difference gradients.
|
|
|
Check to see if algorithm satisfies the convergence criterion.
Implements OPTPP::OptimizeClass. Reimplemented in OPTPP::OptBaNewton, OPTPP::OptBaQNewton, OPTPP::OptBCNewton, and OPTPP::OptBCQNewton. |
|
|
Compare the analytic gradient with the finite difference gradient.
Reimplemented in OPTPP::OptBCFDNewton, OPTPP::OptBCNewton, and OPTPP::OptBCQNewton. |
|
|
Compute the maximum step allowed along the search direction before we hit a constraint.
Reimplemented in OPTPP::OptBaNewton, OPTPP::OptBaQNewton, OPTPP::OptBCNewton, and OPTPP::OptBCQNewton. |
|
|
Compute search direction.
Implements OPTPP::OptimizeClass. Reimplemented in OPTPP::OptBCNewton, and OPTPP::OptBCQNewton. |
|
|
Compute the step length along the search direction.
Reimplemented in OPTPP::OptBaNewton, and OPTPP::OptBaQNewton. |
|
||||||||||||
|
Provide default implementation of AcceptStep Reimplemented from OPTPP::OptimizeClass. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Compute the Hessian or its approximation at the initial point.
Reimplemented in OPTPP::OptBaNewton, OPTPP::OptBCNewton, and OPTPP::OptBCQNewton. |
|
|
Initialize algorithmic parameters.
Reimplemented in OPTPP::OptBaNewton, OPTPP::OptBaQNewton, OPTPP::OptBCNewton, and OPTPP::OptBCQNewton. |
|
|
Initialize the size of the trust-region.
|
|
|
returns an NLP1 pointer
Implemented in OPTPP::OptBCNewton1Deriv, and OPTPP::OptBCNewton2Deriv. |
|
|
Invoke a bound constrained Newton's method.
Implements OPTPP::OptimizeClass. Reimplemented in OPTPP::OptBaNewton, and OPTPP::OptBaQNewton. |
|
|
Print status of the bound constrained Newton's method.
Implements OPTPP::OptimizeClass. Reimplemented in OPTPP::OptBCNewton, and OPTPP::OptBCQNewton. |
|
|
Read user-specified input options from a file.
Implements OPTPP::OptimizeClass. |
|
|
Implements OPTPP::OptimizeClass. Reimplemented in OPTPP::OptBCFDNewton, OPTPP::OptBCNewton, and OPTPP::OptBCQNewton. |
|
|
Set the type of finite difference routine.
|
|
|
Set gradient multiplier which is used to compute trust-region radius.
|
|
|
Store the current Hessian matrix.
|
|
|
Set number of points in search scheme for trust-pds search strategy.
|
|
|
Set globalization strategy for optimization algorithms.
|
|
|
Set radius of trust-region.
|
|
|
Add and remove variables from the working set.
Reimplemented in OPTPP::OptBCNewton, and OPTPP::OptBCQNewton. |
|
||||||||||||
|
Compute the Hessian or its approximation at the current point.
Implemented in OPTPP::OptBaNewton, OPTPP::OptBaQNewton, OPTPP::OptBCFDNewton, OPTPP::OptBCNewton, and OPTPP::OptBCQNewton. |
|
||||||||||||||||
|
Implements OPTPP::OptimizeClass. |
|
|
|
|
||||||||||||||||||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||||||||||||||
|
|
|
|
User-specified derivative option.
|
|
|
Gradient at previous iteration.
|
|
|
Number of gradient evaluations.
|
|
|
Gradient multiplier to compute TR_size.
|
|
|
Current Hessian.
|
|
|
Syncs fcn & constraint convergence.
|
|
|
Search pattern size for TRPDS.
|
|
|
User-specified globalization strategy.
|
|
|
Trust region radius.
|
|
|
|