ROL
ROL::FletcherObjectiveBase< Real > Class Template Referenceabstract

#include <ROL_FletcherObjectiveBase.hpp>

Inheritance diagram for ROL::FletcherObjectiveBase< Real >:

Public Member Functions

 FletcherObjectiveBase (const Ptr< Objective< Real > > &obj, const Ptr< Constraint< Real > > &con, const Vector< Real > &xprim, const Vector< Real > &xdual, const Vector< Real > &cprim, const Vector< Real > &cdual, ParameterList &parlist)
virtual void update (const Vector< Real > &x, UpdateType type, int iter=-1) override
Ptr< const Vector< Real > > getLagrangianGradient (const Vector< Real > &x)
Ptr< const Vector< Real > > getConstraintVec (const Vector< Real > &x)
Ptr< const Vector< Real > > getMultiplierVec (const Vector< Real > &x)
Ptr< const Vector< Real > > getGradient (const Vector< Real > &x)
Real getObjectiveValue (const Vector< Real > &x)
int getNumberFunctionEvaluations () const
int getNumberGradientEvaluations () const
int getNumberConstraintEvaluations () const
void reset (Real sigma, Real delta)
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)

Protected Member Functions

Real objValue (const Vector< Real > &x, Real &tol)
void objGrad (Vector< Real > &g, const Vector< Real > &x, Real &tol)
void conValue (Vector< Real > &c, const Vector< Real > &x, Real &tol)
void computeMultipliers (Vector< Real > &y, Vector< Real > &gL, const Vector< Real > &x, Vector< Real > &g, Vector< Real > &c, Real tol)
virtual void solveAugmentedSystem (Vector< Real > &v1, Vector< Real > &v2, const Vector< Real > &b1, const Vector< Real > &b2, const Vector< Real > &x, Real &multSolverError_, bool refine)=0
Protected Member Functions inherited from ROL::ROL::Objective< Real >
const std::vector< Real > getParameter (void) const

Protected Attributes

const Ptr< Objective< Real > > obj_
const Ptr< Constraint< Real > > con_
Real sigma_
Real delta_
Real quadPenaltyParameter_
bool useInexact_
int HessianApprox_
int nfval_
int ngval_
int ncval_
Ptr< ScalarController< Real, int > > fPhi_
Ptr< VectorController< Real, int > > gPhi_
Ptr< VectorController< Real, int > > y_
Ptr< ScalarController< Real, int > > fval_
Ptr< VectorController< Real, int > > g_
Ptr< VectorController< Real, int > > c_
Ptr< Vector< Real > > scaledc_
Ptr< Vector< Real > > gL_
Ptr< Vector< Real > > gLdual_
Ptr< Vector< Real > > xprim_
Ptr< Vector< Real > > xdual_
Ptr< Vector< Real > > cprim_
Ptr< Vector< Real > > cdual_
Real cnorm_
Real multSolverError_
Real gradSolveError_
Ptr< Krylov< Real > > krylov_
int iterKrylov_
int flagKrylov_
Ptr< Vector< Real > > v1_
Ptr< Vector< Real > > v2_
Ptr< Vector< Real > > b1_
Ptr< Vector< Real > > b2_
Ptr< Vector< Real > > w1_
Ptr< Vector< Real > > w2_
Ptr< PartitionedVector< Real > > vv_
Ptr< PartitionedVector< Real > > bb_
Ptr< PartitionedVector< Real > > ww_

Detailed Description

template<typename Real>
class ROL::FletcherObjectiveBase< Real >

Definition at line 25 of file ROL_FletcherObjectiveBase.hpp.

Constructor & Destructor Documentation

◆ FletcherObjectiveBase()

template<typename Real>
ROL::FletcherObjectiveBase< Real >::FletcherObjectiveBase ( const Ptr< Objective< Real > > & obj,
const Ptr< Constraint< Real > > & con,
const Vector< Real > & xprim,
const Vector< Real > & xdual,
const Vector< Real > & cprim,
const Vector< Real > & cdual,
ParameterList & parlist )

Member Function Documentation

◆ update()

template<typename Real>
void ROL::FletcherObjectiveBase< Real >::update ( const Vector< Real > & x,
UpdateType type,
int iter = -1 )
overridevirtual

