ROL
ROL::InteriorPointObjective< Real > Class Template Reference

#include <ROL_InteriorPointObjective.hpp>

Inheritance diagram for ROL::InteriorPointObjective< Real >:

Classes

class  ModifiedLogarithm
class  ModifiedReciprocal
class  ModifiedDivide
class  Mask

Public Member Functions

 InteriorPointObjective (const Ptr< Objective< Real > > &obj, const Ptr< BoundConstraint< Real > > &bnd, const Vector< Real > &x, const Vector< Real > &g, const bool useLinearDamping, const Real kappaD, const Real mu)
 InteriorPointObjective (const Ptr< Objective< Real > > &obj, const Ptr< BoundConstraint< Real > > &bnd, const Vector< Real > &x, const Vector< Real > &g, ParameterList &parlist)
Real getObjectiveValue (const Vector< Real > &x, Real &tol)
const Ptr< const Vector< Real > > getObjectiveGradient (const Vector< Real > &x, Real &tol)
int getNumberFunctionEvaluations (void) const
int getNumberGradientEvaluations (void) const
void updatePenalty (const Real mu)
void update (const Vector< Real > &x, UpdateType type, int iter=-1)
Real value (const Vector< Real > &x, Real &tol)
void gradient (Vector< Real > &g, const Vector< Real > &x, Real &tol)
void hessVec (Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &x, Real &tol)
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 > &param)

Private Types

typedef Elementwise::ValueSet< Real > ValueSet

Private Member Functions

void initialize (const Vector< Real > &x, const Vector< Real > &g)

Private Attributes

const Ptr< Objective< Real > > obj_
const Ptr< BoundConstraint< Real > > bnd_
const Ptr< const Vector< Real > > lo_
const Ptr< const Vector< Real > > up_
Ptr< Vector< Real > > maskL_
Ptr< Vector< Real > > maskU_
Ptr< Vector< Real > > maskL0_
Ptr< Vector< Real > > maskU0_
Ptr< Vector< Real > > pwa_
bool useLinearDamping_
Real kappaD_
Real mu_
Ptr< ScalarController< Real, int > > fval_
Ptr< VectorController< Real, int > > gradient_
int nfval_
int ngrad_

Additional Inherited Members

Protected Member Functions inherited from ROL::ROL::Objective< Real >
const std::vector< Real > getParameter (void) const

Detailed Description

template<class Real>
class ROL::InteriorPointObjective< Real >

Definition at line 30 of file ROL_InteriorPointObjective.hpp.

Member Typedef Documentation

◆ ValueSet

template<class Real>
typedef Elementwise::ValueSet<Real> ROL::InteriorPointObjective< Real >::ValueSet
private

Definition at line 32 of file ROL_InteriorPointObjective.hpp.

Constructor & Destructor Documentation

◆ InteriorPointObjective() [1/2]

template<class Real>
ROL::InteriorPointObjective< Real >::InteriorPointObjective ( const Ptr< Objective< Real > > & obj,
const Ptr< BoundConstraint< Real > > & bnd,
const Vector< Real > & x,
const Vector< Real > & g,
const bool useLinearDamping,
const Real kappaD,
const Real mu )
inline

◆ InteriorPointObjective() [2/2]

template<class Real>
ROL::InteriorPointObjective< Real >::InteriorPointObjective ( const Ptr< Objective< Real > > & obj,
const Ptr< BoundConstraint< Real > > & bnd,
const Vector< Real > & x,
const Vector< Real > & g,
ParameterList & parlist )
inline

Member Function Documentation

◆ initialize()

template<class Real>
void ROL::InteriorPointObjective< Real >::initialize ( const Vector< Real > & x,
const Vector< Real > & g )
inlineprivate

◆ getObjectiveValue()

template<class Real>
Real ROL::InteriorPointObjective< Real >::getObjectiveValue ( const Vector< Real > & x,
Real & tol )
inline

◆ getObjectiveGradient()

template<class Real>
const Ptr< const Vector< Real > > ROL::InteriorPointObjective< Real >::getObjectiveGradient ( const Vector< Real > & x,
Real & tol )
inline

Definition at line 180 of file ROL_InteriorPointObjective.hpp.

References ROL::Vector< Real >::dual(), gradient_, ngrad_, and obj_.

Referenced by gradient().

◆ getNumberFunctionEvaluations()

