commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eric henon <eric.he...@univ-reims.fr>
Subject Re: [math] Re: LevenbergMarquardtOptimizer
Date Mon, 29 Apr 2013 12:19:34 GMT

Le 29 avr. 2013 à 13:31, Gilles a écrit :

> 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?

I didn't see that. It is clear enough. But,
my starting point was:

  http://commons.apache.org/proper/commons-math///javadocs/api-3.2/org/apache/commons/math3/optim/nonlinear/vector/jacobian/LevenbergMarquardtOptimizer.html

where there is no such comment (the sentence "Constraints are not supported:  ... " has disappeared).
I dont' remember where
I took this link on the web ...

Thanks again.
Eric




> 
>> 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
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message