You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Dennis Hendriks (JIRA)" <ji...@apache.org> on 2011/06/10 12:44:59 UTC

[jira] [Created] (MATH-586) Allow using a custom root-finding algorithm to detect state events

Allow using a custom root-finding algorithm to detect state events
------------------------------------------------------------------

                 Key: MATH-586
                 URL: https://issues.apache.org/jira/browse/MATH-586
             Project: Commons Math
          Issue Type: Improvement
    Affects Versions: 3.0
         Environment: n/a
            Reporter: Dennis Hendriks
             Fix For: 3.0


When using an ODEIntegrator, event handlers can be added. The event handlers result in the construction of an EventState instance. Internally, that class uses a hard-coded instance of BrentSolver as root-finding algorithm. It should be possible to provide a custom root-finding algorithm to detect state events.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (MATH-586) Allow using a custom root-finding algorithm to detect state events

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

Dennis Hendriks updated MATH-586:
---------------------------------

    Attachment: custom_solver_for_state_events.patch

Proposed patch for this issue.

> Allow using a custom root-finding algorithm to detect state events
> ------------------------------------------------------------------
>
>                 Key: MATH-586
>                 URL: https://issues.apache.org/jira/browse/MATH-586
>             Project: Commons Math
>          Issue Type: Improvement
>    Affects Versions: 3.0
>         Environment: n/a
>            Reporter: Dennis Hendriks
>              Labels: patch
>             Fix For: 3.0
>
>         Attachments: custom_solver_for_state_events.patch
>
>
> When using an ODEIntegrator, event handlers can be added. The event handlers result in the construction of an EventState instance. Internally, that class uses a hard-coded instance of BrentSolver as root-finding algorithm. It should be possible to provide a custom root-finding algorithm to detect state events.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (MATH-586) Allow using a custom root-finding algorithm to detect state events

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

Luc Maisonobe resolved MATH-586.
--------------------------------

    Resolution: Fixed

Patch applied (it was almost perfect!)

Solved in subversion repository as of r1135726.

Thanks for the report and for the patch

> Allow using a custom root-finding algorithm to detect state events
> ------------------------------------------------------------------
>
>                 Key: MATH-586
>                 URL: https://issues.apache.org/jira/browse/MATH-586
>             Project: Commons Math
>          Issue Type: Improvement
>    Affects Versions: 3.0
>         Environment: n/a
>            Reporter: Dennis Hendriks
>              Labels: patch
>             Fix For: 3.0
>
>         Attachments: custom_solver_for_state_events.patch, custom_solver_for_state_events2.patch
>
>
> When using an ODEIntegrator, event handlers can be added. The event handlers result in the construction of an EventState instance. Internally, that class uses a hard-coded instance of BrentSolver as root-finding algorithm. It should be possible to provide a custom root-finding algorithm to detect state events.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (MATH-586) Allow using a custom root-finding algorithm to detect state events

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

Dennis Hendriks updated MATH-586:
---------------------------------

    Attachment: custom_solver_for_state_events2.patch

Proposed patch for this issue (2nd version, fixed method parameter documentation).

> Allow using a custom root-finding algorithm to detect state events
> ------------------------------------------------------------------
>
>                 Key: MATH-586
>                 URL: https://issues.apache.org/jira/browse/MATH-586
>             Project: Commons Math
>          Issue Type: Improvement
>    Affects Versions: 3.0
>         Environment: n/a
>            Reporter: Dennis Hendriks
>              Labels: patch
>             Fix For: 3.0
>
>         Attachments: custom_solver_for_state_events.patch, custom_solver_for_state_events2.patch
>
>
> When using an ODEIntegrator, event handlers can be added. The event handlers result in the construction of an EventState instance. Internally, that class uses a hard-coded instance of BrentSolver as root-finding algorithm. It should be possible to provide a custom root-finding algorithm to detect state events.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira