54 LgmBuilder(
const QuantLib::ext::shared_ptr<ore::data::Market>& market,
const QuantLib::ext::shared_ptr<IrLgmData>&
data,
56 const bool continueOnError =
false,
const std::string& referenceCalibrationGrid =
"",
57 const bool setCalibrationInfo =
false,
const std::string&
id =
"unknwon");
65 QuantLib::ext::shared_ptr<QuantExt::LGM>
model()
const;
70 QuantLib::ext::shared_ptr<QuantExt::IrLgm1fParametrization>
parametrization()
const;
71 std::vector<QuantLib::ext::shared_ptr<BlackCalibrationHelper>>
swaptionBasket()
const;
88 void getExpiryAndTerm(
const Size j, Period& expiryPb, Period& termPb, Date& expiryDb, Date& termDb, Real& termT,
89 bool& expiryDateBased,
bool& termDateBased)
const;
93 QuantLib::ext::shared_ptr<ore::data::Market>
market_;
95 QuantLib::ext::shared_ptr<IrLgmData>
data_;
105 mutable QuantLib::ext::shared_ptr<QuantExt::LGM>
model_;
111 mutable std::vector<QuantLib::ext::shared_ptr<BlackCalibrationHelper>>
swaptionBasket_;
118 Handle<QuantLib::SwaptionVolatilityStructure>
svts_;
Builder for a Linear Gauss Markov model component.
std::vector< bool > swaptionActive_
Handle< SwapIndex > swapIndex_
const std::string configuration_
void forceRecalculate() override
BlackCalibrationHelper::CalibrationErrorType calibrationErrorType_
void performCalculations() const override
bool volSurfaceChanged(const bool updateCache) const
std::string getBasketDetails(QuantExt::LgmCalibrationInfo &info) const
QuantLib::ext::shared_ptr< QuantExt::IrLgm1fParametrization > parametrization() const
QuantLib::ext::shared_ptr< QuantExt::MarketObserver > marketObserver_
void updateSwaptionBasketVols() const
const bool continueOnError_
Date swaptionBasketRefDate_
Array swaptionMaturities_
const Real bootstrapTolerance_
std::vector< QuantLib::ext::shared_ptr< SimpleQuote > > swaptionBasketVols_
QuantLib::ext::shared_ptr< QuantExt::IrLgm1fParametrization > parametrization_
bool requiresRecalibration() const override
RelinkableHandle< YieldTermStructure > discountCurve()
std::vector< QuantLib::ext::shared_ptr< BlackCalibrationHelper > > swaptionBasket() const
Handle< YieldTermStructure > calibrationDiscountCurve_
std::vector< QuantLib::Real > swaptionVolCache_
std::vector< Real > swaptionStrike_
QuantLib::ext::shared_ptr< OptimizationMethod > optimizationMethod_
QuantLib::ext::shared_ptr< ore::data::Market > market_
Real getStrike(const Size j) const
std::vector< QuantLib::ext::shared_ptr< BlackCalibrationHelper > > swaptionBasket_
void buildSwaptionBasket() const
Handle< SwapIndex > shortSwapIndex_
const std::string referenceCalibrationGrid_
bool requiresCalibration_
Real error() const
Return calibration error.
QuantLib::ext::shared_ptr< IrLgmData > data_
void getExpiryAndTerm(const Size j, Period &expiryPb, Period &termPb, Date &expiryDb, Date &termDb, Real &termT, bool &expiryDateBased, bool &termDateBased) const
QuantLib::ext::shared_ptr< QuantExt::LGM > model() const
QuantLib::ext::shared_ptr< QuantExt::LGM > model_
const bool setCalibrationInfo_
Handle< QuantLib::SwaptionVolatilityStructure > svts_
RelinkableHandle< YieldTermStructure > modelDiscountCurve_
static const string defaultConfiguration
Default configuration label.
IR component data for the cross asset model.
Serializable Credit Default Swap.