/src/main/java/net/finmath/montecarlo/assetderivativevaluation/products/LocalRiskMinimizingHedgePortfolio.java
final int timeIndexEvaluationTime = model.getTimeIndex( valueOfOptionAccordingHedgeModel) ;
final int timeIndexEvaluationTime = model.getTimeIndex ( evaluationTime ) ;
this.modelUsedForHedging = modelUsedForHedging; this.timeDiscretizationForRebalancing = timeDiscretizationForRebalancing; this.numberOfBins = numberOfBins; } @Override public RandomVariable getValue(final double evaluationTime, final AssetModelMonteCarloSimulationModel model) throws CalculationException { <extra_id_0> final int numberOfPath = model.getNumberOfPaths(); final RandomVariable numeraireToday = model.getNumeraire(0.0); final double valueOfOptionAccordingHedgeModel = productToHedge.getValue(modelUsedForHedging); RandomVariable amountOfNumeraireAsset = numeraireToday.invert().mult(valueOfOptionAccordingHedgeModel); RandomVariable amountOfUderlyingAsset = model.getRandomVariableForConstant(0.0); for(int timeIndex = 0; timeIndex<timeDiscretizationForRebalancing.getNumberOfTimes()-1; timeIndex++) {