You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2011/01/06 15:34:46 UTC

[jira] Created: (MATH-466) BaseMultiStartMultivariateRealOptimizer.optimize() can generate NPE if starts < 1

BaseMultiStartMultivariateRealOptimizer.optimize() can generate NPE if starts < 1
---------------------------------------------------------------------------------

                 Key: MATH-466
                 URL: https://issues.apache.org/jira/browse/MATH-466
             Project: Commons Math
          Issue Type: Bug
    Affects Versions: 3.0
            Reporter: Sebb


The Javadoc for BaseMultiStartMultivariateRealOptimizer says that starts can be <= 1; however if it is set to 0, then the optimize() method will try to throw a null exception.

Perhaps starts should be constrained to be at least 1?

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


[jira] Resolved: (MATH-466) BaseMultiStartMultivariateRealOptimizer.optimize() can generate NPE if starts < 1

Posted by "Gilles (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MATH-466?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gilles resolved MATH-466.
-------------------------

       Resolution: Fixed
    Fix Version/s: 3.0

Added preconditions checks in revision 1056391.

> BaseMultiStartMultivariateRealOptimizer.optimize() can generate NPE if starts < 1
> ---------------------------------------------------------------------------------
>
>                 Key: MATH-466
>                 URL: https://issues.apache.org/jira/browse/MATH-466
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 3.0
>            Reporter: Sebb
>            Assignee: Gilles
>             Fix For: 3.0
>
>
> The Javadoc for BaseMultiStartMultivariateRealOptimizer says that starts can be <= 1; however if it is set to 0, then the optimize() method will try to throw a null exception.
> Perhaps starts should be constrained to be at least 1?

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


[jira] Commented: (MATH-466) BaseMultiStartMultivariateRealOptimizer.optimize() can generate NPE if starts < 1

Posted by "Sebb (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MATH-466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12978340#action_12978340 ] 

Sebb commented on MATH-466:
---------------------------

Same issue applies to BaseMultiStartMultivariateVectorialOptimizer

> BaseMultiStartMultivariateRealOptimizer.optimize() can generate NPE if starts < 1
> ---------------------------------------------------------------------------------
>
>                 Key: MATH-466
>                 URL: https://issues.apache.org/jira/browse/MATH-466
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 3.0
>            Reporter: Sebb
>
> The Javadoc for BaseMultiStartMultivariateRealOptimizer says that starts can be <= 1; however if it is set to 0, then the optimize() method will try to throw a null exception.
> Perhaps starts should be constrained to be at least 1?

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


[jira] Commented: (MATH-466) BaseMultiStartMultivariateRealOptimizer.optimize() can generate NPE if starts < 1

Posted by "Luc Maisonobe (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MATH-466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12978473#action_12978473 ] 

Luc Maisonobe commented on MATH-466:
------------------------------------

Yes, the javadoc should be changed and the number of starts should be checked with an error triggered if it is not at least 1.

> BaseMultiStartMultivariateRealOptimizer.optimize() can generate NPE if starts < 1
> ---------------------------------------------------------------------------------
>
>                 Key: MATH-466
>                 URL: https://issues.apache.org/jira/browse/MATH-466
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 3.0
>            Reporter: Sebb
>
> The Javadoc for BaseMultiStartMultivariateRealOptimizer says that starts can be <= 1; however if it is set to 0, then the optimize() method will try to throw a null exception.
> Perhaps starts should be constrained to be at least 1?

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


[jira] Issue Comment Edited: (MATH-466) BaseMultiStartMultivariateRealOptimizer.optimize() can generate NPE if starts < 1

Posted by "Sebb (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MATH-466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12978340#action_12978340 ] 

Sebb edited comment on MATH-466 at 1/6/11 9:36 AM:
---------------------------------------------------

Same issue applies to BaseMultiStartMultivariateVectorialOptimizer and MultiStartUnivariateRealOptimizer

      was (Author: sebb@apache.org):
    Same issue applies to BaseMultiStartMultivariateVectorialOptimizer
  
> BaseMultiStartMultivariateRealOptimizer.optimize() can generate NPE if starts < 1
> ---------------------------------------------------------------------------------
>
>                 Key: MATH-466
>                 URL: https://issues.apache.org/jira/browse/MATH-466
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 3.0
>            Reporter: Sebb
>
> The Javadoc for BaseMultiStartMultivariateRealOptimizer says that starts can be <= 1; however if it is set to 0, then the optimize() method will try to throw a null exception.
> Perhaps starts should be constrained to be at least 1?

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