gimli-org / gimli

Geophysical Inversion and Modeling Library :earth_africa:
https://www.pygimli.org
Other
365 stars 133 forks source link

How to modify the objective function? #502

Closed LiuQian19970208 closed 1 year ago

LiuQian19970208 commented 1 year ago

Hello, I want to modify the default objective function of Gauss-Newton inversion, but I don't know how to do it ?

a684cbab76d54ba21993200accfd276

My objective function is as follows baa1b9e66b13099e6cc6bb7cc49f26b data=ert.load('diploe190d.dat') data["err"] = ert.estimateError(data) mgr = ert.ERTManager() inv = mgr.invert(data=data,lam=10,verbose=True) mgr.saveResult() mgr.showResult()

halbmy commented 1 year ago

What are the $p_i$ and $r_i$? Do they depend on the m?

halbmy commented 1 year ago

And what's the relation between $m_1$ and $m_2$?

LiuQian19970208 commented 1 year ago

Yes, I want to perform joint constrained inversion of spontaneous potential data m1 and resistivity data m2. 孙 小

halbmy commented 1 year ago

spontaneous potential data m1 and resistivity data m2

Well, m1 are not the SP and ERT data, but resistivity and current density or something else.

At any rate, the functional is quite a bit more complex and similar to coupling schemes like cross-gradients (e.g. done by Jordi et al., 2020 with pyGIMLi). So you will have to formulate the derivatives and insert them into the inversion framework, in this case I recommend the LSQRInversion where any equations can be added (like in Wagner et al., 2019). I realize that several examples are needed for that.

Jordi, C., Doetsch, J., Günther, T., Schmelzbach, C., Maurer, H. & Robertson, J. (2020): Structural Joint Inversion on Irregular Meshes. Geophys. J. Int. 220(3), 1995-2008, doi:10.1093/gji/ggz550. Wagner, F.M., Mollaret, C., Günther, T., Kemna, A., Hauck, A. (2019): Quantitative imaging of water, ice, and air in permafrost systems through petrophysical joint inversion of seismic refraction and electrical resistivity data. Geophys. J. Int. 219, 1866-1875. doi:10.1093/gji/ggz402.

halbmy commented 1 year ago

Closing as I don't expect any activity now. Adding examples and tutorials for cross-gradients is on the list.