Class BarrierOptionHestonModelBoundary

java.lang.Object
net.finmath.finitedifference.assetderivativevaluation.boundaries.BarrierOptionHestonModelBoundary
All Implemented Interfaces:
FiniteDifferenceBoundary

public class BarrierOptionHestonModelBoundary extends Object implements FiniteDifferenceBoundary
Boundary conditions for BarrierOption under the FDMHestonModel.

State variables are assumed to be (S, v), where S is the asset level and v the variance. For knock-out options, Dirichlet conditions are imposed on the barrier side in the asset direction. Variance-direction boundaries are left untouched via StandardBoundaryCondition.none().

The barrier is assumed to coincide with the lower or upper boundary of the asset grid. In-options may still be handled elsewhere by the product logic.

This version uses grid-aware continuation-side spot boundary values, with two targeted exceptions motivated by the remaining Heston outlier cases:

  • for UP_OUT CALL at the lower spot boundary, use none() instead of a hard zero,
  • for DOWN_OUT PUT at the upper spot boundary, use none() instead of a hard zero.
Author:
Alessandro Gnoatto
  • Constructor Details

    • BarrierOptionHestonModelBoundary

      public BarrierOptionHestonModelBoundary(FDMHestonModel model)
      Performs the operation.
      Parameters:
      model - The value.
  • Method Details