Issue 956 - Iterations referring the last result of the same formula cell don't converge
Summary: Iterations referring the last result of the same formula cell don't converge
Status: ACCEPTED
Alias: None
Product: Calc
Classification: Application
Component: code (show other issues)
Version: 627
Hardware: All All
: P3 Trivial with 8 votes (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
: 23737 34851 75988 78038 (view as issue list)
Depends on:
Blocks:
 
Reported: 2001-05-25 14:43 UTC by issues@www
Modified: 2017-05-20 11:13 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Here's the example file that doesn't work properly. Change the marked values on sheet three to reproduce, you'll need to manually turn on iterations (28.00 KB, application/excel)
2003-12-06 14:52 UTC, issues@www
no flags Details
Examples provided by Max-Ulrich Farber in http://www.openoffice.org/servlets/ReadMsg?msgId=485733&listName=discuss (13.41 KB, application/octet-stream)
2002-12-11 10:54 UTC, ooo
no flags Details
Testcase iterations (76.50 KB, application/vnd.ms-excel)
2007-01-19 15:03 UTC, gercokees
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description issues@www 2001-05-25 14:43:32 UTC
One problem with the way the options are set up the interative solve is turned 
on or off for the application not the specific SS. In Excel the document file 
holds this setting information.

This is important because if you don't realize you have iterative solver on you 
may not catch circular calculations.

One other note the iterative solver has a bug. I have an example illustrating 
if you can point me where to send or up load.
Comment 1 issues@www 2001-05-25 18:37:58 UTC
Created attachment 260 [details]
Here's the example file that doesn't work properly. Change the marked values on sheet three to reproduce, you'll need to manually turn on iterations
Comment 2 peter.junge 2001-05-28 09:16:42 UTC
My bug
Comment 3 ooo 2001-05-28 15:17:39 UTC
Apart from the setting not being imported there are other problems preventing 
the calculation from resulting in the same value as in Excel.
The first cell encountered to have a circular reference is taken as "the 
iterative cell" whose value must change more than the specified epsilon to 
continue iteration. This leads to a premature break of the iteration if more 
than one cell should be considered as "iterative cells" instead like it is the 
case in the attached document. Calculation must continue there until none of the 
involved cells has a value change greater than the epsilon value.
You'll get a similar effect if you press F9 (recalculate) several times after 
which the desired result shows up.
Comment 4 peter.junge 2001-05-28 15:38:26 UTC
two issues:
1. the excel import. gunnar had this on his todo list and finshed import of 
iterations just today.
2. see the comment of eike above. 
Comment 5 gunnar.timm 2001-05-29 08:15:04 UTC
Support for im-/export of iteration settings will go into 633c
Comment 6 ooo 2001-05-29 14:45:05 UTC
yep, it's mine
Comment 7 stx123 2001-08-09 21:34:09 UTC
assigning to correct account
Comment 8 ooo 2001-08-21 11:50:14 UTC
reaccepted..
Comment 9 Unknown 2001-11-08 23:05:53 UTC
changing QA contact from bugs@ to issues@
Comment 10 skiani 2002-10-11 13:42:36 UTC
Hi, appears to be fixed in 643. Well done, thanks!
Comment 11 ooo 2002-12-09 14:14:04 UTC
Target the second part (how the iteration works) to OOo 2.0
Comment 12 ooo 2002-12-11 10:54:24 UTC
Created attachment 4000 [details]
Examples provided by Max-Ulrich Farber in http://www.openoffice.org/servlets/ReadMsg?msgId=485733&listName=discuss
Comment 13 ooo 2003-09-12 11:07:20 UTC
Developer notes: later.
2.0 only if time permits.
Comment 14 peter.junge 2003-09-16 12:28:46 UTC
According to the OpenOffice.org roadmap
(http://tools.openoffice.org/releases) this issue was retargeted to
OOo Later.
Comment 15 ooo 2004-01-27 12:24:35 UTC
*** Issue 23737 has been marked as a duplicate of this issue. ***
Comment 16 frank 2004-10-01 11:32:53 UTC
*** Issue 34851 has been marked as a duplicate of this issue. ***
Comment 17 ooo 2005-03-14 14:02:19 UTC
Btw, the Buy_house_example.xls of the first attachment calculates right as of
SRC680_m85, where CWS "calcer" was integrated.  The examples of Beispiele.zip
(second attachment) refer the very same cell in one formula and add some value,
which of course never converges, therefor the Err523. This is still an issue
compared to the behavior of a competitor's product. Changing summary accordingly.
Comment 18 gercokees 2007-01-02 14:46:35 UTC
This behaviour still keeps me from switsing from ms-office. It would be great to
finaly find a solution for this problem. I think there should be an option in
your tools > options > calc > calculation to select wheter the calculation
should stop at:
    a minimal change of 0,001
  x or
  0 and
    a maximum iteration steps of 100
so the user can make his own choice
Comment 19 gercokees 2007-01-19 15:03:29 UTC
Created attachment 42321 [details]
Testcase iterations
Comment 20 gercokees 2007-01-19 15:04:49 UTC
Created a new test-file.
Go ahead and give it a try.

The sheet is about bending moments and normal forces in a concrete member.
To calculate stresses, iterations are made.
This is not solvable without iterations, unless you are able to solve 3d power
and 4d powered equotations.
Notice when you fill in the numbers -700, -500 or -200 in the blue box, excel
will calculate the solution for you.
Notice that when you try to calculate the sheet with the use of OOo, OOo wil
give an error with the default settings.

(Be sure to set your calculate-options right, with iteration set, and press
recalculate button once or twice)
When set to a number of 1000 calculations and an change of 1,0, filling in the
same numbers a few times, one
will finaly get a good awnser in OOo. Ofcourse this is a long way to go,
compared to excel.
Comment 21 gercokees 2007-04-03 07:38:53 UTC
*** Issue 75988 has been marked as a duplicate of this issue. ***
Comment 22 ooo 2007-04-03 11:57:42 UTC
For completeness: test case of issue 75988 is:
Iteration steps to 1, minimum change to 1.
A2: =IF(A1=1;A2+1;A2)
Change A1 to 1, A2 should display now 1 instead of 2.
Comment 23 gercokees 2007-06-04 12:34:56 UTC
*** Issue 78038 has been marked as a duplicate of this issue. ***
Comment 24 gercokees 2007-06-04 12:36:18 UTC
Testcase from issue 78038:
If the cell A1 contains 1 and if the cells A2 contains =A1+A2 then every time you
press Ctrl + Shift + F9 then it adds 2 to the cell A2 instead of 1.
(In the option menu, the box iteration is, of course, checked)

In Excel it works as expected : it adds 1.
Comment 25 Marcus 2017-05-20 11:13:53 UTC
Reset assigne to the default "issues@openoffice.apache.org".