44 #ifndef ROL_MEANSEMIDEVIATIONFROMTARGET_HPP
45 #define ROL_MEANSEMIDEVIATIONFROMTARGET_HPP
93 ROL_TEST_FOR_EXCEPTION((
coeff_ < zero), std::invalid_argument,
94 ">>> ERROR (ROL::MeanPlusSemiDeviationFromTarget): Coefficient must be positive!");
95 ROL_TEST_FOR_EXCEPTION(
plusFunction_ == nullPtr, std::invalid_argument,
96 ">>> ERROR (ROL::MeanSemiDeviation): PlusFunction pointer is null!");
125 ROL::ParameterList &list
126 = parlist.sublist(
"SOL").sublist(
"Risk Measure").sublist(
"Mean Plus Semi-Deviation From Target");
128 coeff_ = list.get<Real>(
"Coefficient");
129 target_ = list.get<Real>(
"Target");
138 const std::vector<Real> &xstat,
146 const std::vector<Real> &xstat,
155 const std::vector<Real> &xstat,
165 std::vector<Real> &gstat,
167 const std::vector<Real> &xstat,
174 const std::vector<Real> &vstat,
176 const std::vector<Real> &xstat,
189 std::vector<Real> &hvstat,
191 const std::vector<Real> &vstat,
193 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_