You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by lu...@free.fr on 2011/04/12 10:51:06 UTC

[math] resetting relative and absolute tolerances in ODE adaptive step size integrators

Hi all,

I have hit a limitation of the current implementation of ODE integrators with adaptive step size. For now, the tolerances that are used to adjust the step size are specified only at construction time and cannot be changed afterwards. However, these tolerances are highly problem-dependent and in fact the dimension of the problem (which is related to the dimension of the vectorial version of the tolerances) is specified only at integration time, not at construction time.

So I consider adding at the top-level hierarchy (abstract class AdaptiveStepsizeIntegrator) a few setters to allow users to change these tolerances after the integrator has been built. It seems the integrators by themselves were not documented as immutable (I first thought they were), so this change is probably harmless.

I am going to open a Jira issue for this.

Any thoughts ?

Luc

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: [math] resetting relative and absolute tolerances in ODE adaptive step size integrators

Posted by Phil Steitz <ph...@gmail.com>.
On 4/12/11 1:51 AM, luc.maisonobe@free.fr wrote:
> Hi all,
>
> I have hit a limitation of the current implementation of ODE integrators with adaptive step size. For now, the tolerances that are used to adjust the step size are specified only at construction time and cannot be changed afterwards. However, these tolerances are highly problem-dependent and in fact the dimension of the problem (which is related to the dimension of the vectorial version of the tolerances) is specified only at integration time, not at construction time.
>
> So I consider adding at the top-level hierarchy (abstract class AdaptiveStepsizeIntegrator) a few setters to allow users to change these tolerances after the integrator has been built. It seems the integrators by themselves were not documented as immutable (I first thought they were), so this change is probably harmless.
>
> I am going to open a Jira issue for this.
>
> Any thoughts ?

One natural thing to consider is to provide the tolerances at
integration time - i.e., to either add the vectors explicitly as
arguments to the integrate method or to create an ODEProblem or
better-named class that encapsulates the DE, tolerances, initial
values and time parameters.

Phil
> Luc
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org