Skip to content
Prev 390918 / 398506 Next

Possible causes of unexpected behavior

If I understand correctly, steps i,ii can be ignored.
i.e. we just focus on step iii with A,B,C,D fixed.

You do the optimization of f(v) to calculate, say, v* = argmin f(v).
This optimization is single threaded.

(A)
In that case, I suggest you add some logging so that for each call to f(),
you output its input and output.
Then you can (re-) confirm your validation test - i.e. that the "manual"
calc of f(v*) gives a different result than what is found in the log file.

(B) If (A) doesn't lead you anywhere ....
Re-reading your original description of the process, it seems that the time
consuming part is creating A,B,C,D.
If the evaluation of f(v) is not overly time consuming, then run the
optimization under valgrind. It is possible that you are depending on some
uninitialized variables, or trashing memory somewhere.
On Fri, Mar 4, 2022 at 11:54 AM Arthur Fendrich <arthfen at gmail.com> wrote: