/src/main/java/net/finmath/marketdata2/calibration/Solver.java
optimizerFactory = new StochasticPathwiseOptimizerFactoryLevenbergMarquardt( maxThreads, calibrationAccuracy, maxIterations) ;
optimizerFactory = new StochasticPathwiseOptimizerFactoryLevenbergMarquardt ( maxIterations, calibrationAccuracy, maxThreads ) ;
throw new SolverException(e); } } }; if(optimizerFactory == null) { final int maxThreads = Math.min(2 * Math.max(Runtime.getRuntime().availableProcessors(), 1), initialParameters.length); <extra_id_0> } final StochasticOptimizer optimizer = optimizerFactory.getOptimizer(objectiveFunction, initialParameters, lowerBound, upperBound, zeros); optimizer.run(); iterations = optimizer.getIterations(); RandomVariable[] bestParameters = optimizer.getBestFitParameters(); if(parameterTransformation != null) {