#include <qle/pricingengines/numericlgmmultilegoptionengine.hpp>
|
| NumericLgmMultiLegOptionEngine (const QuantLib::ext::shared_ptr< LinearGaussMarkovModel > &model, const Real sy, const Size ny, const Real sx, const Size nx, const Handle< YieldTermStructure > &discountCurve=Handle< YieldTermStructure >(), const Size americanExerciseTimeStepsPerYear=24) |
|
| NumericLgmMultiLegOptionEngine (const QuantLib::ext::shared_ptr< LinearGaussMarkovModel > &model, const Real maxTime=50.0, const QuantLib::FdmSchemeDesc scheme=QuantLib::FdmSchemeDesc::Douglas(), const Size stateGridPoints=64, const Size timeStepsPerYear=24, const Real mesherEpsilon=1E-4, const Handle< YieldTermStructure > &discountCurve=Handle< YieldTermStructure >(), const Size americanExerciseTimeStepsPerYear=24) |
|
void | calculate () const override |
|
| NumericLgmMultiLegOptionEngineBase (const QuantLib::ext::shared_ptr< LgmBackwardSolver > &solver, const Handle< YieldTermStructure > &discountCurve=Handle< YieldTermStructure >(), const Size americanExerciseTimeStepsPerYear=24) |
|
◆ NumericLgmMultiLegOptionEngine() [1/2]
NumericLgmMultiLegOptionEngine |
( |
const QuantLib::ext::shared_ptr< LinearGaussMarkovModel > & |
model, |
|
|
const Real |
sy, |
|
|
const Size |
ny, |
|
|
const Real |
sx, |
|
|
const Size |
nx, |
|
|
const Handle< YieldTermStructure > & |
discountCurve = Handle<YieldTermStructure>() , |
|
|
const Size |
americanExerciseTimeStepsPerYear = 24 |
|
) |
| |
Definition at line 523 of file numericlgmmultilegoptionengine.cpp.
529 discountCurve, americanExerciseTimeStepsPerYear) {
530 registerWith(
solver_->model());
532}
QuantLib::ext::shared_ptr< LgmBackwardSolver > solver_
Handle< YieldTermStructure > discountCurve_
NumericLgmMultiLegOptionEngineBase(const QuantLib::ext::shared_ptr< LgmBackwardSolver > &solver, const Handle< YieldTermStructure > &discountCurve=Handle< YieldTermStructure >(), const Size americanExerciseTimeStepsPerYear=24)
◆ NumericLgmMultiLegOptionEngine() [2/2]
NumericLgmMultiLegOptionEngine |
( |
const QuantLib::ext::shared_ptr< LinearGaussMarkovModel > & |
model, |
|
|
const Real |
maxTime = 50.0 , |
|
|
const QuantLib::FdmSchemeDesc |
scheme = QuantLib::FdmSchemeDesc::Douglas() , |
|
|
const Size |
stateGridPoints = 64 , |
|
|
const Size |
timeStepsPerYear = 24 , |
|
|
const Real |
mesherEpsilon = 1E-4 , |
|
|
const Handle< YieldTermStructure > & |
discountCurve = Handle<YieldTermStructure>() , |
|
|
const Size |
americanExerciseTimeStepsPerYear = 24 |
|
) |
| |
Definition at line 534 of file numericlgmmultilegoptionengine.cpp.
541 QuantLib::ext::make_shared<LgmFdSolver>(model, maxTime, scheme, stateGridPoints, timeStepsPerYear, mesherEpsilon),
542 discountCurve, americanExerciseTimeStepsPerYear) {
543 registerWith(
solver_->model());
545}
◆ calculate()
Definition at line 547 of file numericlgmmultilegoptionengine.cpp.
547 {
554
556
561}
const Instrument::results * results_
std::vector< Currency > currency_
QuantLib::ext::shared_ptr< Exercise > exercise_
std::map< std::string, boost::any > additionalResults_
std::vector< bool > payer_
Settlement::Method settlementMethod_
Settlement::Type settlementType_
Swap::arguments * arguments_