commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric HENON <>
Subject LevenbergMarquardtOptimizer
Date Wed, 17 Apr 2013 08:08:40 GMT

I'm trying to do a non linear
regression using the LevenbergMarquardtOptimizer.

I have copied the proposed Demo code at:

and I get the following error at the java
compilation time: 

"The method optimize(OptimizationData..) in the type AbstractLeastSquaresOptimizer is not
applicable for the arguments (int, QuadraticProblem, double[], double[], double[])"

It seems that the optimize method employed in the Demo code is not
the appropriate one. 

I tried to change the imports, but that does not work.

Any help will be appreciated.

LevenbergMarquardtOptimizer optimizer = new LevenbergMarquardtOptimizer();
PointVectorValuePair optimum = optimizer.optimize(100, problem, problem.calculateTarget(),
weights, initialSolution);

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message