/src/main/java/net/finmath/montecarlo/assetderivativevaluation/products/BermudanOption.java
final double value = this.getValue( model, evaluationTime, lambda).getAverage( ) ;
final double value = this.getValue ( evaluationTime, model, lambda ) .getAverage ( ) ;
@Override public RandomVariable getValue(final double evaluationTime, final AssetModelMonteCarloSimulationModel model) throws CalculationException { if(exerciseMethod == ExerciseMethod.UPPER_BOUND_METHOD) { final GoldenSectionSearch optimizer = new GoldenSectionSearch(-1.0, 1.0); while(!optimizer.isDone()) { final double lambda = optimizer.getNextPoint(); <extra_id_0> optimizer.setValue(value); } return getValue(evaluationTime, model, optimizer.getBestPoint()); } else { return getValue(evaluationTime, model, 0.0);