ROL
|
#include <ROL_MeritFunction.hpp>
Public Member Functions | |
MeritFunction (ROL::Ptr< OBJ > &obj, ROL::Ptr< EQCON > &eqcon, ROL::Ptr< INCON > &incon, const V &x, const V &eqmult, const V &inmult, PLIST &parlist) | |
Real | value (const V &x, Real &tol) |
Compute value. More... | |
Real | dirDeriv (const V &x, const V &d, Real tol) |
void | updateBarrier (Real mu) |
Public Member Functions inherited from ROL::Objective< Real > | |
virtual | ~Objective () |
virtual void | update (const Vector< Real > &x, bool flag=true, int iter=-1) |
Update objective function. More... | |
virtual void | gradient (Vector< Real > &g, const Vector< Real > &x, Real &tol) |
Compute gradient. More... | |
virtual Real | dirDeriv (const Vector< Real > &x, const Vector< Real > &d, Real &tol) |
Compute directional derivative. More... | |
virtual void | hessVec (Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &x, Real &tol) |
Apply Hessian approximation to vector. 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 Types | |
typedef Vector< Real > | V |
typedef PartitionedVector< Real > | PV |
typedef Objective< Real > | OBJ |
typedef Constraint< Real > | EQCON |
typedef InequalityConstraint < Real > | INCON |
typedef ROL::ParameterList | PLIST |
typedef PV::size_type | uint |
Private Attributes | |
ROL::Ptr< OBJ > | obj_ |
ROL::Ptr< EQCON > | eqcon_ |
ROL::Ptr< INCON > | incon_ |
ROL::Ptr< BND > | bnd_ |
Real | mu_ |
Real | nu_ |
ROL::Ptr< V > | xopt_ |
ROL::Ptr< V > | slack_ |
ROL::Ptr< V > | gopt_ |
ROL::Ptr< V > | sfun_ |
ROL::Ptr< V > | eqmult_ |
ROL::Ptr< V > | inmult_ |
ROL::Ptr< V > | ce_ |
ROL::Ptr< V > | ci_ |
ROL::Ptr< V > | jced_ |
ROL::Ptr< V > | jcid_ |
Real | cenorm_ |
Real | cinorm_ |
Static Private Attributes | |
static const uint | OPT = 0 |
static const uint | SLACK = 1 |
static const Elementwise::Logarithm< Real > | LOG_ |
static const Elementwise::Reciprocal< Real > | RECIP_ |
static const Elementwise::ReductionSum < Real > | SUM_ |
Additional Inherited Members | |
Protected Member Functions inherited from ROL::Objective< Real > | |
const std::vector< Real > | getParameter (void) const |
Definition at line 67 of file ROL_MeritFunction.hpp.
|
private |
Definition at line 69 of file ROL_MeritFunction.hpp.
|
private |
Definition at line 70 of file ROL_MeritFunction.hpp.
|
private |
Definition at line 71 of file ROL_MeritFunction.hpp.
|
private |
Definition at line 72 of file ROL_MeritFunction.hpp.
|
private |
Definition at line 73 of file ROL_MeritFunction.hpp.
|
private |
Definition at line 75 of file ROL_MeritFunction.hpp.
|
private |
Definition at line 78 of file ROL_MeritFunction.hpp.
|
inline |
Definition at line 126 of file ROL_MeritFunction.hpp.
References ROL::PartitionedVector< Real >::get(), ROL::InteriorPoint::MeritFunction< Real >::gopt_, ROL::InteriorPoint::MeritFunction< Real >::mu_, ROL::InteriorPoint::MeritFunction< Real >::nu_, ROL::InteriorPoint::MeritFunction< Real >::OPT, ROL::InteriorPoint::MeritFunction< Real >::sfun_, ROL::InteriorPoint::MeritFunction< Real >::SLACK, ROL::InteriorPoint::MeritFunction< Real >::slack_, and ROL::InteriorPoint::MeritFunction< Real >::xopt_.
|
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 149 of file ROL_MeritFunction.hpp.
References ROL::InteriorPoint::MeritFunction< Real >::ce_, ROL::InteriorPoint::MeritFunction< Real >::cenorm_, ROL::InteriorPoint::MeritFunction< Real >::ci_, ROL::InteriorPoint::MeritFunction< Real >::cinorm_, ROL::InteriorPoint::MeritFunction< Real >::eqcon_, ROL::PartitionedVector< Real >::get(), ROL::InteriorPoint::MeritFunction< Real >::incon_, ROL::InteriorPoint::MeritFunction< Real >::LOG_, ROL::InteriorPoint::MeritFunction< Real >::mu_, ROL::InteriorPoint::MeritFunction< Real >::nu_, ROL::InteriorPoint::MeritFunction< Real >::obj_, ROL::InteriorPoint::MeritFunction< Real >::OPT, ROL::InteriorPoint::MeritFunction< Real >::sfun_, ROL::InteriorPoint::MeritFunction< Real >::SLACK, ROL::InteriorPoint::MeritFunction< Real >::slack_, ROL::InteriorPoint::MeritFunction< Real >::SUM_, and ROL::InteriorPoint::MeritFunction< Real >::xopt_.
|
inline |
Definition at line 175 of file ROL_MeritFunction.hpp.
References ROL::InteriorPoint::MeritFunction< Real >::ce_, ROL::InteriorPoint::MeritFunction< Real >::cenorm_, ROL::InteriorPoint::MeritFunction< Real >::ci_, ROL::InteriorPoint::MeritFunction< Real >::cinorm_, ROL::PartitionedVector< Real >::get(), ROL::InteriorPoint::MeritFunction< Real >::gopt_, ROL::InteriorPoint::MeritFunction< Real >::jced_, ROL::InteriorPoint::MeritFunction< Real >::jcid_, ROL::InteriorPoint::MeritFunction< Real >::mu_, ROL::InteriorPoint::MeritFunction< Real >::nu_, ROL::InteriorPoint::MeritFunction< Real >::obj_, ROL::InteriorPoint::MeritFunction< Real >::OPT, ROL::InteriorPoint::MeritFunction< Real >::RECIP_, ROL::InteriorPoint::MeritFunction< Real >::sfun_, ROL::InteriorPoint::MeritFunction< Real >::SLACK, ROL::InteriorPoint::MeritFunction< Real >::slack_, and ROL::InteriorPoint::MeritFunction< Real >::xopt_.
|
inline |
Definition at line 210 of file ROL_MeritFunction.hpp.
References ROL::InteriorPoint::MeritFunction< Real >::mu_.
|
staticprivate |
Definition at line 80 of file ROL_MeritFunction.hpp.
Referenced by ROL::InteriorPoint::MeritFunction< Real >::dirDeriv(), ROL::InteriorPoint::MeritFunction< Real >::MeritFunction(), and ROL::InteriorPoint::MeritFunction< Real >::value().
|
staticprivate |
Definition at line 81 of file ROL_MeritFunction.hpp.
Referenced by ROL::InteriorPoint::MeritFunction< Real >::dirDeriv(), ROL::InteriorPoint::MeritFunction< Real >::MeritFunction(), and ROL::InteriorPoint::MeritFunction< Real >::value().
|
private |
Definition at line 86 of file ROL_MeritFunction.hpp.
Referenced by ROL::InteriorPoint::MeritFunction< Real >::dirDeriv(), and ROL::InteriorPoint::MeritFunction< Real >::value().
|
private |
Definition at line 87 of file ROL_MeritFunction.hpp.
Referenced by ROL::InteriorPoint::MeritFunction< Real >::value().
|
private |
Definition at line 88 of file ROL_MeritFunction.hpp.
Referenced by ROL::InteriorPoint::MeritFunction< Real >::value().
|
private |
Definition at line 89 of file ROL_MeritFunction.hpp.
|
private |
|
private |
Definition at line 92 of file ROL_MeritFunction.hpp.
Referenced by ROL::InteriorPoint::MeritFunction< Real >::dirDeriv(), ROL::InteriorPoint::MeritFunction< Real >::MeritFunction(), and ROL::InteriorPoint::MeritFunction< Real >::value().
|
private |
Definition at line 98 of file ROL_MeritFunction.hpp.
Referenced by ROL::InteriorPoint::MeritFunction< Real >::dirDeriv(), ROL::InteriorPoint::MeritFunction< Real >::MeritFunction(), and ROL::InteriorPoint::MeritFunction< Real >::value().
|
private |
Definition at line 99 of file ROL_MeritFunction.hpp.
Referenced by ROL::InteriorPoint::MeritFunction< Real >::dirDeriv(), ROL::InteriorPoint::MeritFunction< Real >::MeritFunction(), and ROL::InteriorPoint::MeritFunction< Real >::value().
|
private |
Definition at line 101 of file ROL_MeritFunction.hpp.
Referenced by ROL::InteriorPoint::MeritFunction< Real >::dirDeriv(), and ROL::InteriorPoint::MeritFunction< Real >::MeritFunction().
|
private |
Definition at line 103 of file ROL_MeritFunction.hpp.
Referenced by ROL::InteriorPoint::MeritFunction< Real >::dirDeriv(), ROL::InteriorPoint::MeritFunction< Real >::MeritFunction(), and ROL::InteriorPoint::MeritFunction< Real >::value().
|
private |
Definition at line 106 of file ROL_MeritFunction.hpp.
|
private |
Definition at line 107 of file ROL_MeritFunction.hpp.
|
private |
Definition at line 109 of file ROL_MeritFunction.hpp.
Referenced by ROL::InteriorPoint::MeritFunction< Real >::dirDeriv(), and ROL::InteriorPoint::MeritFunction< Real >::value().
|
private |
Definition at line 110 of file ROL_MeritFunction.hpp.
Referenced by ROL::InteriorPoint::MeritFunction< Real >::dirDeriv(), and ROL::InteriorPoint::MeritFunction< Real >::value().
|
private |
Definition at line 112 of file ROL_MeritFunction.hpp.
Referenced by ROL::InteriorPoint::MeritFunction< Real >::dirDeriv().
|
private |
Definition at line 113 of file ROL_MeritFunction.hpp.
Referenced by ROL::InteriorPoint::MeritFunction< Real >::dirDeriv().
|
private |
Definition at line 115 of file ROL_MeritFunction.hpp.
Referenced by ROL::InteriorPoint::MeritFunction< Real >::dirDeriv(), and ROL::InteriorPoint::MeritFunction< Real >::value().
|
private |
Definition at line 116 of file ROL_MeritFunction.hpp.
Referenced by ROL::InteriorPoint::MeritFunction< Real >::dirDeriv(), and ROL::InteriorPoint::MeritFunction< Real >::value().
|
staticprivate |
Definition at line 119 of file ROL_MeritFunction.hpp.
Referenced by ROL::InteriorPoint::MeritFunction< Real >::value().
|
staticprivate |
Definition at line 120 of file ROL_MeritFunction.hpp.
Referenced by ROL::InteriorPoint::MeritFunction< Real >::dirDeriv().
|
staticprivate |
Definition at line 121 of file ROL_MeritFunction.hpp.
Referenced by ROL::InteriorPoint::MeritFunction< Real >::value().