Issue 23737 - Iterations calculates wrong result
Summary: Iterations calculates wrong result
Status: CLOSED DUPLICATE of issue 956
Alias: None
Product: Calc
Classification: Application
Component: code (show other issues)
Version: OOo 1.1
Hardware: All Linux, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: ooo
QA Contact: issues@sc
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-19 21:56 UTC by dagnygren
Modified: 2004-01-27 12:28 UTC (History)
1 user (show)

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


Attachments
Try changing the transport cost here and check the selling price... (7.63 KB, application/octet-stream)
2003-12-19 21:58 UTC, dagnygren
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description dagnygren 2003-12-19 21:56:01 UTC
I have a business application calculating selling prices for certain items 
using iteration. 
I have been using oleo so far, but now thought I would transfer to scalc. 
But the iterations doesn't work any more as in oleo. 
 
I narrowed down the problem to a very small example but I couldn't find a 
place to insert this example on this page. 
 
The dangerous thing is that the result is clearly wrong.
Comment 1 dagnygren 2003-12-19 21:58:34 UTC
Created attachment 12038 [details]
Try changing the transport cost here and check the selling price...
Comment 2 frank 2004-01-07 14:31:03 UTC
Hi Peter,

please have a look.

Frank
Comment 3 peter.junge 2004-01-23 16:08:55 UTC
Hi,
after a recalculation (SHIFT+CTRL+F9) the results are as expected. Adjusting
menu->tools->options...->spreadsheet->culcalte->iterative references->minimun
change to 0.01 also seems to resolve the issue.
Best regards, Peter
Comment 4 dagnygren 2004-01-23 20:26:37 UTC
No, 
changing the minimum change to 0.01 doesn't make it work! 
It still needs the recalc command repeated (many times) until the value 
settles down to the correct one. 
When iterations are on, the recalc should be automatic and really 
do the calculation until nothing changes more that the minimum change. 
At least here that doesn't happen. 
The iteration process stops too early. 
Comment 5 peter.junge 2004-01-26 12:03:28 UTC
> changing the minimum change to 0.01 doesn't make it work!
How many steps are configured?
Comment 6 dagnygren 2004-01-26 13:49:14 UTC
First tried with 1000 (default) then with 1000000. 
Still doesn't work. 
If you do the change I mentioned together with the example you notice that 
changing the transport costs only will not change the sell price at all, 
until you press recalc, and even then you have to press recalc many times 
before you get tha right result. 
 
If this doesn't do the same for you, could it have something to do with the locale 
used? 
I am using a locale where the decimal point is a "," ?? 
 
Comment 7 peter.junge 2004-01-26 14:50:56 UTC
Well,
when I open the attached bugdoc I also need two recalcs to ,get all the expected
results. Changing the settings in tools->options does not eliminate all problems
on windows 2000.

@Eike: What do you think about this issue? Is it maybe duplicate to SO internal
ID: 86392?

Peter
Comment 8 ooo 2004-01-27 12:24:51 UTC
Peter,

This is not related to #86392# at all. But it is the same effect as in the
second part of issue 956, the minimum change test isn't applied to all formula
cells involved in the circular calculation, but only to the injecting formula cell.

Btw: would have been helpful if the description stated what exactly is
considered wrong in the calculation, namely the 0.02 divergence of the interim
values in cells I15:I16, as the overall calculation shows no error.

Resolving as dupe of issue 956.

Eike


*** This issue has been marked as a duplicate of 956 ***
Comment 9 ooo 2004-01-27 12:28:05 UTC
Close dupe.