10 #ifndef ROL_MEANSEMIDEVIATIONFROMTARGET_HPP
11 #define ROL_MEANSEMIDEVIATIONFROMTARGET_HPP
59 ROL_TEST_FOR_EXCEPTION((
coeff_ < zero), std::invalid_argument,
60 ">>> ERROR (ROL::MeanPlusSemiDeviationFromTarget): Coefficient must be positive!");
61 ROL_TEST_FOR_EXCEPTION(
plusFunction_ == nullPtr, std::invalid_argument,
62 ">>> ERROR (ROL::MeanSemiDeviation): PlusFunction pointer is null!");
91 ROL::ParameterList &list
92 = parlist.sublist(
"SOL").sublist(
"Risk Measure").sublist(
"Mean Plus Semi-Deviation From Target");
94 coeff_ = list.get<Real>(
"Coefficient");
95 target_ = list.get<Real>(
"Target");
104 const std::vector<Real> &xstat,
112 const std::vector<Real> &xstat,
121 const std::vector<Real> &xstat,
131 std::vector<Real> &gstat,
133 const std::vector<Real> &xstat,
140 const std::vector<Real> &vstat,
142 const std::vector<Real> &xstat,
155 std::vector<Real> &hvstat,
157 const std::vector<Real> &vstat,
159 const std::vector<Real> &xstat,
Provides the interface to evaluate objective functions.
void computeHessVec(Vector< Real > &hv, Objective< Real > &obj, const Vector< Real > &v, const Vector< Real > &x, Real &tol)
Real computeValue(Objective< Real > &obj, const Vector< Real > &x, Real &tol)
Ptr< Vector< Real > > hv_
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.
Ptr< Vector< Real > > dualVector_
void checkInputs(void) const
Defines the linear algebra or vector space interface.
Real getValue(const Vector< Real > &x, const std::vector< Real > &xstat, SampleGenerator< Real > &sampler)
Return risk measure value.
void sumAll(Real *input, Real *output, int dim) const
Objective_SerialSimOpt(const Ptr< Obj > &obj, const V &ui) z0_ zero()
void updateGradient(Objective< Real > &obj, const Vector< Real > &x, const std::vector< Real > &xstat, Real &tol)
Update internal risk measure storage for gradient computation.
MeanSemiDeviationFromTarget(ROL::ParameterList &parlist)
Constructor.
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 updateValue(Objective< Real > &obj, const Vector< Real > &x, const std::vector< Real > &xstat, Real &tol)
Update internal storage for value computation.
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.
void computeGradient(Vector< Real > &g, Objective< Real > &obj, const Vector< Real > &x, Real &tol)
Real computeGradVec(Vector< Real > &g, Objective< Real > &obj, const Vector< Real > &v, const Vector< Real > &x, Real &tol)
Provides the interface to implement any functional that maps a random variable to a (extended) real n...
MeanSemiDeviationFromTarget(const Real coeff, const Real target, const Ptr< PlusFunction< Real >> &pf)
Constructor.
Ptr< PlusFunction< Real > > plusFunction_