📄 readme
字号:
GENERAL DESCRIPTIONThis directory contains a MATLAB program to solve a linear inverseproblem using Minimum Relative Entropy Inversion. The code is described inNeupauer R.M. and B. Borchers, A MATLAB Implementation of the MinimumRelative Entropy Method for Linear Inverse Problems, submitted toComputers & Geosciences.LIST OF MATLAB FUNCTIONSThe following files are needed to use the MRE program: mre.m - main function bisection.m - performs the bisection method to calculate the values of the Lagrange multipliers, beta domre.m - mre subroutine that controls the main calculations donewton.m - performs newton's method to calculate the values of the Lagrange multipliers, lambda gensol.m - generates a random solution according to the posterior pdf of the model parameters getfk.m - calculates the value of F (Eq. 14) getjac.m - calculate the value of the Jacobian (Eq. 16) golden.m - performs golden section search in the damped newton method qinv.m - computes the inverse of the posterior cdf of the model parameters rscale.m - performs row scaling snfcn.m - expected value equation used to find values of the Lagrange multipliers, beta (Eq. 3)HOW TO USE THE MRE PROGRAMHow to run mre.m for a general linear inverse problemTo solve a linear inverse problem using the MRE method, run the functionmre.m. The syntax for running the function is:[x,lambda,beta,a,p5,p95]=mre(G,d,upper,lower,expvalue,noise)The INPUTS are:G - G matrix of size N by M (G)d - data vector of length N (d) upper - vector of upper bounds on the model parameters, length M (u)lower - vector of lower bounds on the model parameters, length M (l)expvalue - vector of expected values of the model parameters, length M (s)noise - 2-element row vector of standard deviations of measurement error noise(1) = standard deviation of the additive error (epsilon_a) noise(2) = standard deviation of the multiplicative (epsilon_m)The OUTPUTS are:x = model solution vector of length M (mhat)labmda = vector of Lagrange multpliers, lambda, length Nbeta = vector of Lagrange mulipliers, beta, length Ma = vector a a's, length M (see Section 2)p5 = vector containing the 5th percentile probability level for each element of the model solution vector, length Mp95 = vector containing the 95th percentile probability level for each element of the model solution vector, length MThe user may wish to adjust some parameters in the function 'mre.m'.These parameters are defined on lines 51-59 of mre.m. The parameters are:leftbegin = lower limit of the search region for the bisection methodrightbegin = upper limit of the search region for the bisection methodtolbeta = tolerance used in determining the Lagrange multipliers, betamaxiter = maximum number of iterations used to determine the Lagrange multipliers betatollam = tolerance used in calculating the Lagrange multipliers lambdalamiter = maximum number of iterations used to determine the Lagrange multipliers lambdatolls = tolerance for golden section searchnearzero = value below which an asymptotic approximation is used for a parameter whose absolute value is much smaller than 1large = value above which an asymptotic approximation is used for a parameter whose value is much greater than 1; and also the negative of the value below which an asymptotic approximation is used for a parameter whose value is much smaller than -1HOW TO GENERATE A SINGLE REALIZATION FROM THE MRE OUTPUTTo generate a realization of the model solution based on the output from'mre.m', use the function 'gensol.m'. The syntax for running the function issoln=gensol(G,lower,upper,a,beta)where G, lower, upper, a, and beta are output from 'mre.m' and aredefined above; and soln is the vector containing the realization ofthe model solution.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -