commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilles <gil...@harfang.homelinux.org>
Subject Re: [math] Re: LevenbergMarquardtOptimizer
Date Mon, 29 Apr 2013 11:31:48 GMT
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: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message