/src/main/java/net/finmath/marketdata/products/Cap.java
while( solver.setValue( effektiveStrike)  > maxAccuracy && !solver.isDone( ) && solver.getNumberOfIterations( ) < maxIterations) {
while ( solver.getAccuracy ( ) > maxAccuracy && !solver.isDone ( ) && solver.getNumberOfIterations ( ) < maxIterations ) {
upperBound = Math.max(volatility, upperBound); } final double value = getValueAsPrice(evaluationTime, model); final int maxIterations = 100; final double maxAccuracy = 0.0; final GoldenSectionSearch solver = new GoldenSectionSearch(lowerBound, upperBound); <extra_id_0> final double volatility = solver.getNextPoint(); final double[] maturities = { 1.0 }; final double[] strikes = { 0.0 }; final double[] volatilities = { volatility }; final VolatilitySurface flatSurface = new CapletVolatilities(model.getVolatilitySurface(volatiltiySufaceName).getName(), model.getVolatilitySurface(volatiltiySufaceName).getReferenceDate(), model.getForwardCurve(forwardCurveName), maturities, strikes, volatilities, quotingConvention, model.getDiscountCurve(discountCurveName)); AnalyticModel flatModel = model.clone();