24 const Handle<CrossAssetModel>& model,
const SequenceType calibrationPathGenerator,
25 const SequenceType pricingPathGenerator,
const Size calibrationSamples,
const Size pricingSamples,
26 const Size calibrationSeed,
const Size pricingSeed,
const Size polynomOrder,
27 const LsmBasisSystem::PolynomialType polynomType,
const SobolBrownianGenerator::Ordering ordering,
28 const SobolRsg::DirectionIntegers directionIntegers,
const std::vector<Handle<YieldTermStructure>>& discountCurves,
29 const std::vector<Date>& simulationDates,
const std::vector<Size>& externalModelIndices,
const bool minObsDate,
30 const RegressorModel regressorModel,
const Real regressionVarianceCutoff)
31 :
McMultiLegBaseEngine(model, calibrationPathGenerator, pricingPathGenerator, calibrationSamples, pricingSamples,
32 calibrationSeed, pricingSeed, polynomOrder, polynomType, ordering, directionIntegers,
33 discountCurves, simulationDates, externalModelIndices, minObsDate, regressorModel,
34 regressionVarianceCutoff) {
42 const QuantLib::ext::shared_ptr<LinearGaussMarkovModel>& model,
const SequenceType calibrationPathGenerator,
43 const SequenceType pricingPathGenerator,
const Size calibrationSamples,
const Size pricingSamples,
44 const Size calibrationSeed,
const Size pricingSeed,
const Size polynomOrder,
45 const LsmBasisSystem::PolynomialType polynomType,
const SobolBrownianGenerator::Ordering ordering,
46 const SobolRsg::DirectionIntegers directionIntegers,
const Handle<YieldTermStructure>& discountCurve,
47 const std::vector<Date>& simulationDates,
const std::vector<Size>& externalModelIndices,
const bool minimalObsDate,
48 const RegressorModel regressorModel,
const Real regressionVarianceCutoff)
52 calibrationPathGenerator, pricingPathGenerator, calibrationSamples, pricingSamples,
53 calibrationSeed, pricingSeed, polynomOrder, polynomType, ordering, directionIntegers,
54 {discountCurve}, simulationDates, externalModelIndices, minimalObsDate, regressorModel,
55 regressionVarianceCutoff) {}
71 fxSpot =
model_->fxbs(npvCcyIndex - 1)->fxSpotToday()->value();
const Instrument::results * results_
FX Black Scholes parametrizations.
Settlement::Type optionSettlement_
std::vector< Currency > currency_
QuantLib::ext::shared_ptr< Exercise > exercise_
Real resultUnderlyingNpv_
std::vector< Handle< YieldTermStructure > > discountCurves_
Handle< CrossAssetModel > model_
QuantLib::ext::shared_ptr< AmcCalculator > amcCalculator() const
std::vector< bool > payer_
void calculate() const override
McMultiLegOptionEngine(const Handle< CrossAssetModel > &model, const SequenceType calibrationPathGenerator, const SequenceType pricingPathGenerator, const Size calibrationSamples, const Size pricingSamples, const Size calibrationSeed, const Size pricingSeed, const Size polynomOrder, const LsmBasisSystem::PolynomialType polynomType, const SobolBrownianGenerator::Ordering ordering=SobolBrownianGenerator::Steps, const SobolRsg::DirectionIntegers directionIntegers=SobolRsg::JoeKuoD7, const std::vector< Handle< YieldTermStructure > > &discountCurves=std::vector< Handle< YieldTermStructure > >(), const std::vector< Date > &simulationDates=std::vector< Date >(), const std::vector< Size > &externalModelIndices=std::vector< Size >(), const bool minimalObsDate=true, const RegressorModel regressorModel=RegressorModel::Simple, const Real regressionVarianceCutoff=Null< Real >())
MC engine for multi leg option instrument.
Swap::arguments * arguments_