You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Luc Maisonobe (JIRA)" <ji...@apache.org> on 2011/03/23 21:15:05 UTC

[jira] [Closed] (MATH-393) Method "getResult()" in "MultiStartUnivariateRealOptimizer"

     [ https://issues.apache.org/jira/browse/MATH-393?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luc Maisonobe closed MATH-393.
------------------------------


Closing issue as it was included in version 2.2, which has been released

> Method "getResult()" in "MultiStartUnivariateRealOptimizer"
> -----------------------------------------------------------
>
>                 Key: MATH-393
>                 URL: https://issues.apache.org/jira/browse/MATH-393
>             Project: Commons Math
>          Issue Type: Bug
>            Reporter: Gilles
>            Assignee: Gilles
>            Priority: Trivial
>             Fix For: 2.2
>
>
> In "MultiStartUnivariateRealOptimizer" (package "optimization"), the method "getResult" returns the result of the last run of the "underlying" optimizer; this last result might not be the best one, in which case it will not correspond to the value returned by the "optimize" method. This is confusing and does not seem very useful. I think that "getResult" should be defined as
> {code} 
> public double getResult() {
>     return optima[0];
> }
> {code}
> and similarly
> {code}
> public double getFunctionValue() {
>     return optimaValues[0];
> }
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira