finmath / finmath-lib

Mathematical Finance Library: Algorithms and methodologies related to mathematical finance.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Non-vanilla Bermudan Swaption

summepau opened this issue · comments

Hi,
How should I build a Bermudan Option on a general swap in the LMM? For example a swap paying CMS v Libor. The BermudanSwaption class assumes a Fixed/Libor swap.

Thanks

Paul

This can be done using the component in net.finmath.montecarlo.interestrate.products.components.Option and build the product from individual components. Easier is to just create your own product starting from BermudanSwaption and using an Index like net.finmath.montecarlo.interestrate.products.indices.ConstantMaturitySwaprate (this would be a minimal change to the BermudanSwaption class). Good suggestion, maybe I will add it.