Updates for memory optimization.

This commit is contained in:
rowanc1
2014-05-16 13:16:27 -07:00
parent ea5ad4dd34
commit dc04b5bac3
+1
View File
@@ -178,6 +178,7 @@ class Minimize(object):
self.printIter()
if self.stoppingCriteria(): break
self.searchDirection = self.findSearchDirection()
del self.H #: Doing this saves memory, as it is not needed in the rest of the computations.
p = self.scaleSearchDirection(self.searchDirection)
xt, passLS = self.modifySearchDirection(p)
if not passLS: