44 #ifndef ROL_PD_BPOE_HPP
45 #define ROL_PD_BPOE_HPP
82 values_ = makePtr<SampledScalar<Real>>();
83 gradvecs_ = makePtr<SampledScalar<Real>>();
85 hessvecs_ = makePtr<SampledVector<Real>>();
127 const std::vector<Real> &xstat,
133 Real arg = xstat[0] * (val -
thresh_) + one;
140 const std::vector<Real> &xstat,
149 const std::vector<Real> &xstat,
151 const Real
zero(0), one(1);
155 Real arg = xstat[0] * (val -
thresh_) + one;
165 std::vector<Real> &gstat,
167 const std::vector<Real> &xstat,
177 const std::vector<Real> &vstat,
179 const std::vector<Real> &xstat,
181 const Real
zero(0), one(1);
185 Real arg = xstat[0] * (val -
thresh_) + one;
197 Real c1 = pf2 * (val -
thresh_) * xstat[0];
199 Real c3 = pf2 * xstat[0] * xstat[0];
206 std::vector<Real> &hvstat,
208 const std::vector<Real> &vstat,
210 const std::vector<Real> &xstat,
virtual void setHessVecStorage(const Ptr< SampledScalar< Real >> &gradvec_storage, const Ptr< SampledVector< Real >> &hessvec_storage)
Provides the interface to evaluate objective functions.
void getGradient(Vector< Real > &g, std::vector< Real > &gstat, const Vector< Real > &x, const std::vector< Real > &xstat, SampleGenerator< Real > &sampler)
Return risk measure (sub)gradient.
void computeHessVec(Vector< Real > &hv, Objective< Real > &obj, const Vector< Real > &v, const Vector< Real > &x, Real &tol)
Ptr< SampledScalar< Real > > values_
Real computeValue(Objective< Real > &obj, const Vector< Real > &x, Real &tol)
Ptr< Vector< Real > > hv_
Real ppf(const Real x, const Real t, const Real r, const int deriv=0) const
Ptr< SampledVector< Real > > gradients_
void initialize(const Vector< Real > &x)
Initialize temporary variables.
Contains definitions of custom data types in ROL.
Real getPenaltyParameter(void) const
std::vector< Real > point_
Ptr< Vector< Real > > dualVector_
Defines the linear algebra or vector space interface.
Ptr< SampledVector< Real > > hessvecs_
void sumAll(Real *input, Real *output, int dim) const
Objective_SerialSimOpt(const Ptr< Obj > &obj, const V &ui) z0_ zero()
virtual void setStorage(const Ptr< SampledScalar< Real >> &value_storage, const Ptr< SampledVector< Real >> &gradient_storage)
Ptr< SampledScalar< Real > > gradvecs_
void updateHessVec(Objective< Real > &obj, const Vector< Real > &v, const std::vector< Real > &vstat, const Vector< Real > &x, const std::vector< Real > &xstat, Real &tol)
Update internal risk measure storage for Hessian-time-a-vector computation.
void updateValue(Objective< Real > &obj, const Vector< Real > &x, const std::vector< Real > &xstat, Real &tol)
Update internal storage for value computation.
virtual void setStorage(const Ptr< SampledScalar< Real >> &value_storage, const Ptr< SampledVector< Real >> &gradient_storage)
void updateGradient(Objective< Real > &obj, const Vector< Real > &x, const std::vector< Real > &xstat, Real &tol)
Update internal risk measure storage for gradient computation.
void getMultiplier(Real &lam, const std::vector< Real > &pt) const
Real getValue(const Vector< Real > &x, const std::vector< Real > &xstat, SampleGenerator< Real > &sampler)
Return risk measure value.
void setStorage(const Ptr< SampledScalar< Real >> &value_storage, const Ptr< SampledVector< Real >> &gradient_storage)
void computeGradient(Vector< Real > &g, Objective< Real > &obj, const Vector< Real > &x, Real &tol)
virtual void initialize(const Vector< Real > &x)
Initialize temporary variables.
Real computeGradVec(Vector< Real > &g, Objective< Real > &obj, const Vector< Real > &v, const Vector< Real > &x, Real &tol)
void getHessVec(Vector< Real > &hv, std::vector< Real > &hvstat, const Vector< Real > &v, const std::vector< Real > &vstat, const Vector< Real > &x, const std::vector< Real > &xstat, SampleGenerator< Real > &sampler)
Return risk measure Hessian-times-a-vector.
Provides the interface to implement any functional that maps a random variable to a (extended) real n...
PD_BPOE(const Real thresh)
void setValue(const Real val, const std::vector< Real > &pt)
void setHessVecStorage(const Ptr< SampledScalar< Real >> &gradvec_storage, const Ptr< SampledVector< Real >> &hessvec_storage)
virtual void setHessVecStorage(const Ptr< SampledScalar< Real >> &gradvec_storage, const Ptr< SampledVector< Real >> &hessvec_storage)
void initializeStorage(void)