|
ROL
|
#include <ROL_HelperFunctions.hpp>
Public Member Functions | |
| ProjectedObjective (Objective< Real > &obj, BoundConstraint< Real > &con, ROL::Ptr< Secant< Real > > &secant, bool useSecantPrecond=false, bool useSecantHessVec=false, Real eps=0.0) | |
| void | update (const Vector< Real > &x, bool flag=true, int iter=-1) |
| Real | value (const Vector< Real > &x, Real &tol) |
| void | gradient (Vector< Real > &g, const Vector< Real > &x, Real &tol) |
| Real | dirDeriv (const Vector< Real > &x, const Vector< Real > &d, Real &tol) |
| void | hessVec (Vector< Real > &Hv, const Vector< Real > &v, const Vector< Real > &x, Real &tol) |
| void | invHessVec (Vector< Real > &Hv, const Vector< Real > &v, const Vector< Real > &x, Real &tol) |
| void | precond (Vector< Real > &Mv, const Vector< Real > &v, const Vector< Real > &x, Real &tol) |
| void | reducedHessVec (Vector< Real > &Hv, const Vector< Real > &v, const Vector< Real > &p, const Vector< Real > &d, const Vector< Real > &x, Real &tol) |
| Apply the reduced Hessian to a vector, v. The reduced Hessian first removes elements of v corresponding to the feasible indices from the point p in the direction -d. Hv the Hessian times a vector v input vector p starting point for tangent cone d negative of search direction x current iteration vector tol objective function tolerance. | |
| void | reducedHessVec (Vector< Real > &Hv, const Vector< Real > &v, const Vector< Real > &p, const Vector< Real > &x, Real &tol) |
| Apply the reduced Hessian to a vector, v. The reduced Hessian first removes elements of v corresponding to the feasible indices from the point p. Hv the Hessian times a vector v input vector p starting point for tangent cone x current iteration vector tol objective function tolerance. | |
| void | reducedInvHessVec (Vector< Real > &Hv, const Vector< Real > &v, const Vector< Real > &p, const Vector< Real > &d, const Vector< Real > &x, Real &tol) |
| Apply the reduced inverse Hessian to a vector, v. The reduced inverse Hessian first removes elements of v corresponding to the feasible indices from the point p in the direction -d. Hv the inverse Hessian times a vector v input vector p starting point for tangent cone d negative of search direction x current iteration vector tol objective function tolerance. | |
| void | reducedInvHessVec (Vector< Real > &Hv, const Vector< Real > &v, const Vector< Real > &p, const Vector< Real > &x, Real &tol) |
| Apply the reduced inverse Hessian to a vector, v. The reduced inverse Hessian first removes elements of v corresponding to the feasible indices from the point p. Hv the inverse Hessian times a vector v input vector p starting point for tangent cone x current iteration vector tol objective function tolerance. | |
| void | reducedPrecond (Vector< Real > &Mv, const Vector< Real > &v, const Vector< Real > &p, const Vector< Real > &d, const Vector< Real > &x, Real &tol) |
| Apply the reduced preconditioner to a vector, v. The reduced preconditioner first removes elements of v corresponding to the feasible indices from the point p in the direction -d. Hv the preconditioner times a vector v input vector p starting point for tangent cone d negative of search direction x current iteration vector tol objective function tolerance. | |
| void | reducedPrecond (Vector< Real > &Mv, const Vector< Real > &v, const Vector< Real > &p, const Vector< Real > &x, Real &tol) |
| Apply the reduced preconditioner to a vector, v. The reduced preconditioner first removes elements of v corresponding to the feasible indices from the point p. Hv the preconditioner times a vector v input vector p starting point for tangent cone x current iteration vector tol objective function tolerance. | |
| void | project (Vector< Real > &x) |
| void | pruneActive (Vector< Real > &v, const Vector< Real > &g, const Vector< Real > &x) |
| void | pruneActive (Vector< Real > &v, const Vector< Real > &x) |
| void | pruneInactive (Vector< Real > &v, const Vector< Real > &g, const Vector< Real > &x) |
| void | pruneInactive (Vector< Real > &v, const Vector< Real > &x) |
| bool | isFeasible (const Vector< Real > &v) |
| bool | isConActivated (void) |
| void | computeProjectedStep (Vector< Real > &v, const Vector< Real > &x) |
| Public Member Functions inherited from ROL::ROL::Objective< Real > | |
| virtual | ~Objective () |
| Objective () | |
| virtual void | update (const Vector< Real > &x, UpdateType type, int iter=-1) |
| Update objective function. | |
| virtual void | update (const Vector< Real > &x, bool flag=true, int iter=-1) |
| Update objective function. | |
| virtual Real | value (const Vector< Real > &x, Real &tol)=0 |
| Compute value. | |
| virtual void | gradient (Vector< Real > &g, const Vector< Real > &x, Real &tol) |
| Compute gradient. | |
| virtual Real | dirDeriv (const Vector< Real > &x, const Vector< Real > &d, Real &tol) |
| Compute directional derivative. | |
| virtual void | hessVec (Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &x, Real &tol) |
| Apply Hessian approximation to vector. | |
| virtual void | invHessVec (Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &x, Real &tol) |
| Apply inverse Hessian approximation to vector. | |
| virtual void | precond (Vector< Real > &Pv, const Vector< Real > &v, const Vector< Real > &x, Real &tol) |
| Apply preconditioner to vector. | |
| virtual void | prox (Vector< Real > &Pv, const Vector< Real > &v, Real t, Real &tol) |
| Compute the proximity operator. | |
| virtual void | proxJacVec (Vector< Real > &Jv, const Vector< Real > &v, const Vector< Real > &x, Real t, Real &tol) |
| Apply the Jacobian of the proximity operator. | |
| virtual std::vector< std::vector< Real > > | checkGradient (const Vector< Real > &x, const Vector< Real > &d, const bool printToStream=true, std::ostream &outStream=std::cout, const int numSteps=ROL_NUM_CHECKDERIV_STEPS, const int order=1) |
| Finite-difference gradient check. | |
| virtual std::vector< std::vector< Real > > | checkGradient (const Vector< Real > &x, const Vector< Real > &g, const Vector< Real > &d, const bool printToStream=true, std::ostream &outStream=std::cout, const int numSteps=ROL_NUM_CHECKDERIV_STEPS, const int order=1) |
| Finite-difference gradient check. | |
| virtual std::vector< std::vector< Real > > | checkGradient (const Vector< Real > &x, const Vector< Real > &d, const std::vector< Real > &steps, const bool printToStream=true, std::ostream &outStream=std::cout, const int order=1) |
| Finite-difference gradient check with specified step sizes. | |
| virtual std::vector< std::vector< Real > > | checkGradient (const Vector< Real > &x, const Vector< Real > &g, const Vector< Real > &d, const std::vector< Real > &steps, const bool printToStream=true, std::ostream &outStream=std::cout, const int order=1) |
| Finite-difference gradient check with specified step sizes. | |
| virtual std::vector< std::vector< Real > > | checkHessVec (const Vector< Real > &x, const Vector< Real > &v, const bool printToStream=true, std::ostream &outStream=std::cout, const int numSteps=ROL_NUM_CHECKDERIV_STEPS, const int order=1) |
| Finite-difference Hessian-applied-to-vector check. | |
| virtual std::vector< std::vector< Real > > | checkHessVec (const Vector< Real > &x, const Vector< Real > &hv, const Vector< Real > &v, const bool printToStream=true, std::ostream &outStream=std::cout, const int numSteps=ROL_NUM_CHECKDERIV_STEPS, const int order=1) |
| Finite-difference Hessian-applied-to-vector check. | |
| virtual std::vector< std::vector< Real > > | checkHessVec (const Vector< Real > &x, const Vector< Real > &v, const std::vector< Real > &steps, const bool printToStream=true, std::ostream &outStream=std::cout, const int order=1) |
| Finite-difference Hessian-applied-to-vector check with specified step sizes. | |
| virtual std::vector< std::vector< Real > > | checkHessVec (const Vector< Real > &x, const Vector< Real > &hv, const Vector< Real > &v, const std::vector< Real > &steps, const bool printToStream=true, std::ostream &outStream=std::cout, const int order=1) |
| Finite-difference Hessian-applied-to-vector check with specified step sizes. | |
| virtual std::vector< Real > | checkHessSym (const Vector< Real > &x, const Vector< Real > &v, const Vector< Real > &w, const bool printToStream=true, std::ostream &outStream=std::cout) |
| Hessian symmetry check. | |
| virtual std::vector< Real > | checkHessSym (const Vector< Real > &x, const Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &w, const bool printToStream=true, std::ostream &outStream=std::cout) |
| Hessian symmetry check. | |
| virtual std::vector< std::vector< Real > > | checkProxJacVec (const Vector< Real > &x, const Vector< Real > &v, Real t=Real(1), bool printToStream=true, std::ostream &outStream=std::cout, int numSteps=ROL_NUM_CHECKDERIV_STEPS) |
| Finite-difference proximity operator Jacobian-applied-to-vector check. | |
| virtual void | setParameter (const std::vector< Real > ¶m) |
Private Attributes | |
| ROL::Ptr< Objective< Real > > | obj_ |
| ROL::Ptr< BoundConstraint< Real > > | con_ |
| ROL::Ptr< Secant< Real > > | secant_ |
| ROL::Ptr< ROL::Vector< Real > > | primalV_ |
| ROL::Ptr< ROL::Vector< Real > > | dualV_ |
| bool | isInitialized_ |
| bool | useSecantPrecond_ |
| bool | useSecantHessVec_ |
| Real | eps_ |
Additional Inherited Members | |
| Protected Member Functions inherited from ROL::ROL::Objective< Real > | |
| const std::vector< Real > | getParameter (void) const |
Definition at line 213 of file ROL_HelperFunctions.hpp.
|
inline |
Definition at line 228 of file ROL_HelperFunctions.hpp.
References con_, eps_, isInitialized_, obj_, ROL::ROL::Objective< Real >::Objective(), secant_, useSecantHessVec_, and useSecantPrecond_.
|
inline |
Definition at line 240 of file ROL_HelperFunctions.hpp.
|
inline |
Definition at line 245 of file ROL_HelperFunctions.hpp.
References obj_.
|
inline |
Definition at line 249 of file ROL_HelperFunctions.hpp.
References obj_.
|
inline |
Definition at line 253 of file ROL_HelperFunctions.hpp.
References obj_.
|
inline |
Definition at line 257 of file ROL_HelperFunctions.hpp.
References obj_, secant_, and useSecantHessVec_.
Referenced by reducedHessVec(), and reducedHessVec().
|
inline |
Definition at line 266 of file ROL_HelperFunctions.hpp.
References obj_, secant_, and useSecantHessVec_.
Referenced by reducedInvHessVec(), and reducedInvHessVec().
|
inline |
Definition at line 275 of file ROL_HelperFunctions.hpp.
References obj_, secant_, and useSecantPrecond_.
Referenced by reducedPrecond(), and reducedPrecond().
|
inline |
Apply the reduced Hessian to a vector, v. The reduced Hessian first removes elements of v corresponding to the feasible indices from the point p in the direction -d. Hv the Hessian times a vector v input vector p starting point for tangent cone d negative of search direction x current iteration vector tol objective function tolerance.
Definition at line 295 of file ROL_HelperFunctions.hpp.
References ROL::Vector< Real >::clone(), con_, ROL::Vector< Real >::dual(), dualV_, eps_, hessVec(), isInitialized_, ROL::Vector< Real >::plus(), and primalV_.
|
inline |
Apply the reduced Hessian to a vector, v. The reduced Hessian first removes elements of v corresponding to the feasible indices from the point p. Hv the Hessian times a vector v input vector p starting point for tangent cone x current iteration vector tol objective function tolerance.
Definition at line 335 of file ROL_HelperFunctions.hpp.
References ROL::Vector< Real >::clone(), con_, ROL::Vector< Real >::dual(), dualV_, eps_, hessVec(), isInitialized_, ROL::Vector< Real >::plus(), and primalV_.
|
inline |
Apply the reduced inverse Hessian to a vector, v.
The reduced inverse Hessian first removes elements of v corresponding to the feasible indices from the point p in the direction -d. Hv the inverse Hessian times a vector v input vector p starting point for tangent cone d negative of search direction x current iteration vector tol objective function tolerance.
Definition at line 376 of file ROL_HelperFunctions.hpp.
References ROL::Vector< Real >::clone(), con_, ROL::Vector< Real >::dual(), dualV_, eps_, invHessVec(), isInitialized_, ROL::Vector< Real >::plus(), and primalV_.
|
inline |
Apply the reduced inverse Hessian to a vector, v.
The reduced inverse Hessian first removes elements of v corresponding to the feasible indices from the point p. Hv the inverse Hessian times a vector v input vector p starting point for tangent cone x current iteration vector tol objective function tolerance.
Definition at line 416 of file ROL_HelperFunctions.hpp.
References ROL::Vector< Real >::clone(), con_, ROL::Vector< Real >::dual(), dualV_, eps_, invHessVec(), isInitialized_, ROL::Vector< Real >::plus(), and primalV_.
|
inline |
Apply the reduced preconditioner to a vector, v.
The reduced preconditioner first removes elements of v corresponding to the feasible indices from the point p in the direction -d. Hv the preconditioner times a vector v input vector p starting point for tangent cone d negative of search direction x current iteration vector tol objective function tolerance.
Definition at line 457 of file ROL_HelperFunctions.hpp.
References ROL::Vector< Real >::clone(), con_, ROL::Vector< Real >::dual(), dualV_, eps_, isInitialized_, ROL::Vector< Real >::plus(), precond(), and primalV_.
|
inline |
Apply the reduced preconditioner to a vector, v.
The reduced preconditioner first removes elements of v corresponding to the feasible indices from the point p. Hv the preconditioner times a vector v input vector p starting point for tangent cone x current iteration vector tol objective function tolerance.
Definition at line 497 of file ROL_HelperFunctions.hpp.
References ROL::Vector< Real >::clone(), con_, ROL::Vector< Real >::dual(), dualV_, eps_, isInitialized_, ROL::Vector< Real >::plus(), precond(), and primalV_.
|
inline |
Definition at line 527 of file ROL_HelperFunctions.hpp.
References con_.
|
inline |
Definition at line 531 of file ROL_HelperFunctions.hpp.
|
inline |
Definition at line 535 of file ROL_HelperFunctions.hpp.
|
inline |
Definition at line 539 of file ROL_HelperFunctions.hpp.
|
inline |
Definition at line 543 of file ROL_HelperFunctions.hpp.
|
inline |
Definition at line 547 of file ROL_HelperFunctions.hpp.
References con_.
|
inline |
Definition at line 551 of file ROL_HelperFunctions.hpp.
References con_.
|
inline |
Definition at line 555 of file ROL_HelperFunctions.hpp.
References con_.
|
private |
Definition at line 215 of file ROL_HelperFunctions.hpp.
Referenced by dirDeriv(), gradient(), hessVec(), invHessVec(), precond(), ProjectedObjective(), update(), and value().
|
private |
Definition at line 216 of file ROL_HelperFunctions.hpp.
Referenced by computeProjectedStep(), isConActivated(), isFeasible(), project(), ProjectedObjective(), pruneActive(), pruneActive(), pruneInactive(), pruneInactive(), reducedHessVec(), reducedHessVec(), reducedInvHessVec(), reducedInvHessVec(), reducedPrecond(), reducedPrecond(), and update().
|
private |
Definition at line 217 of file ROL_HelperFunctions.hpp.
Referenced by hessVec(), invHessVec(), precond(), and ProjectedObjective().
|
private |
Definition at line 219 of file ROL_HelperFunctions.hpp.
Referenced by reducedHessVec(), reducedHessVec(), reducedInvHessVec(), reducedInvHessVec(), reducedPrecond(), and reducedPrecond().
|
private |
Definition at line 220 of file ROL_HelperFunctions.hpp.
Referenced by reducedHessVec(), reducedHessVec(), reducedInvHessVec(), reducedInvHessVec(), reducedPrecond(), and reducedPrecond().
|
private |
Definition at line 221 of file ROL_HelperFunctions.hpp.
Referenced by ProjectedObjective(), reducedHessVec(), reducedHessVec(), reducedInvHessVec(), reducedInvHessVec(), reducedPrecond(), and reducedPrecond().
|
private |
Definition at line 223 of file ROL_HelperFunctions.hpp.
Referenced by precond(), and ProjectedObjective().
|
private |
Definition at line 224 of file ROL_HelperFunctions.hpp.
Referenced by hessVec(), invHessVec(), and ProjectedObjective().
|
private |
Definition at line 225 of file ROL_HelperFunctions.hpp.
Referenced by ProjectedObjective(), pruneActive(), pruneActive(), pruneInactive(), pruneInactive(), reducedHessVec(), reducedHessVec(), reducedInvHessVec(), reducedInvHessVec(), reducedPrecond(), and reducedPrecond().