Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 66136 invoked from network); 23 Mar 2011 20:25:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Mar 2011 20:25:44 -0000 Received: (qmail 92369 invoked by uid 500); 23 Mar 2011 20:25:44 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 92298 invoked by uid 500); 23 Mar 2011 20:25:44 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 92180 invoked by uid 99); 23 Mar 2011 20:25:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Mar 2011 20:25:44 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Mar 2011 20:25:42 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id EC18E4A420 for ; Wed, 23 Mar 2011 20:25:05 +0000 (UTC) Date: Wed, 23 Mar 2011 20:25:05 +0000 (UTC) From: "Luc Maisonobe (JIRA)" To: issues@commons.apache.org Message-ID: <375620858.7097.1300911905963.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Closed] (MATH-421) restarting an ODE solver that has been stopped by an event doesn't work MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MATH-421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Luc Maisonobe closed MATH-421. ------------------------------ Closing issue as it was included in version 2.2, which has been released > restarting an ODE solver that has been stopped by an event doesn't work > ----------------------------------------------------------------------- > > Key: MATH-421 > URL: https://issues.apache.org/jira/browse/MATH-421 > Project: Commons Math > Issue Type: Bug > Affects Versions: 2.1 > Environment: Linux > Reporter: Luc Maisonobe > Assignee: Luc Maisonobe > Priority: Minor > Fix For: 2.2 > > > If an ODE solver is setup with an EventHandler that return STOP when the even is triggered, the integrators stops (which is exactly the expected behavior). > If however the user want to restart the solver from the final state reached at the event with the same configuration (expecting the event to be triggered again at a later time), then the integrator may fail to start. It can get stuck at the previous event. > The occurrence of the bug depends on the residual sign of the g function which is not exactly 0, it depends on the convergence of the first event. > As this use case is fairly general, event occurring less than epsilon after the solver start in the first step should be ignored, where epsilon is the convergence threshold of the event. The sign of the g function should be evaluated after this initial ignore zone, not exactly at beginning (if there are no event at the very beginning g(t0) and g(t0+epsilon) have the same sign, so this does not hurt ; if there is an event at the very beginning, g(t0) and g(t0+epsilon) have opposite signs and we want to start with the second one. Of course, the sign of epsilon depend on the integration direction (forward or backward). -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira