/src/main/java/net/finmath/optimizer/StochasticLevenbergMarquardtAD.java
setValues ( parameters, values ) ;
protected void prepareAndSetValues(final RandomVariable[] parameters, final RandomVariable[] values) throws SolverException { for(int i=0; i<parameters.length; i++) { if(parameters[i] instanceof RandomVariableDifferentiable) { parameters[i] = ((RandomVariableDifferentiable) parameters[i]).getCloneIndependent(); } } <extra_id_0> } @Override protected void prepareAndSetDerivatives(final RandomVariable[] parameters, final RandomVariable[] values, final RandomVariable[][] derivatives) throws SolverException { boolean isParameterRandomVariableDifferentiable = true; for(int parameterIndex=0; parameterIndex<parameters.length && isParameterRandomVariableDifferentiable; parameterIndex++) { isParameterRandomVariableDifferentiable = (parameters[parameterIndex] instanceof RandomVariableDifferentiable) && isParameterRandomVariableDifferentiable;