commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilles (JIRA)" <>
Subject [jira] Commented: (MATH-389) New superclass for "AbstractScalarDifferentiableOptimizer"
Date Tue, 20 Jul 2010 17:42:50 GMT


Gilles commented on MATH-389:

In fact, if we combine both ideas (base class and generics), I think that there is no compatibility

New base generic interface:
interface BaseMultivariateRealOptimizer<T extends MultivariateRealFunction> {
   // ... All common methods

   RealPointValuePair optimize(T func, GoalType goal, double[] start);

And trivially modified (but backward compatible) "MultivariateRealOptimizer" interface:

interface MultivariateRealOptimizer
extends BaseMultivariateRealOptimizer<MultivariateRealFunction> {}

> New superclass for "AbstractScalarDifferentiableOptimizer"
> ----------------------------------------------------------
>                 Key: MATH-389
>                 URL:
>             Project: Commons Math
>          Issue Type: Improvement
>            Reporter: Gilles
>            Assignee: Gilles
>            Priority: Trivial
>             Fix For: 2.2
> In package {{optimization.general}}, I propose to create a new class: "AbstractScalarOptimizer".
 It would contain all code currently in "AbstractScalarDifferentiableOptimizer" that is not
related to derivatives. "AbstractScalarDifferentiableOptimizer" would then extend that class
to add the derivative-related code.
> This new layer in the hierarchy will be the base class for algorithms that do not use

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

View raw message