Merge branch 'feat/sparse-regularization' into patch/sparse-dcip

# Conflicts:
#	SimPEG/Examples/__init__.py
#	SimPEG/Optimization.py
This commit is contained in:
Lindsey Heagy
2016-04-06 14:53:45 -07:00
15 changed files with 2067 additions and 177 deletions
+1
View File
@@ -1003,6 +1003,7 @@ class ProjectedGNCG(BFGS, Minimize, Remember):
# perturb inactive set off of bounds so that they are included in the step
delx = delx + self.stepOffBoundsFact * (rhs_a * dm_i / dm_a)
# Only keep gradients going in the right direction on the active set
indx = ((self.xc<=self.lower) & (delx < 0)) | ((self.xc>=self.upper) & (delx > 0))
delx[indx] = 0.