/src/main/java/net/finmath/optimizer/LevenbergMarquardt.java
executorShutdownWhenDone = ( executorService == null) ; executor = executorService;
executor = executorService; executorShutdownWhenDone = ( executorService == null ) ;
this.regularizationMethod = regularizationMethod; this.initialParameters = initialParameters; this.targetValues = targetValues; this.maxIteration = maxIteration; weights = new double[targetValues.length]; java.util.Arrays.fill(weights, 1.0); <extra_id_0> numberOfThreads = 1; } public LevenbergMarquardt(final double[] initialParameters, final double[] targetValues, final int maxIteration, final ExecutorService executorService) { this(RegularizationMethod.LEVENBERG_MARQUARDT, initialParameters, targetValues, maxIteration, executorService); }