You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Roman Werpachowski (JIRA)" <ji...@apache.org> on 2010/11/18 12:00:33 UTC
[jira] Created: (MATH-443) Incorrect exception specification in
AbstractLeastSquaresOptimizer.optimize()
Incorrect exception specification in AbstractLeastSquaresOptimizer.optimize()
-----------------------------------------------------------------------------
Key: MATH-443
URL: https://issues.apache.org/jira/browse/MATH-443
Project: Commons Math
Issue Type: Bug
Affects Versions: 2.1, 2.0
Reporter: Roman Werpachowski
Priority: Minor
AbstractLeastSquaresOptimizer.optimize() declares the following exceptions: FunctionEvaluationException, OptimizationException, IllegalArgumentException. However, it also throws MaxIterationsExceededException. I think that instead of OptimizationException, ConvergenceException should be declared.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (MATH-443) Incorrect exception specification in
AbstractLeastSquaresOptimizer.optimize()
Posted by "Luc Maisonobe (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MATH-443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12933535#action_12933535 ]
Luc Maisonobe commented on MATH-443:
------------------------------------
The exception hierarchy is currently completely overhauled, many exceptions have disappeared and a bunch of new exceptions have been created, many of them being unchecked exceptions.
The method you cite now throws only unchecked exceptions.
Could you have a look at the subversion repository and see if either the 2.X branch or the trunk (which is used for work on 3.0 version) do fit your needs ?
Any comments on this ongoing work before we release it is welcome.
> Incorrect exception specification in AbstractLeastSquaresOptimizer.optimize()
> -----------------------------------------------------------------------------
>
> Key: MATH-443
> URL: https://issues.apache.org/jira/browse/MATH-443
> Project: Commons Math
> Issue Type: Bug
> Affects Versions: 2.0, 2.1
> Reporter: Roman Werpachowski
> Priority: Minor
>
> AbstractLeastSquaresOptimizer.optimize() declares the following exceptions: FunctionEvaluationException, OptimizationException, IllegalArgumentException. However, it also throws MaxIterationsExceededException. I think that instead of OptimizationException, ConvergenceException should be declared.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (MATH-443) Incorrect exception specification in
AbstractLeastSquaresOptimizer.optimize()
Posted by "Luc Maisonobe (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MATH-443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12933543#action_12933543 ]
Luc Maisonobe commented on MATH-443:
------------------------------------
I understand.
It has been a looooong debate ;-)
> Incorrect exception specification in AbstractLeastSquaresOptimizer.optimize()
> -----------------------------------------------------------------------------
>
> Key: MATH-443
> URL: https://issues.apache.org/jira/browse/MATH-443
> Project: Commons Math
> Issue Type: Bug
> Affects Versions: 2.0, 2.1
> Reporter: Roman Werpachowski
> Priority: Minor
>
> AbstractLeastSquaresOptimizer.optimize() declares the following exceptions: FunctionEvaluationException, OptimizationException, IllegalArgumentException. However, it also throws MaxIterationsExceededException. I think that instead of OptimizationException, ConvergenceException should be declared.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (MATH-443) Incorrect exception specification in
AbstractLeastSquaresOptimizer.optimize()
Posted by "Roman Werpachowski (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MATH-443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12933538#action_12933538 ]
Roman Werpachowski commented on MATH-443:
-----------------------------------------
My personal preference is for checked exceptions, but I can live with unchecked, as long as they are documented and I know what to catch in my code.
> Incorrect exception specification in AbstractLeastSquaresOptimizer.optimize()
> -----------------------------------------------------------------------------
>
> Key: MATH-443
> URL: https://issues.apache.org/jira/browse/MATH-443
> Project: Commons Math
> Issue Type: Bug
> Affects Versions: 2.0, 2.1
> Reporter: Roman Werpachowski
> Priority: Minor
>
> AbstractLeastSquaresOptimizer.optimize() declares the following exceptions: FunctionEvaluationException, OptimizationException, IllegalArgumentException. However, it also throws MaxIterationsExceededException. I think that instead of OptimizationException, ConvergenceException should be declared.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (MATH-443) Incorrect exception specification in
AbstractLeastSquaresOptimizer.optimize()
Posted by "Luc Maisonobe (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MATH-443?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Luc Maisonobe resolved MATH-443.
--------------------------------
Resolution: Duplicate
this is currently handled in MATH-195, which is nearly done now.
> Incorrect exception specification in AbstractLeastSquaresOptimizer.optimize()
> -----------------------------------------------------------------------------
>
> Key: MATH-443
> URL: https://issues.apache.org/jira/browse/MATH-443
> Project: Commons Math
> Issue Type: Bug
> Affects Versions: 2.0, 2.1
> Reporter: Roman Werpachowski
> Priority: Minor
>
> AbstractLeastSquaresOptimizer.optimize() declares the following exceptions: FunctionEvaluationException, OptimizationException, IllegalArgumentException. However, it also throws MaxIterationsExceededException. I think that instead of OptimizationException, ConvergenceException should be declared.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.