Definition at line 68 of file ROL_FletcherObjectiveBase_Def.hpp.

References c_, con_, fPhi_, fval_, g_, gPhi_, obj_, and y_.

Referenced by ROL::TypeE::FletcherAlgorithm< Real >::initialize().

◆ getLagrangianGradient()

template<typename Real>
Ptr< const Vector< Real > > ROL::FletcherObjectiveBase< Real >::getLagrangianGradient ( const Vector< Real > & x)

◆ getConstraintVec()

template<typename Real>
Ptr< const Vector< Real > > ROL::FletcherObjectiveBase< Real >::getConstraintVec ( const Vector< Real > & x)

◆ getMultiplierVec()

template<typename Real>
Ptr< const Vector< Real > > ROL::FletcherObjectiveBase< Real >::getMultiplierVec ( const Vector< Real > & x)

◆ getGradient()

template<typename Real>
Ptr< const Vector< Real > > ROL::FletcherObjectiveBase< Real >::getGradient ( const Vector< Real > & x)

◆ getObjectiveValue()

template<typename Real>
Real ROL::FletcherObjectiveBase< Real >::getObjectiveValue ( const Vector< Real > & x)

◆ getNumberFunctionEvaluations()

template<typename Real>
int ROL::FletcherObjectiveBase< Real >::getNumberFunctionEvaluations ( ) const

◆ getNumberGradientEvaluations()

template<typename Real>
int ROL::FletcherObjectiveBase< Real >::getNumberGradientEvaluations ( ) const

◆ getNumberConstraintEvaluations()

template<typename Real>
int ROL::FletcherObjectiveBase< Real >::getNumberConstraintEvaluations ( ) const

◆ reset()

template<typename Real>
void ROL::FletcherObjectiveBase< Real >::reset ( Real sigma,
Real delta )

◆ objValue()

template<typename Real>
Real ROL::FletcherObjectiveBase< Real >::objValue ( const Vector< Real > & x,
Real & tol )
protected

Definition at line 142 of file ROL_FletcherObjectiveBase_Def.hpp.

References fval_, nfval_, and obj_.

Referenced by getObjectiveValue(), and ROL::FletcherObjectiveE< Real >::value().

◆ objGrad()

template<typename Real>
void ROL::FletcherObjectiveBase< Real >::objGrad ( Vector< Real > & g,
const Vector< Real > & x,
Real & tol )
protected

Definition at line 154 of file ROL_FletcherObjectiveBase_Def.hpp.

References g_, ngval_, and obj_.

Referenced by computeMultipliers().

◆ conValue()

template<typename Real>
void ROL::FletcherObjectiveBase< Real >::conValue ( Vector< Real > & c,
const Vector< Real > & x,
Real & tol )
protected

Definition at line 164 of file ROL_FletcherObjectiveBase_Def.hpp.

References c_, con_, and ncval_.

Referenced by computeMultipliers(), and getConstraintVec().

◆ computeMultipliers()

template<typename Real>
void ROL::FletcherObjectiveBase< Real >::computeMultipliers ( Vector< Real > & y,
Vector< Real > & gL,
const Vector< Real > & x,
Vector< Real > & g,
Vector< Real > & c,
Real tol )
protected

◆ solveAugmentedSystem()

template<typename Real>
virtual void ROL::FletcherObjectiveBase< Real >::solveAugmentedSystem ( Vector< Real > & v1,
Vector< Real > & v2,
const Vector< Real > & b1,
const Vector< Real > & b2,
const Vector< Real > & x,
Real & multSolverError_,
bool refine )
protectedpure virtual

Implemented in ROL::FletcherObjectiveE< Real >.

References multSolverError_.

Referenced by computeMultipliers().

Member Data Documentation

◆ obj_

◆ con_

◆ sigma_

template<typename Real>
Real ROL::FletcherObjectiveBase< Real >::sigma_
protected

◆ delta_

template<typename Real>
Real ROL::FletcherObjectiveBase< Real >::delta_
protected

◆ quadPenaltyParameter_

◆ useInexact_

◆ HessianApprox_

template<typename Real>
int ROL::FletcherObjectiveBase< Real >::HessianApprox_
protected

Definition at line 34 of file ROL_FletcherObjectiveBase.hpp.

Referenced by FletcherObjectiveBase().

◆ nfval_

