[
https://issues.apache.org/jira/browse/MATH-879?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gilles resolved MATH-879.
-------------------------
Resolution: Fixed
Probably fixed some time ago, as there is no more 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 was sent by Atlassian JIRA
(v6.3.4#6332)