|
ROL
|
Provides an interface for spectral risk measures. More...
#include <ROL_SpectralRisk.hpp>
Public Member Functions | |
| SpectralRisk (void) | |
| SpectralRisk (const ROL::Ptr< Distribution< Real > > &dist, const int nQuad, const ROL::Ptr< PlusFunction< Real > > &pf) | |
| SpectralRisk (ROL::ParameterList &parlist) | |
| SpectralRisk (const std::vector< Real > &pts, const std::vector< Real > &wts, const ROL::Ptr< PlusFunction< Real > > &pf) | |
| Real | computeStatistic (const std::vector< Real > &xstat) |
| void | setStorage (const Ptr< ScalarController< Real > > &value_storage, const Ptr< VectorController< Real > > &gradient_storage) |
| void | setHessVecStorage (const Ptr< ScalarController< Real > > &gradvec_storage, const Ptr< VectorController< Real > > &hessvec_storage) |
| void | setSample (const std::vector< Real > &point, const Real weight) |
| void | resetStorage (bool flag=true) |
| void | resetStorage (UpdateType type) |
| void | initialize (const Vector< Real > &x) |
| Real | computeStatistic (const Ptr< std::vector< Real > > &xstat) const |
| void | updateValue (Objective< Real > &obj, const Vector< Real > &x, const std::vector< Real > &xstat, Real &tol) |
| void | updateGradient (Objective< Real > &obj, const Vector< Real > &x, const std::vector< Real > &xstat, Real &tol) |
| 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) |
| Real | getValue (const Vector< Real > &x, const std::vector< Real > &xstat, SampleGenerator< Real > &sampler) |
| void | getGradient (Vector< Real > &g, std::vector< Real > &gstat, const Vector< Real > &x, const std::vector< Real > &xstat, SampleGenerator< Real > &sampler) |
| 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) |
Protected Member Functions | |
| void | buildMixedQuantile (const std::vector< Real > &pts, const std::vector< Real > &wts, const ROL::Ptr< PlusFunction< Real > > &pf) |
| void | buildQuadFromDist (std::vector< Real > &pts, std::vector< Real > &wts, const int nQuad, const ROL::Ptr< Distribution< Real > > &dist) const |
| void | printQuad (const std::vector< Real > &pts, const std::vector< Real > &wts, const bool print=false) const |
Private Member Functions | |
| void | checkInputs (ROL::Ptr< Distribution< Real > > &dist=ROL::nullPtr) const |
Private Attributes | |
| ROL::Ptr< MixedCVaR< Real > > | mqq_ |
| ROL::Ptr< PlusFunction< Real > > | plusFunction_ |
| std::vector< Real > | wts_ |
| std::vector< Real > | pts_ |
Provides an interface for spectral risk measures.
Kusuoka's representation for law-invariant risk measures is
\[ \mathcal{R}(X) = \sup_{\mu\in\mathfrak{M}} \int_0^1 \mathrm{CVaR}_{\alpha}(X)\,\mathrm{d}\mu(\alpha) \]
where the conditional value-at-risk (CVaR) with confidence level \(0\le \alpha < 1\) is
\[ \mathrm{CVaR}_\alpha(X) = \inf_{t\in\mathbb{R}} \left\{ t + \frac{1}{1-\alpha} \mathbb{E}\left[(X-t)_+\right] \right\}, \quad (x)_+ = \max\{0,x\}, \]
and \(\mathfrak{M}\) is a subset of distributions on the interval \([0,1)\). By spectral risk measures, we refer to the case where the set \(\mathfrak{M}\) is a singleton. If the distribution \(\mu\in\mathfrak{M}\) is discrete, then the corresponding risk measure is a mixed quantile quadrangle risk measure.
If the distribution of \(X\) is continuous, then \(\mathrm{CVaR}_{\alpha}(X)\) is the conditional expectation of \(X\) exceeding the \(\alpha\)-quantile of \(X\) and the optimal \(t\) is the \(\alpha\)-quantile. Additionally, \(\mathcal{R}\) is a law-invariant coherent risk measure.
ROL implements \(\mathcal{R}\) by approximating the integral with Gauss-Chebyshev quadrature of the first kind. The corresponding quadrature points and weights are then used to construct a ROL::MixedCVaR risk measure. When using derivative-based optimization, the user can provide a smooth approximation of \((\cdot)_+\) using the ROL::PlusFunction class.
Definition at line 89 of file ROL_SpectralRisk.hpp.
|
inline |
Definition at line 166 of file ROL_SpectralRisk.hpp.
Referenced by ROL::ChebyshevSpectral< Real >::ChebyshevSpectral(), ROL::ChebyshevSpectral< Real >::ChebyshevSpectral(), ROL::SecondOrderCVaR< Real >::SecondOrderCVaR(), and ROL::SecondOrderCVaR< Real >::SecondOrderCVaR().
|
inline |
Definition at line 168 of file ROL_SpectralRisk.hpp.
References buildMixedQuantile(), buildQuadFromDist(), and checkInputs().
|
inline |
Definition at line 181 of file ROL_SpectralRisk.hpp.
References buildMixedQuantile(), buildQuadFromDist(), checkInputs(), ROL::DistributionFactory(), and printQuad().
|
inline |
Definition at line 202 of file ROL_SpectralRisk.hpp.
References buildMixedQuantile(), and checkInputs().
|
inlineprivate |
Definition at line 97 of file ROL_SpectralRisk.hpp.
References plusFunction_.
Referenced by SpectralRisk(), SpectralRisk(), and SpectralRisk().
|
inlineprotected |
Definition at line 111 of file ROL_SpectralRisk.hpp.
References mqq_, plusFunction_, pts_, and wts_.
Referenced by ROL::ChebyshevSpectral< Real >::initializeQuad(), ROL::SecondOrderCVaR< Real >::initializeQuad(), SpectralRisk(), SpectralRisk(), and SpectralRisk().
|
inlineprotected |
Definition at line 119 of file ROL_SpectralRisk.hpp.
Referenced by SpectralRisk(), and SpectralRisk().
|
inlineprotected |
Definition at line 145 of file ROL_SpectralRisk.hpp.
Referenced by SpectralRisk().
|
inline |
Definition at line 210 of file ROL_SpectralRisk.hpp.
References wts_.
|
inline |
Definition at line 219 of file ROL_SpectralRisk.hpp.
References mqq_.
|
inline |
Definition at line 225 of file ROL_SpectralRisk.hpp.
References mqq_.
|
inline |
Definition at line 231 of file ROL_SpectralRisk.hpp.
References mqq_.
|
inline |
Definition at line 236 of file ROL_SpectralRisk.hpp.
References mqq_.
|
inline |
Definition at line 241 of file ROL_SpectralRisk.hpp.
References mqq_.
|
inline |
Definition at line 246 of file ROL_SpectralRisk.hpp.
References mqq_.
|
inline |
Definition at line 251 of file ROL_SpectralRisk.hpp.
References mqq_.
|
inline |
Definition at line 255 of file ROL_SpectralRisk.hpp.
References mqq_.
|
inline |
Definition at line 262 of file ROL_SpectralRisk.hpp.
References mqq_.
|
inline |
Definition at line 269 of file ROL_SpectralRisk.hpp.
References mqq_.
|
inline |
Definition at line 278 of file ROL_SpectralRisk.hpp.
References mqq_.
|
inline |
Definition at line 284 of file ROL_SpectralRisk.hpp.
References mqq_.
|
inline |
Definition at line 292 of file ROL_SpectralRisk.hpp.
References mqq_.
|
private |
Definition at line 91 of file ROL_SpectralRisk.hpp.
Referenced by buildMixedQuantile(), computeStatistic(), getGradient(), getHessVec(), getValue(), initialize(), resetStorage(), resetStorage(), setHessVecStorage(), setSample(), setStorage(), updateGradient(), updateHessVec(), and updateValue().
|
private |
Definition at line 92 of file ROL_SpectralRisk.hpp.
Referenced by buildMixedQuantile(), and checkInputs().
|
private |
Definition at line 94 of file ROL_SpectralRisk.hpp.
Referenced by buildMixedQuantile(), and computeStatistic().
|
private |
Definition at line 95 of file ROL_SpectralRisk.hpp.
Referenced by buildMixedQuantile().