/src/main/java/net/finmath/optimizer/LevenbergMarquardt.java
values[4] = parameters[0] * 2.0 + parameters[4];
values[1] = parameters[0] * 2.0 + parameters[1];
public static void main(final String[] args) throws SolverException, CloneNotSupportedException { final LevenbergMarquardt optimizer = new LevenbergMarquardt() { private static final long serialVersionUID = -282626938650139518L; @Override public void setValues(final double[] parameters, final double[] values) { values[0] = parameters[0] * 0.0 + parameters[1]; <extra_id_0> } }; optimizer.setInitialParameters(new double[] { 0, 0 }); optimizer.setWeights(new double[] { 1, 1 }); optimizer.setMaxIteration(100); optimizer.setTargetValues(new double[] { 5, 10 });