Hi Thomas,
Thank you for your help, it worked but uncovered a new problem. I am doing
the ill conditioned example in the test subdirectory of the src. I can make
a new instance of the NonLinearConjugateGradientOptimizer Class as:
NonLinearConjugateGradientOptimizer optimizer = new
NonLinearConjugateGradientOptimizer(NonLinearConjugateGradientOptimizer.Formula.POLAK_RIBIERE,
new SimpleValueChecker(1e-13, 1e-13), new BrentSolver(1e-15, 1e-15));
However, on the next line, when I try to use the optimize method I get
another error:
PointValuePair optimum1 =
optimizer.optimize(200, problem, GoalType.MINIMIZE, new
double[] { 0, 1, 2, 3 });
java: no suitable method found for
optimize(int,Regularizers.LinearProblem,org.apache.commons.math3.optim.nonlinear.scalar.GoalType,double[])
method
org.apache.commons.math3.optim.nonlinear.scalar.gradient.NonLinearConjugateGradientOptimizer.optimize(org.apache.commons.math3.optim.OptimizationData...)
is not applicable
(argument type int does not conform to vararg element type
org.apache.commons.math3.optim.OptimizationData)
Should 200 be a MaxEval object?
Thanks,
Rob
--
View this message in context:
http://apache-commons.680414.n4.nabble.com/Conjugate-Gradient-Math-3-2-tp4657021p4657068.html
Sent from the Commons - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]