/src/main/java/net/finmath/marketdata/products/Cap.java
final double[] strikes = { 0.0 };final double maxAccuracy = 0.0;
final double maxAccuracy = 0.0;
final double volatility = volatilitySurface.getValue(model, fixingDate, effektiveStrike, quotingConvention); lowerBound = Math.min(volatility, lowerBound); upperBound = Math.max(volatility, upperBound); } final double value = getValueAsPrice(evaluationTime, model); final int maxIterations = 100; <extra_id_0> final GoldenSectionSearch solver = new GoldenSectionSearch(lowerBound, upperBound); while(solver.getAccuracy() > maxAccuracy && !solver.isDone() && solver.getNumberOfIterations() < maxIterations) { final double volatility = solver.getNextPoint(); final double[] maturities = { 1.0 }; final double[] strikes = { 0.0 }; final double[] volatilities = { volatility };