31#include <ql/methods/montecarlo/lsmbasissystem.hpp>
37 public GenericEngine<QuantExt::MultiLegOption::arguments, QuantExt::MultiLegOption::results> {
41 const Handle<CrossAssetModel>&
model,
const SequenceType calibrationPathGenerator,
42 const SequenceType pricingPathGenerator,
const Size calibrationSamples,
const Size pricingSamples,
43 const Size calibrationSeed,
const Size pricingSeed,
const Size polynomOrder,
44 const LsmBasisSystem::PolynomialType polynomType,
45 const SobolBrownianGenerator::Ordering ordering = SobolBrownianGenerator::Steps,
46 const SobolRsg::DirectionIntegers directionIntegers = SobolRsg::JoeKuoD7,
47 const std::vector<Handle<YieldTermStructure>>& discountCurves = std::vector<Handle<YieldTermStructure>>(),
48 const std::vector<Date>& simulationDates = std::vector<Date>(),
49 const std::vector<Size>& externalModelIndices = std::vector<Size>(),
const bool minimalObsDate =
true,
51 const Real regressionVarianceCutoff = Null<Real>());
54 const Size calibrationSamples,
const Size pricingSamples,
const Size calibrationSeed,
55 const Size pricingSeed,
const Size polynomOrder,
56 const LsmBasisSystem::PolynomialType polynomType,
57 const SobolBrownianGenerator::Ordering ordering = SobolBrownianGenerator::Steps,
58 const SobolRsg::DirectionIntegers directionIntegers = SobolRsg::JoeKuoD7,
59 const Handle<YieldTermStructure>& discountCurve = Handle<YieldTermStructure>(),
60 const std::vector<Date>& simulationDates = std::vector<Date>(),
61 const std::vector<Size>& externalModelIndices = std::vector<Size>(),
62 const bool minimalObsDate =
true,
64 const Real regressionVarianceCutoff = Null<Real>());
67 const Handle<CrossAssetModel>&
model()
const {
return model_; }
Handle< CrossAssetModel > model_
const Handle< CrossAssetModel > & model() const
void calculate() const override
base MC engine for multileg (option) instruments
multi leg option instrument
base class for multi path generators