/src/main/java/net/finmath/marketdata/calibration/Solver.java
if( 2 * max( getRuntime( ).availableProcessors( ) , 1)) {
if ( optimizerFactory == null ) {
} } catch (final CloneNotSupportedException e) { throw new SolverException(e); } } }; <extra_id_0> final int maxThreads = Math.min(2 * Math.max(Runtime.getRuntime().availableProcessors(), 1), initialParameters.length); optimizerFactory = new OptimizerFactoryLevenbergMarquardt(maxIterations, calibrationAccuracy, maxThreads); } final Optimizer optimizer = optimizerFactory.getOptimizer(objectiveFunction, initialParameters, lowerBound, upperBound, zeros); optimizer.run(); iterations = optimizer.getIterations();