Hi.
Thanks Luc for your help.
I modified my code as you recommend (it is given below), but it
doesn't work either.
The error message (at running) is :
Exception in thread "main"
org.apache.commons.math3.exception.MathUnsupportedOperationException:
contrainte
[...]
It is about a contraint ...
Indeed.
[...]
Do you any idea about what goes wrong ?
Yes. The "SimpleBounds" (constraint) is not a parameter of
"LevenbergMarquardtOptimizer";
hence an exception is thrown. Just try to remove this parameter.
That works !
Very hard to guess that this parameter (Bound) is not required
according to the documentation.
Excerpt from
http://commons.apache.org/proper/commons-math/javadocs/api-3.2/org/apache/commons/math3/optim/nonlinear/vector/jacobian/LevenbergMarquardtOptimizer.html
"Constraints are not supported: the call to optimize will throw
MathUnsupportedOperationException if bounds are passed to it."
Would you suggest a better alternative?
Thank you very much Gilles.
I give below the code that works well.
Have a nice week.
Thanks,
Gilles
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]