[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #59659] Unlimited memory usage through octave
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #59659] Unlimited memory usage through octave gui running ode(15s) solver |
Date: |
Mon, 14 Dec 2020 16:20:12 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:83.0) Gecko/20100101 Firefox/83.0 |
Follow-up Comment #3, bug #59659 (project octave):
I've take a much more deeper look in the model helping me in localizing the
error/problem.
I don't think anymore, that the ode solver is the problem -> maybe you can
rename the bug for clarification, it is the used root finding and/or
redefintion of a function handle in every solver time step. Please see that
attached example.
It's really curios...using a predefined/static function handle, the is no
exzessive memory rise during the loop, also with fzero.
Only redefining the function handle inside the loop without any call to fzero
increases the memory over the loop count. The same arise with the subsequent
call of fzero.
#
for k = 1:1e4
disp(k)
# version 1: no memory rise
end
#
fx = @(x) x.^3 + x^2 - 1;
for k = 1:1e4
disp(k)
# version 2: no memory rise
options = optimset('TolX',1e-12);
fzero(fx,[0,5],options);
end
#
for k = 1:1e4
disp(k)
# version 3: memory rise
fx = @(x) x.^3 + x^2 - 1 - k/1e4;
end
#
for k = 1:1e4
disp(k)
# version 4: memory rise
options = optimset('TolX',1e-12);
fx = @(x) x.^3 + x^2 - 1 - k/1e4;
fzero(fx,[0,5],options);
end
#
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?59659>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #59659] Unlimited memory usage through octave gui running ode(15s) solver, anonymous, 2020/12/11
- [Octave-bug-tracker] [bug #59659] Unlimited memory usage through octave gui running ode(15s) solver, Dmitri A. Sergatskov, 2020/12/11
- [Octave-bug-tracker] [bug #59659] Unlimited memory usage through octave gui running ode(15s) solver, John W. Eaton, 2020/12/11
- [Octave-bug-tracker] [bug #59659] Unlimited memory usage through octave gui running ode(15s) solver, anonymous, 2020/12/12
- [Octave-bug-tracker] [bug #59659] Unlimited memory usage through octave gui running ode(15s) solver,
anonymous <=
- [Octave-bug-tracker] [bug #59659] Unlimited memory usage through octave gui running ode(15s) solver, Dmitri A. Sergatskov, 2020/12/14
- [Octave-bug-tracker] [bug #59659] Unlimited memory usage through octave gui running ode(15s) solver, Dmitri A. Sergatskov, 2020/12/14
- [Octave-bug-tracker] [bug #59659] Unlimited memory usage through octave gui running ode(15s) solver, Dmitri A. Sergatskov, 2020/12/14
- [Octave-bug-tracker] [bug #59659] Unlimited memory usage through octave gui running ode(15s) solver, Dmitri A. Sergatskov, 2020/12/14
- [Octave-bug-tracker] [bug #59659] Unlimited memory usage through octave gui running ode(15s) solver, John W. Eaton, 2020/12/14
- [Octave-bug-tracker] [bug #59659] Unlimited memory usage through octave gui running ode(15s) solver, Dmitri A. Sergatskov, 2020/12/14
- [Octave-bug-tracker] [bug #59659] Unlimited memory usage through octave gui running ode(15s) solver, John W. Eaton, 2020/12/14
- [Octave-bug-tracker] [bug #59659] Unlimited memory usage through octave gui running ode(15s) solver, Dmitri A. Sergatskov, 2020/12/14
- [Octave-bug-tracker] [bug #59659] Unlimited memory usage through octave gui running ode(15s) solver, Dmitri A. Sergatskov, 2020/12/15
- [Octave-bug-tracker] [bug #59659] Unlimited memory usage through octave gui running ode(15s) solver, anonymous, 2020/12/15