Sensitivity Analysis. More...
#include <orea/engine/sensitivityanalysis.hpp>
Public Member Functions | |
SensitivityAnalysis (const QuantLib::ext::shared_ptr< ore::data::Portfolio > &portfolio, const QuantLib::ext::shared_ptr< ore::data::Market > &market, const string &marketConfiguration, const QuantLib::ext::shared_ptr< ore::data::EngineData > &engineData, const QuantLib::ext::shared_ptr< ScenarioSimMarketParameters > &simMarketData, const QuantLib::ext::shared_ptr< SensitivityScenarioData > &sensitivityData, const bool recalibrateModels, const QuantLib::ext::shared_ptr< ore::data::CurveConfigurations > &curveConfigs=nullptr, const QuantLib::ext::shared_ptr< ore::data::TodaysMarketParameters > &todaysMarketParams=nullptr, const bool nonShiftedBaseCurrencyConversion=false, const QuantLib::ext::shared_ptr< ReferenceDataManager > &referenceData=nullptr, const IborFallbackConfig &iborFallbackConfig=IborFallbackConfig::defaultConfig(), const bool continueOnError=false, bool dryRun=false) | |
Constructor using single-threaded engine. | |
SensitivityAnalysis (const Size nThreads, const Date &asof, const QuantLib::ext::shared_ptr< ore::data::Loader > &loader, const QuantLib::ext::shared_ptr< ore::data::Portfolio > &portfolio, const string &marketConfiguration, const QuantLib::ext::shared_ptr< ore::data::EngineData > &engineData, const QuantLib::ext::shared_ptr< ore::analytics::ScenarioSimMarketParameters > &simMarketData, const QuantLib::ext::shared_ptr< ore::analytics::SensitivityScenarioData > &sensitivityData, const bool recalibrateModels, const QuantLib::ext::shared_ptr< ore::data::CurveConfigurations > &curveConfigs, const QuantLib::ext::shared_ptr< ore::data::TodaysMarketParameters > &todaysMarketParams, const bool nonShiftedBaseCurrencyConversion=false, const QuantLib::ext::shared_ptr< ReferenceDataManager > &referenceData=nullptr, const IborFallbackConfig &iborFallbackConfig=IborFallbackConfig::defaultConfig(), const bool continueOnError=false, bool dryRun=false, const std::string &context="sensi analysis") | |
Constructor using multi-threaded engine. | |
void | generateSensitivities () |
Generate the Sensitivities. | |
const QuantLib::Date | asof () const |
The ASOF date for the sensitivity analysis. | |
const std::string | marketConfiguration () const |
The market configuration string. | |
const QuantLib::ext::shared_ptr< ScenarioSimMarket > | simMarket () const |
A getter for the sim market. | |
const QuantLib::ext::shared_ptr< SensitivityScenarioGenerator > | scenarioGenerator () const |
A getter for SensitivityScenarioGenerator (the main one, without possibly customized shifts) | |
const QuantLib::ext::shared_ptr< ScenarioSimMarketParameters > | simMarketData () const |
A getter for ScenarioSimMarketParameters. | |
const QuantLib::ext::shared_ptr< SensitivityScenarioData > | sensitivityData () const |
A getter for SensitivityScenarioData. | |
void | overrideTenors (const bool b) |
override shift tenors with sim market tenors | |
QuantLib::ext::shared_ptr< Portfolio > | portfolio () const |
the portfolio of trades | |
std::vector< QuantLib::ext::shared_ptr< SensitivityCube > > | sensiCubes () const |
a wrapper for the sensitivity results cubes (one per shift configuration) | |
QuantLib::ext::shared_ptr< SensitivityCube > | sensiCube () const |
a wrapper for the first sensitivity result cube (if that is unique, otherwise throws, for bwd compatibility) | |
Public Member Functions inherited from ProgressReporter | |
void | registerProgressIndicator (const QuantLib::ext::shared_ptr< ProgressIndicator > &indicator) |
void | unregisterProgressIndicator (const QuantLib::ext::shared_ptr< ProgressIndicator > &indicator) |
void | unregisterAllProgressIndicators () |
void | updateProgress (const unsigned long progress, const unsigned long total, const std::string &detail="") |
void | resetProgress () |
const std::set< QuantLib::ext::shared_ptr< ProgressIndicator > > & | progressIndicators () const |
Sensitivity Analysis.
This class wraps functionality to perform a sensitivity analysis for a given portfolio. It comprises