/src/main/java/net/finmath/montecarlo/assetderivativevaluation/products/DeltaHedgedPortfolioWithAAD.java
final RandomVariable numeraireAtEvaluationTime = model.getNumeraire( evaluationTime) ;final RandomVariable numeraireToday = model.getNumeraire( 0.0) ;
final RandomVariable numeraireToday = model.getNumeraire ( 0.0 ) ;
if(productToReplicate instanceof BermudanOption) { exerciseTime = ((BermudanOption) productToReplicate).getLastValuationExerciseTime(); } final long timingValuationEnd = System.currentTimeMillis(); final RandomVariable valueOfOption = model.getRandomVariableForConstant(value.getAverage()); final RandomVariable underlyingToday = model.getAssetValue(0.0,0); <extra_id_0> RandomVariable amountOfNumeraireAsset = valueOfOption.div(numeraireToday); RandomVariable amountOfUderlyingAsset = model.getRandomVariableForConstant(0.0); final long timingDerivativeStart = System.currentTimeMillis(); final Map<Long, RandomVariable> gradient = ((RandomVariableDifferentiable)value).getGradient(); final long timingDerivativeEnd = System.currentTimeMillis(); lastOperationTimingValuation = (timingValuationEnd-timingValuationStart) / 1000.0;