53 const QuantLib::ext::shared_ptr<ore::data::Market>& market,
55 const QuantLib::ext::shared_ptr<CommoditySchwartzData>&
data,
57 const QuantLib::Currency& baseCcy,
61 const std::string& referenceCalibrationGrid =
"");
69 QuantLib::ext::shared_ptr<QuantExt::CommoditySchwartzParametrization>
parametrization()
const;
70 QuantLib::ext::shared_ptr<QuantExt::CommoditySchwartzModel>
model()
const;
71 std::vector<QuantLib::ext::shared_ptr<BlackCalibrationHelper>>
optionBasket()
const;
89 const QuantLib::ext::shared_ptr<ore::data::Market>
market_;
91 const QuantLib::ext::shared_ptr<CommoditySchwartzData>
data_;
97 mutable QuantLib::ext::shared_ptr<QuantExt::CommoditySchwartzParametrization>
parametrization_;
98 mutable QuantLib::ext::shared_ptr<QuantExt::CommoditySchwartzModel>
model_;
102 mutable std::vector<QuantLib::ext::shared_ptr<BlackCalibrationHelper>>
optionBasket_;
107 Handle<QuantExt::PriceTermStructure>
curve_;
108 Handle<BlackVolTermStructure>
vol_;
Builder for a COM model component.
const std::string configuration_
void forceRecalculate() override
void performCalculations() const override
bool volSurfaceChanged(const bool updateCache) const
QuantLib::ext::shared_ptr< QuantExt::MarketObserver > marketObserver_
std::vector< Real > calibrationErrors_
QuantLib::ext::shared_ptr< QuantExt::CommoditySchwartzModel > model_
const QuantLib::Currency baseCcy_
std::vector< QuantLib::ext::shared_ptr< BlackCalibrationHelper > > optionBasket() const
Real optionStrike(const Size j) const
std::vector< QuantLib::ext::shared_ptr< BlackCalibrationHelper > > optionBasket_
Handle< BlackVolTermStructure > vol_
std::vector< QuantLib::Real > volCache_
Date optionExpiry(const Size j) const
bool requiresRecalibration() const override
const QuantLib::ext::shared_ptr< ore::data::Market > market_
const QuantLib::ext::shared_ptr< CommoditySchwartzData > data_
Handle< QuantExt::PriceTermStructure > curve_
const std::string referenceCalibrationGrid_
QuantLib::ext::shared_ptr< QuantExt::CommoditySchwartzParametrization > parametrization() const
Real error() const
Return calibration error.
void buildOptionBasket() const
std::vector< bool > optionActive_
QuantLib::ext::shared_ptr< QuantExt::CommoditySchwartzParametrization > parametrization_
QuantLib::ext::shared_ptr< QuantExt::CommoditySchwartzModel > model() const
static const string defaultConfiguration
Default configuration label.
COM component data for the cross asset model.
Serializable Credit Default Swap.