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