Regularization (SimPEG.regularization
)#
If there is one model that has a misfit that equals the desired tolerance, then there are infinitely many other models which can fit to the same degree. The challenge is to find that model which has the desired characteristics and is compatible with a priori information. A single model can be selected from an infinite ensemble by measuring the length, or norm, of each model. Then a smallest, or sometimes largest, member can be isolated. Our goal is to design a norm that embodies our prior knowledge and, when minimized, yields a realistic candidate for the solution of our problem. The norm can penalize variation from a reference model, spatial derivatives of the model, or some combination of these.
WeightedLeastSquares Regularization#
Here we will define regularization of a model, m, in general however, this should be thought of as (m-m_ref) but otherwise it is exactly the same:
Our discrete gradient operator works on cell centers and gives the derivative on the cell faces, which is not where we want to be evaluating this integral. We need to average the values back to the cell-centers before we integrate. To avoid null spaces, we square first and then average. In 2D with ij notation it looks like this:
If we let D_1 be the derivative matrix in the x direction
Where d_1 is the one dimensional derivative:
Recall that this is really a just point wise multiplication, or a diagonal matrix times a vector. When we multiply by something in a diagonal we can interchange and it gives the same results (i.e. it is point wise)
and the transpose also is true (but the sizes have to make sense…):
So R(m) can simplify to:
We will define W_x as:
And then W as a tall matrix of all of the different regularization terms:
Then we can write
The API#
Least Squares Regularizations#
|
Attributes |
|
Small regularization - L2 regularization on the difference between a model and a reference model. |
|
Smooth Regularization. |
|
This base class regularizes on the second spatial derivative, optionally normalized by the base cell size. |
Sparse Regularizations#
We have also implemented several sparse regularizations with a variable norm.
|
The regularization is: |
|
Sparse smallness regularization |
|
Base Class for sparse regularization on first spatial derivatives |
Joint Regularizations#
There are several joint inversion regularizers available
|
The cross-gradient constraint for joint inversions. |
|
The joint total variation constraint for joint inversions. |
|
class similar to regularization.tikhonov.Simple, with a PGIsmallness. |
|
Smallness term for the petrophysically constrained regularization (PGI) with cell_weights similar to the regularization.tikhonov.SimpleSmall class. |
|
The petrophysical linear constraint for joint inversions. |
Base Regularization classes#
|
Regularization Mesh |
|
Base class for regularization. |
|
Base class for the similarity term in joint inversions. |
|
Base class for building up the components of the Sparse Regularization |