#include <qle/pricingengines/numericlgmmultilegoptionengine.hpp>
|
| NumericLgmNonstandardSwaptionEngine (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) |
|
| NumericLgmNonstandardSwaptionEngine (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) |
|
◆ NumericLgmNonstandardSwaptionEngine() [1/2]
NumericLgmNonstandardSwaptionEngine |
( |
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 604 of file numericlgmmultilegoptionengine.cpp.
608 discountCurve, americanExerciseTimeStepsPerYear) {
609 registerWith(
solver_->model());
611}
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)
◆ NumericLgmNonstandardSwaptionEngine() [2/2]
NumericLgmNonstandardSwaptionEngine |
( |
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 613 of file numericlgmmultilegoptionengine.cpp.
618 QuantLib::ext::make_shared<LgmFdSolver>(model, maxTime, scheme, stateGridPoints, timeStepsPerYear, mesherEpsilon),
619 discountCurve, americanExerciseTimeStepsPerYear) {
620 registerWith(
solver_->model());
622}
◆ calculate()
Definition at line 624 of file numericlgmmultilegoptionengine.cpp.
624 {
627 for (Size i = 0; i <
arguments_.payer.size(); ++i) {
629 }
634
636
640}
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_