commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilles (JIRA)" <>
Subject [jira] Created: (MATH-393) Method "getResult()" in "MultiStartUnivariateRealOptimizer"
Date Sun, 25 Jul 2010 00:14:52 GMT
Method "getResult()" in "MultiStartUnivariateRealOptimizer"

                 Key: MATH-393
             Project: Commons Math
          Issue Type: Bug
            Reporter: Gilles
            Assignee: Gilles
            Priority: Trivial

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
public double getResult() {
    return optima[0];
and similarly
public double getFunctionValue() {
    return optimaValues[0];

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message