58 StressTest(
const QuantLib::ext::shared_ptr<ore::data::Portfolio>& portfolio,
59 const QuantLib::ext::shared_ptr<ore::data::Market>& market,
const string& marketConfiguration,
60 const QuantLib::ext::shared_ptr<ore::data::EngineData>& engineData,
61 const QuantLib::ext::shared_ptr<ScenarioSimMarketParameters>& simMarketData,
62 const QuantLib::ext::shared_ptr<StressTestScenarioData>& stressData,
65 QuantLib::ext::shared_ptr<ScenarioFactory> scenarioFactory = {},
66 const QuantLib::ext::shared_ptr<ReferenceDataManager>& referenceData =
nullptr,
68 bool continueOnError =
false);
83 const std::map<std::pair<std::string, std::string>, Real>&
delta() {
return delta_; }
86 void writeReport(
const QuantLib::ext::shared_ptr<ore::data::Report>& report, Real outputThreshold = 0.0);
const std::map< std::pair< std::string, std::string >, Real > & shiftedNPV()
Return shifted NPVs by trade and scenario.
std::map< std::pair< string, string >, Real > delta_
void writeReport(const QuantLib::ext::shared_ptr< ore::data::Report > &report, Real outputThreshold=0.0)
Write NPV by trade/scenario to a file (base and shifted NPVs, delta)
const std::map< std::pair< std::string, std::string >, Real > & delta()
Return delta NPV by trade and scenario.
std::map< std::pair< string, string >, Real > shiftedNPV_
std::set< std::string > labels_
const std::set< std::string > & stressTests()
Return unique set of factors shifted.
const std::map< std::string, Real > & baseNPV()
Return base NPV by trade, before shift.
std::map< std::string, Real > baseNPV_
const std::set< std::string > & trades()
Return set of trades analysed.
std::set< std::string > trades_
static IborFallbackConfig defaultConfig()
A Market class that can be updated by Scenarios.
A class to hold Scenario parameters for scenarioSimMarket.
A class to hold the parametrisation for building sensitivity scenarios.
Stress scenario generation.
vector< string > curveConfigs