variable metric method automatic gradient yields Indeterminate
- To: mathgroup at smc.vnet.net
- Subject: [mg70397] variable metric method automatic gradient yields Indeterminate
- From: "Chris Chiasson" <chris at chiasson.name>
- Date: Sun, 15 Oct 2006 00:19:39 -0400 (EDT)
A user-defined augmented lagrange multiplier method for NMinimize
drives a (user defined) variable metric method for FindMinimum. The
NMinimize routine ends up creating penalty functions that have
"discontinuous" first order derivatives due to the presence of
functions like Max. At the points of discontinuity in the derivative,
the Indeterminate result usually ends up multiplied by zero. The limit
of the derivative exists.
for example, the function passed to FindMinimum is
its derivative with respect to X is
Notice that when X is zero, the Piecewise returns Indeterminate,
which is multiplied by zero from the nearby Max function. However,
0*Indeterminate is still Indeterminate in Mathematica. When the
derivative is evaluated at X=zero, the answer returned is
Indeterminate. This totally messes up the numerical routine.
the limit of D[func,X] as X->0 is
I am tempted to check the gradient vector for Indeterminate results,
look up the "corresponding" variable (heh, how do I really know which
one is responsible?), and take the limit as that variable approaches
the value I wanted to evaluate at. I don't know how well that will
work in practice.
So, does anyone have any suggestions?
Prev by Date:
Re: how to sum lists of unequal length?
Next by Date:
Previous by thread:
Trace and Wolfram Workbench and Print
Next by thread:
Re: variable metric method automatic gradient yields Indeterminate