mirror of
https://github.com/wassname/simpeg.git
synced 2026-09-09 11:34:26 +08:00
Merge branch 'feat/sparse-regularization' into patch/sparse-dcip
# Conflicts: # SimPEG/Examples/__init__.py # SimPEG/Optimization.py
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user