[ 
https://issues.apache.org/jira/browse/MATH-1656?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17760898#comment-17760898
 ] 

Gilles Sadowski commented on MATH-1656:
---------------------------------------

bq. [...] It is not practical to extends MathRuntimeException that require 
Localizable in constructor.

Quite right.
Eventually we concluded that following the JDK semantics was more useful than a 
shared infrastructure (requiring that all CM exceptions inherit from 
{{MathRuntimeException}}) imposing a maintenance burden for a feature (French 
localization) which no one uses (anymore).

bq. [...] exemple of new style *Exception.

All the new (recent) math-related components/modules try to only expose the 
standard exception types.
See e.g. how 
[{{FastFourierTransform}}|https://github.com/apache/commons-math/blob/master/commons-math-transform/src/main/java/org/apache/commons/math4/transform/FastFourierTransform.java]
 uses 
[{{TransformException}}|https://github.com/apache/commons-math/blob/master/commons-math-transform/src/main/java/org/apache/commons/math4/transform/TransformException.java]
 but the latter is package-private.
The same pattern is at play in "Commons Numbers" (see e.g. the 
[commons-numers-gamma|https://github.com/apache/commons-numbers/tree/master/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma]
 module).
Alternatively, "Commons Geometry" directly throws instances of the standard JDK 
exception in most cases; sometimes, it defines custom types in an "internal" 
package (not to be used by application developers):  See e.g. 
[{{GeometryInternalError}}|https://github.com/apache/commons-geometry/blob/master/commons-geometry-core/src/main/java/org/apache/commons/geometry/core/internal/GeometryInternalError.java]
 in 
[{{WelzlEncloser}}|https://github.com/apache/commons-geometry/blob/master/commons-geometry-enclosing/src/main/java/org/apache/commons/geometry/enclosing/WelzlEncloser.java]
 class.


> Classical multivariate optimizers (gradient descent, Raphson-Newton, BFGS) 
> are missing
> --------------------------------------------------------------------------------------
>
>                 Key: MATH-1656
>                 URL: https://issues.apache.org/jira/browse/MATH-1656
>             Project: Commons Math
>          Issue Type: Wish
>          Components: legacy
>    Affects Versions: 4.0-beta1
>            Reporter: François Laferrière
>            Priority: Major
>              Labels: features
>         Attachments: MATH-1656-GradientDescent-Newton-BFGS-v2.0.zip, 
> MATH-1658-GradientDescent-Newton-BFGS-v3.0.patch, 
> MATH-1658-GradientDescent-Newton-BFGS.patch, Screenshot from 2023-07-10 
> 12-13-38.png
>
>
> Some classical multivariate such as
>  * gradient descent,
>  * Raphson-Newton,
>  * BFGS
> are missing.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to