commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilles (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (MATH-879) "CMAESOptimizer" silently changes invalid input
Date Fri, 19 Oct 2012 14:24:12 GMT

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

Gilles updated MATH-879:
------------------------

    Fix Version/s:     (was: 3.1)
                   4.0

"PopulationSize" created in revision 1400108. Old code deprecated.

Further changes postponed until preparation of 4.0 (see code marked with "XXX").

                
> "CMAESOptimizer" silently changes invalid input
> -----------------------------------------------
>
>                 Key: MATH-879
>                 URL: https://issues.apache.org/jira/browse/MATH-879
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 3.0
>            Reporter: Gilles
>            Assignee: Gilles
>            Priority: Trivial
>             Fix For: 4.0
>
>
> The "lambda" input parameter must be strictly positive. But when it's not the case, an
undocumented default is used (cf. line 526).
> When a precondition is not satisfied, the code must throw an exception.
> Instead of the code unknowingly changing the input, it is rather the documentation that
should suggest a good default.
> This change would allow to make "lambda" a constant (final) field.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message