ROL
|
#include <ROL_BoundFletcher.hpp>
Classes | |
class | AugSystemNonSym |
class | AugSystemPrecond |
class | AugSystemSym |
class | DiffLower |
class | DiffUpper |
class | FormDQ |
class | FormQ |
Public Member Functions | |
BoundFletcher (const ROL::Ptr< Objective< Real > > &obj, const ROL::Ptr< Constraint< Real > > &con, const ROL::Ptr< BoundConstraint< Real > > &bnd, const Vector< Real > &optVec, const Vector< Real > &conVec, ROL::ParameterList &parlist) | |
void | update (const Vector< Real > &x, bool flag=true, int iter=-1) |
Update objective function. More... | |
Real | value (const Vector< Real > &x, Real &tol) |
Compute value. More... | |
void | gradient (Vector< Real > &g, const Vector< Real > &x, Real &tol) |
Compute gradient. More... | |
void | hessVec (Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &x, Real &tol) |
Apply Hessian approximation to vector. More... | |
void | solveAugmentedSystem (Vector< Real > &v1, Vector< Real > &v2, const Vector< Real > &b1, const Vector< Real > &b2, const Vector< Real > &x, Real &tol) |
void | computeMultipliers (const Vector< Real > &x, const Real tol) |
void | computeQ (const Vector< Real > &x) |
void | computeDQ (const Vector< Real > &x) |
Public Member Functions inherited from ROL::FletcherBase< Real > | |
FletcherBase (const ROL::Ptr< Objective< Real > > &obj, const ROL::Ptr< Constraint< Real > > &con) | |
const Ptr< Vector< Real > > | getLagrangianGradient (const Vector< Real > &x) |
const Ptr< Vector< Real > > | getConstraintVec (const Vector< Real > &x) |
const Ptr< Vector< Real > > | getMultiplierVec (const Vector< Real > &x) |
const Ptr< Vector< Real > > | getGradient (const Vector< Real > &x) |
Real | getObjectiveValue (const Vector< Real > &x) |
int | getNumberFunctionEvaluations () const |
int | getNumberGradientEvaluations () const |
int | getNumberConstraintEvaluations () const |
void | setDelta (Real delta) |
void | setPenaltyParameter (Real sigma) |
Public Member Functions inherited from ROL::Objective< Real > | |
virtual | ~Objective () |
virtual Real | dirDeriv (const Vector< Real > &x, const Vector< Real > &d, Real &tol) |
Compute directional derivative. More... | |
virtual void | invHessVec (Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &x, Real &tol) |
Apply inverse Hessian approximation to vector. More... | |
virtual void | precond (Vector< Real > &Pv, const Vector< Real > &v, const Vector< Real > &x, Real &tol) |
Apply preconditioner to vector. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
virtual void | setParameter (const std::vector< Real > ¶m) |
Private Attributes | |
Ptr< const Vector< Real > > | low_ |
Ptr< const Vector< Real > > | upp_ |
Ptr< Vector< Real > > | Q_ |
Ptr< Vector< Real > > | umx_ |
Ptr< Vector< Real > > | DQ_ |
Ptr< Vector< Real > > | Qsqrt_ |
int | HessianApprox_ |
int | AugSolve_ |
Ptr< Vector< Real > > | QsgL_ |
Ptr< Vector< Real > > | QgL_ |
Ptr< Vector< Real > > | Qsg_ |
Ptr< Vector< Real > > | DQgL_ |
Ptr< Vector< Real > > | Qv_ |
Ptr< Vector< Real > > | Tv_ |
Ptr< Vector< Real > > | w_ |
Ptr< Vector< Real > > | v_ |
Ptr< Vector< Real > > | htmp1_ |
Ptr< Vector< Real > > | htmp2_ |
Ptr< Vector< Real > > | xzeros_ |
Ptr< Vector< Real > > | czeros_ |
bool | isQComputed_ |
bool | isDQComputed_ |
Additional Inherited Members | |
Protected Member Functions inherited from ROL::FletcherBase< Real > | |
void | objValue (const Vector< Real > &x, Real &tol) |
void | objGrad (const Vector< Real > &x, Real &tol) |
void | conValue (const Vector< Real > &x, Real &tol) |
Protected Member Functions inherited from ROL::Objective< Real > | |
const std::vector< Real > | getParameter (void) const |
Protected Attributes inherited from ROL::FletcherBase< Real > | |
const Ptr< Objective< Real > > | obj_ |
const Ptr< Constraint< Real > > | con_ |
Real | penaltyParameter_ |
int | nfval_ |
int | ngval_ |
int | ncval_ |
Real | fPhi_ |
Ptr< Vector< Real > > | gPhi_ |
Ptr< Vector< Real > > | y_ |
Real | fval_ |
Ptr< Vector< Real > > | g_ |
Ptr< Vector< Real > > | c_ |
Ptr< Vector< Real > > | scaledc_ |
Ptr< Vector< Real > > | gL_ |
bool | isValueComputed_ |
bool | isGradientComputed_ |
bool | isMultiplierComputed_ |
bool | isObjValueComputed_ |
bool | isObjGradComputed_ |
bool | isConValueComputed_ |
Real | multSolverError_ |
Real | gradSolveError_ |
Real | delta_ |
bool | useInexact_ |
Ptr< Krylov< Real > > | krylov_ |
int | iterKrylov_ |
int | flagKrylov_ |
Ptr< Vector< Real > > | v1_ |
Ptr< Vector< Real > > | v2_ |
Ptr< PartitionedVector< Real > > | vv_ |
Ptr< Vector< Real > > | b1_ |
Ptr< Vector< Real > > | b2_ |
Ptr< PartitionedVector< Real > > | bb_ |
Definition at line 61 of file ROL_BoundFletcher.hpp.
|
inline |
Definition at line 286 of file ROL_BoundFletcher.hpp.
References ROL::BoundFletcher< Real >::AugSolve_, ROL::FletcherBase< Real >::b1_, ROL::FletcherBase< Real >::b2_, ROL::FletcherBase< Real >::bb_, ROL::FletcherBase< Real >::c_, ROL::Vector< Real >::clone(), ROL::BoundFletcher< Real >::czeros_, ROL::FletcherBase< Real >::delta_, ROL::BoundFletcher< Real >::DQ_, ROL::BoundFletcher< Real >::DQgL_, ROL::Vector< Real >::dual(), ROL::FletcherBase< Real >::g_, ROL::FletcherBase< Real >::gL_, ROL::FletcherBase< Real >::gPhi_, ROL::BoundFletcher< Real >::HessianApprox_, ROL::BoundFletcher< Real >::htmp1_, ROL::BoundFletcher< Real >::htmp2_, ROL::FletcherBase< Real >::krylov_, ROL::BoundFletcher< Real >::low_, ROL::FletcherBase< Real >::penaltyParameter_, ROL::BoundFletcher< Real >::Q_, ROL::BoundFletcher< Real >::QgL_, ROL::BoundFletcher< Real >::Qsg_, ROL::BoundFletcher< Real >::QsgL_, ROL::BoundFletcher< Real >::Qsqrt_, ROL::BoundFletcher< Real >::Qv_, ROL::FletcherBase< Real >::scaledc_, ROL::BoundFletcher< Real >::Tv_, ROL::BoundFletcher< Real >::umx_, ROL::BoundFletcher< Real >::upp_, ROL::FletcherBase< Real >::useInexact_, ROL::FletcherBase< Real >::v1_, ROL::FletcherBase< Real >::v2_, ROL::BoundFletcher< Real >::v_, ROL::FletcherBase< Real >::vv_, ROL::BoundFletcher< Real >::w_, ROL::BoundFletcher< Real >::xzeros_, and ROL::FletcherBase< Real >::y_.
|
inlinevirtual |
Update objective function.
This function updates the objective function at new iterations.
[in] | x | is the new iterate. |
[in] | flag | is true if the iterate has changed. |
[in] | iter | is the outer algorithm iterations count. |
Reimplemented from ROL::Objective< Real >.
Definition at line 355 of file ROL_BoundFletcher.hpp.
References ROL::FletcherBase< Real >::con_, ROL::FletcherBase< Real >::gradSolveError_, ROL::FletcherBase< Real >::isConValueComputed_, ROL::BoundFletcher< Real >::isDQComputed_, ROL::FletcherBase< Real >::isGradientComputed_, ROL::FletcherBase< Real >::isMultiplierComputed_, ROL::FletcherBase< Real >::isObjGradComputed_, ROL::FletcherBase< Real >::isObjValueComputed_, ROL::BoundFletcher< Real >::isQComputed_, ROL::FletcherBase< Real >::isValueComputed_, ROL::FletcherBase< Real >::multSolverError_, and ROL::FletcherBase< Real >::obj_.
|
inlinevirtual |
Compute value.
This function returns the objective function value.
[in] | x | is the current iterate. |
[in] | tol | is a tolerance for inexact objective function computation. |
Implements ROL::Objective< Real >.
Definition at line 370 of file ROL_BoundFletcher.hpp.
References ROL::FletcherBase< Real >::c_, ROL::BoundFletcher< Real >::computeMultipliers(), ROL::FletcherBase< Real >::fPhi_, ROL::FletcherBase< Real >::fval_, ROL::FletcherBase< Real >::isValueComputed_, ROL::FletcherBase< Real >::multSolverError_, ROL::FletcherBase< Real >::objValue(), and ROL::FletcherBase< Real >::y_.
Referenced by ROL::BoundFletcher< Real >::hessVec().
|
inlinevirtual |
Compute gradient.
This function returns the objective function gradient.
[out] | g | is the gradient. |
[in] | x | is the current iterate. |
[in] | tol | is a tolerance for inexact objective function computation. |
The default implementation is a finite-difference approximation based on the function value. This requires the definition of a basis \(\{\phi_i\}\) for the optimization vectors x and the definition of a basis \(\{\psi_j\}\) for the dual optimization vectors (gradient vectors g). The bases must be related through the Riesz map, i.e., \( R \{\phi_i\} = \{\psi_j\}\), and this must be reflected in the implementation of the ROL::Vector::dual() method.
Reimplemented from ROL::Objective< Real >.
Definition at line 389 of file ROL_BoundFletcher.hpp.
References ROL::BoundFletcher< Real >::AugSolve_, ROL::FletcherBase< Real >::c_, ROL::BoundFletcher< Real >::computeMultipliers(), ROL::FletcherBase< Real >::con_, ROL::BoundFletcher< Real >::DQgL_, ROL::FletcherBase< Real >::gL_, ROL::FletcherBase< Real >::gPhi_, ROL::FletcherBase< Real >::gradSolveError_, ROL::FletcherBase< Real >::isGradientComputed_, ROL::FletcherBase< Real >::multSolverError_, ROL::FletcherBase< Real >::obj_, ROL::FletcherBase< Real >::penaltyParameter_, ROL::BoundFletcher< Real >::Q_, ROL::BoundFletcher< Real >::QgL_, ROL::BoundFletcher< Real >::Qsqrt_, ROL::Vector< Real >::set(), ROL::BoundFletcher< Real >::solveAugmentedSystem(), ROL::BoundFletcher< Real >::Tv_, ROL::BoundFletcher< Real >::v_, ROL::BoundFletcher< Real >::w_, ROL::BoundFletcher< Real >::xzeros_, and ROL::FletcherBase< Real >::y_.
Referenced by ROL::BoundFletcher< Real >::hessVec().
|
inlinevirtual |
Apply Hessian approximation to vector.
This function applies the Hessian of the objective function to the vector \(v\).
[out] | hv | is the the action of the Hessian on \(v\). |
[in] | v | is the direction vector. |
[in] | x | is the current iterate. |
[in] | tol | is a tolerance for inexact objective function computation. |
Reimplemented from ROL::Objective< Real >.
Definition at line 456 of file ROL_BoundFletcher.hpp.
References ROL::BoundFletcher< Real >::AugSolve_, ROL::Vector< Real >::axpy(), ROL::BoundFletcher< Real >::computeMultipliers(), ROL::FletcherBase< Real >::con_, ROL::BoundFletcher< Real >::DQgL_, ROL::BoundFletcher< Real >::gradient(), ROL::BoundFletcher< Real >::htmp1_, ROL::BoundFletcher< Real >::htmp2_, ROL::FletcherBase< Real >::obj_, ROL::FletcherBase< Real >::penaltyParameter_, ROL::Vector< Real >::plus(), ROL::BoundFletcher< Real >::Q_, ROL::BoundFletcher< Real >::Qsqrt_, ROL::Vector< Real >::set(), ROL::BoundFletcher< Real >::solveAugmentedSystem(), ROL::BoundFletcher< Real >::Tv_, ROL::BoundFletcher< Real >::v_, ROL::BoundFletcher< Real >::value(), ROL::BoundFletcher< Real >::w_, ROL::BoundFletcher< Real >::xzeros_, and ROL::FletcherBase< Real >::y_.
|
inline |
Definition at line 533 of file ROL_BoundFletcher.hpp.
References ROL::BoundFletcher< Real >::AugSolve_, ROL::FletcherBase< Real >::b1_, ROL::FletcherBase< Real >::b2_, ROL::FletcherBase< Real >::bb_, ROL::FletcherBase< Real >::con_, ROL::FletcherBase< Real >::delta_, ROL::FletcherBase< Real >::flagKrylov_, ROL::FletcherBase< Real >::iterKrylov_, ROL::FletcherBase< Real >::krylov_, ROL::BoundFletcher< Real >::Q_, ROL::BoundFletcher< Real >::Qsqrt_, ROL::BoundFletcher< Real >::Qv_, ROL::Vector< Real >::set(), ROL::FletcherBase< Real >::useInexact_, ROL::FletcherBase< Real >::v1_, ROL::FletcherBase< Real >::v2_, and ROL::FletcherBase< Real >::vv_.
Referenced by ROL::BoundFletcher< Real >::computeMultipliers(), ROL::BoundFletcher< Real >::gradient(), and ROL::BoundFletcher< Real >::hessVec().
|
inlinevirtual |
Reimplemented from ROL::FletcherBase< Real >.
Definition at line 571 of file ROL_BoundFletcher.hpp.
References ROL::BoundFletcher< Real >::AugSolve_, ROL::BoundFletcher< Real >::computeDQ(), ROL::BoundFletcher< Real >::computeQ(), ROL::FletcherBase< Real >::conValue(), ROL::BoundFletcher< Real >::DQ_, ROL::BoundFletcher< Real >::DQgL_, ROL::FletcherBase< Real >::g_, ROL::FletcherBase< Real >::gL_, ROL::FletcherBase< Real >::isMultiplierComputed_, ROL::FletcherBase< Real >::multSolverError_, ROL::FletcherBase< Real >::objGrad(), ROL::BoundFletcher< Real >::Q_, ROL::BoundFletcher< Real >::QgL_, ROL::BoundFletcher< Real >::Qsg_, ROL::BoundFletcher< Real >::QsgL_, ROL::BoundFletcher< Real >::Qsqrt_, ROL::FletcherBase< Real >::scaledc_, ROL::BoundFletcher< Real >::solveAugmentedSystem(), and ROL::FletcherBase< Real >::y_.
Referenced by ROL::BoundFletcher< Real >::gradient(), ROL::BoundFletcher< Real >::hessVec(), and ROL::BoundFletcher< Real >::value().
|
inline |
Definition at line 610 of file ROL_BoundFletcher.hpp.
References ROL::BoundFletcher< Real >::isQComputed_, ROL::BoundFletcher< Real >::low_, ROL::BoundFletcher< Real >::Q_, ROL::BoundFletcher< Real >::Qsqrt_, ROL::BoundFletcher< Real >::umx_, and ROL::BoundFletcher< Real >::upp_.
Referenced by ROL::BoundFletcher< Real >::computeMultipliers().
|
inline |
Definition at line 626 of file ROL_BoundFletcher.hpp.
References ROL::BoundFletcher< Real >::DQ_, ROL::BoundFletcher< Real >::isDQComputed_, ROL::BoundFletcher< Real >::low_, ROL::BoundFletcher< Real >::umx_, and ROL::BoundFletcher< Real >::upp_.
Referenced by ROL::BoundFletcher< Real >::computeMultipliers().
|
private |
Definition at line 66 of file ROL_BoundFletcher.hpp.
Referenced by ROL::BoundFletcher< Real >::BoundFletcher(), ROL::BoundFletcher< Real >::computeDQ(), and ROL::BoundFletcher< Real >::computeQ().
|
private |
Definition at line 67 of file ROL_BoundFletcher.hpp.
Referenced by ROL::BoundFletcher< Real >::BoundFletcher(), ROL::BoundFletcher< Real >::computeDQ(), and ROL::BoundFletcher< Real >::computeQ().
|
private |
Definition at line 96 of file ROL_BoundFletcher.hpp.
Referenced by ROL::BoundFletcher< Real >::BoundFletcher(), ROL::BoundFletcher< Real >::computeMultipliers(), ROL::BoundFletcher< Real >::computeQ(), ROL::BoundFletcher< Real >::gradient(), ROL::BoundFletcher< Real >::hessVec(), and ROL::BoundFletcher< Real >::solveAugmentedSystem().
|
private |
Definition at line 97 of file ROL_BoundFletcher.hpp.
Referenced by ROL::BoundFletcher< Real >::BoundFletcher(), ROL::BoundFletcher< Real >::computeDQ(), and ROL::BoundFletcher< Real >::computeQ().
|
private |
Definition at line 98 of file ROL_BoundFletcher.hpp.
Referenced by ROL::BoundFletcher< Real >::BoundFletcher(), ROL::BoundFletcher< Real >::computeDQ(), and ROL::BoundFletcher< Real >::computeMultipliers().
|
private |
Definition at line 99 of file ROL_BoundFletcher.hpp.
Referenced by ROL::BoundFletcher< Real >::BoundFletcher(), ROL::BoundFletcher< Real >::computeMultipliers(), ROL::BoundFletcher< Real >::computeQ(), ROL::BoundFletcher< Real >::gradient(), ROL::BoundFletcher< Real >::hessVec(), and ROL::BoundFletcher< Real >::solveAugmentedSystem().
|
private |
Definition at line 101 of file ROL_BoundFletcher.hpp.
Referenced by ROL::BoundFletcher< Real >::BoundFletcher().
|
private |
|
private |
Definition at line 111 of file ROL_BoundFletcher.hpp.
Referenced by ROL::BoundFletcher< Real >::BoundFletcher(), and ROL::BoundFletcher< Real >::computeMultipliers().
|
private |
Definition at line 112 of file ROL_BoundFletcher.hpp.
Referenced by ROL::BoundFletcher< Real >::BoundFletcher(), ROL::BoundFletcher< Real >::computeMultipliers(), and ROL::BoundFletcher< Real >::gradient().
|
private |
Definition at line 113 of file ROL_BoundFletcher.hpp.
Referenced by ROL::BoundFletcher< Real >::BoundFletcher(), and ROL::BoundFletcher< Real >::computeMultipliers().
|
private |
Definition at line 114 of file ROL_BoundFletcher.hpp.
Referenced by ROL::BoundFletcher< Real >::BoundFletcher(), ROL::BoundFletcher< Real >::computeMultipliers(), ROL::BoundFletcher< Real >::gradient(), and ROL::BoundFletcher< Real >::hessVec().
|
private |
Definition at line 115 of file ROL_BoundFletcher.hpp.
Referenced by ROL::BoundFletcher< Real >::BoundFletcher(), and ROL::BoundFletcher< Real >::solveAugmentedSystem().
|
private |
Definition at line 118 of file ROL_BoundFletcher.hpp.
Referenced by ROL::BoundFletcher< Real >::BoundFletcher(), ROL::BoundFletcher< Real >::gradient(), and ROL::BoundFletcher< Real >::hessVec().
|
private |
Definition at line 119 of file ROL_BoundFletcher.hpp.
Referenced by ROL::BoundFletcher< Real >::BoundFletcher(), ROL::BoundFletcher< Real >::gradient(), and ROL::BoundFletcher< Real >::hessVec().
|
private |
Definition at line 120 of file ROL_BoundFletcher.hpp.
Referenced by ROL::BoundFletcher< Real >::BoundFletcher(), ROL::BoundFletcher< Real >::gradient(), and ROL::BoundFletcher< Real >::hessVec().
|
private |
Definition at line 121 of file ROL_BoundFletcher.hpp.
Referenced by ROL::BoundFletcher< Real >::BoundFletcher(), and ROL::BoundFletcher< Real >::hessVec().
|
private |
Definition at line 122 of file ROL_BoundFletcher.hpp.
Referenced by ROL::BoundFletcher< Real >::BoundFletcher(), and ROL::BoundFletcher< Real >::hessVec().
|
private |
Definition at line 124 of file ROL_BoundFletcher.hpp.
Referenced by ROL::BoundFletcher< Real >::BoundFletcher(), ROL::BoundFletcher< Real >::gradient(), and ROL::BoundFletcher< Real >::hessVec().
|
private |
Definition at line 125 of file ROL_BoundFletcher.hpp.
Referenced by ROL::BoundFletcher< Real >::BoundFletcher().
|
private |
Definition at line 129 of file ROL_BoundFletcher.hpp.
Referenced by ROL::BoundFletcher< Real >::computeQ(), and ROL::BoundFletcher< Real >::update().
|
private |
Definition at line 130 of file ROL_BoundFletcher.hpp.
Referenced by ROL::BoundFletcher< Real >::computeDQ(), and ROL::BoundFletcher< Real >::update().