template<class Real>
int ROL::InteriorPointObjective< Real >::getNumberFunctionEvaluations ( void ) const
inline

Definition at line 189 of file ROL_InteriorPointObjective.hpp.

References nfval_.

◆ getNumberGradientEvaluations()

template<class Real>
int ROL::InteriorPointObjective< Real >::getNumberGradientEvaluations ( void ) const
inline

Definition at line 193 of file ROL_InteriorPointObjective.hpp.

References ngrad_.

◆ updatePenalty()

template<class Real>
void ROL::InteriorPointObjective< Real >::updatePenalty ( const Real mu)
inline

◆ update()

template<class Real>
void ROL::InteriorPointObjective< Real >::update ( const Vector< Real > & x,
UpdateType type,
int iter = -1 )
inline

◆ value()

template<class Real>
Real ROL::InteriorPointObjective< Real >::value ( const Vector< Real > & x,
Real & tol )
inline

◆ gradient()

◆ hessVec()

template<class Real>
void ROL::InteriorPointObjective< Real >::hessVec ( Vector< Real > & hv,
const Vector< Real > & v,
const Vector< Real > & x,
Real & tol )
inline

Definition at line 267 of file ROL_InteriorPointObjective.hpp.

References ROL::Vector< Real >::axpy(), lo_, maskL_, maskU_, mu_, obj_, pwa_, and up_.

Member Data Documentation

◆ obj_

template<class Real>
const Ptr<Objective<Real> > ROL::InteriorPointObjective< Real >::obj_
private

◆ bnd_

template<class Real>
const Ptr<BoundConstraint<Real> > ROL::InteriorPointObjective< Real >::bnd_
private

◆ lo_

template<class Real>
const Ptr<const Vector<Real> > ROL::InteriorPointObjective< Real >::lo_
private

◆ up_

template<class Real>
const Ptr<const Vector<Real> > ROL::InteriorPointObjective< Real >::up_
private

◆ maskL_

template<class Real>
Ptr<Vector<Real> > ROL::InteriorPointObjective< Real >::maskL_
private

Definition at line 41 of file ROL_InteriorPointObjective.hpp.

Referenced by gradient(), hessVec(), initialize(), and value().

◆ maskU_

template<class Real>
Ptr<Vector<Real> > ROL::InteriorPointObjective< Real >::maskU_
private

Definition at line 42 of file ROL_InteriorPointObjective.hpp.

Referenced by gradient(), hessVec(), initialize(), and value().

◆ maskL0_

template<class Real>
Ptr<Vector<Real> > ROL::InteriorPointObjective< Real >::maskL0_
private

Definition at line 43 of file ROL_InteriorPointObjective.hpp.

Referenced by gradient(), initialize(), and value().

◆ maskU0_

template<class Real>
Ptr<Vector<Real> > ROL::InteriorPointObjective< Real >::maskU0_
private

Definition at line 44 of file ROL_InteriorPointObjective.hpp.

Referenced by gradient(), initialize(), and value().

◆ pwa_

template<class Real>
Ptr<Vector<Real> > ROL::InteriorPointObjective< Real >::pwa_
private

Definition at line 45 of file ROL_InteriorPointObjective.hpp.

Referenced by gradient(), hessVec(), initialize(), and value().

◆ useLinearDamping_

template<class Real>
bool ROL::InteriorPointObjective< Real >::useLinearDamping_
private

◆ kappaD_

template<class Real>
Real ROL::InteriorPointObjective< Real >::kappaD_
private

◆ mu_

template<class Real>
Real ROL::InteriorPointObjective< Real >::mu_
private

◆ fval_

template<class Real>
Ptr<ScalarController<Real,int> > ROL::InteriorPointObjective< Real >::fval_
private

Definition at line 53 of file ROL_InteriorPointObjective.hpp.

Referenced by getObjectiveValue(), initialize(), and update().

◆ gradient_

template<class Real>
Ptr<VectorController<Real,int> > ROL::InteriorPointObjective< Real >::gradient_
private

Definition at line 54 of file ROL_InteriorPointObjective.hpp.

Referenced by getObjectiveGradient(), initialize(), and update().

◆ nfval_

template<class Real>
int ROL::InteriorPointObjective< Real >::nfval_
private

◆ ngrad_

template<class Real>
int ROL::InteriorPointObjective< Real >::ngrad_
private

The documentation for this class was generated from the following file: