Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 2179 invoked from network); 29 Sep 2010 19:53:59 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Sep 2010 19:53:59 -0000 Received: (qmail 88685 invoked by uid 500); 29 Sep 2010 19:53:58 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 88439 invoked by uid 500); 29 Sep 2010 19:53:58 -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 88319 invoked by uid 99); 29 Sep 2010 19:53:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Sep 2010 19:53:58 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Sep 2010 19:53:55 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8TJrY5t024733 for ; Wed, 29 Sep 2010 19:53:34 GMT Message-ID: <10182481.467651285790014154.JavaMail.jira@thor> Date: Wed, 29 Sep 2010 15:53:34 -0400 (EDT) From: "Luc Maisonobe (JIRA)" To: issues@commons.apache.org Subject: [jira] Resolved: (MATH-421) restarting an ODE solver that has been stopped by an event doesn't work In-Reply-To: <17462262.465781285784733307.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MATH-421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Luc Maisonobe resolved MATH-421. -------------------------------- Resolution: Fixed Fixed in subversion repository, as of r1002827 for branch 2.X and 1002829 for trunk (3.0) > 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. - You can reply to this email to add a comment to the issue online.