template<typename Real>
int ROL::FletcherObjectiveBase< Real >::nfval_
protected

◆ ngval_

template<typename Real>
int ROL::FletcherObjectiveBase< Real >::ngval_
protected

◆ ncval_

template<typename Real>
int ROL::FletcherObjectiveBase< Real >::ncval_
protected

◆ fPhi_

template<typename Real>
Ptr<ScalarController<Real,int> > ROL::FletcherObjectiveBase< Real >::fPhi_
protected

◆ gPhi_

template<typename Real>
Ptr<VectorController<Real,int> > ROL::FletcherObjectiveBase< Real >::gPhi_
protected

◆ y_

template<typename Real>
Ptr<VectorController<Real,int> > ROL::FletcherObjectiveBase< Real >::y_
protected

◆ fval_

template<typename Real>
Ptr<ScalarController<Real,int> > ROL::FletcherObjectiveBase< Real >::fval_
protected

Definition at line 42 of file ROL_FletcherObjectiveBase.hpp.

Referenced by FletcherObjectiveBase(), objValue(), and update().

◆ g_

template<typename Real>
Ptr<VectorController<Real,int> > ROL::FletcherObjectiveBase< Real >::g_
protected

Definition at line 43 of file ROL_FletcherObjectiveBase.hpp.

Referenced by FletcherObjectiveBase(), objGrad(), and update().

◆ c_

template<typename Real>
Ptr<VectorController<Real,int> > ROL::FletcherObjectiveBase< Real >::c_
protected

Definition at line 44 of file ROL_FletcherObjectiveBase.hpp.

Referenced by conValue(), FletcherObjectiveBase(), and update().

◆ scaledc_

template<typename Real>
Ptr<Vector<Real> > ROL::FletcherObjectiveBase< Real >::scaledc_
protected

Definition at line 46 of file ROL_FletcherObjectiveBase.hpp.

Referenced by computeMultipliers(), and FletcherObjectiveBase().

◆ gL_

template<typename Real>
Ptr<Vector<Real> > ROL::FletcherObjectiveBase< Real >::gL_
protected

◆ gLdual_

◆ xprim_

template<typename Real>
Ptr<Vector<Real> > ROL::FletcherObjectiveBase< Real >::xprim_
protected

Definition at line 49 of file ROL_FletcherObjectiveBase.hpp.

Referenced by FletcherObjectiveBase().

◆ xdual_

◆ cprim_

◆ cdual_

◆ cnorm_

template<typename Real>
Real ROL::FletcherObjectiveBase< Real >::cnorm_
protected

◆ multSolverError_

◆ gradSolveError_

template<typename Real>
Real ROL::FletcherObjectiveBase< Real >::gradSolveError_
protected

◆ krylov_

template<typename Real>
Ptr<Krylov<Real> > ROL::FletcherObjectiveBase< Real >::krylov_
protected

◆ iterKrylov_

template<typename Real>
int ROL::FletcherObjectiveBase< Real >::iterKrylov_
protected

◆ flagKrylov_

template<typename Real>
int ROL::FletcherObjectiveBase< Real >::flagKrylov_
protected

◆ v1_

template<typename Real>
Ptr<Vector<Real> > ROL::FletcherObjectiveBase< Real >::v1_
protected

◆ v2_

template<typename Real>
Ptr<Vector<Real> > ROL::FletcherObjectiveBase< Real >::v2_
protected

◆ b1_

template<typename Real>
Ptr<Vector<Real> > ROL::FletcherObjectiveBase< Real >::b1_
protected

◆ b2_

◆ w1_

template<typename Real>
Ptr<Vector<Real> > ROL::FletcherObjectiveBase< Real >::w1_
protected

◆ w2_

template<typename Real>
Ptr<Vector<Real> > ROL::FletcherObjectiveBase< Real >::w2_
protected

◆ vv_

template<typename Real>
Ptr<PartitionedVector<Real> > ROL::FletcherObjectiveBase< Real >::vv_
protected

◆ bb_

template<typename Real>
Ptr<PartitionedVector<Real> > ROL::FletcherObjectiveBase< Real >::bb_
protected

◆ ww_

template<typename Real>
Ptr<PartitionedVector<Real> > ROL::FletcherObjectiveBase< Real >::ww_
protected

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