Skip to content
Prev 390923 / 398506 Next

Possible causes of unexpected behavior

Dear Eric,

I followed your suggestion (A) and I believe I finally got to the cause of
the problem.
It turns out that I was not exporting two environment variables for step
iii. Because this part of the code does not run in parallel, I was simply
ignoring them:
When I do that, the results change for some reason that I still have to
investigate further. What I get now seems coherent (below).

Thank you again for the help.

Best regards,
Arthur

##

-- Results for optim(f) --

Case: qsub, with or without the two variables (same result for both):
- initial guess:
  v = [0 0 0 0 0 0 0 0 0]
  f(v) = 599765.9
- solution:
  v = [0.3529 -6.4176 -0.0271 -0.0066 0.0013 -0.0172 -0.0198 -0.0034
-0.0171]
  f(v) = 14310.68

#
Case: manual without the two variables:
- initial guess:
  v = [0 0 0 0 0 0 0 0 0]
  f(v) = 643417.1
- solution:
  v = [1.5669 -6.2815 -0.0091 -0.0022 0.0004 -0.0059 -0.0066 -0.0014 -0.005]
  f(v) = 19712.85

#
Case: manual with the two variables:
- initial guess:
  v = [0 0 0 0 0 0 0 0 0]
  f(v) = 599765.9
- solution:
  v = [0.3529 -6.4176 -0.0271 -0.0066 0.0013 -0.0172 -0.0198 -0.0034
-0.0171]
  f(v) = 14310.68

Em sex., 4 de mar. de 2022 ?s 11:13, Eric Berger <ericjberger at gmail.com>
escreveu: