cubiclinesearch.3.man
来自「COOOL:CWP面向对象最优化库(CWP Object Oriented Op」· MAN 代码 · 共 75 行
MAN
75 行
CUBICLINESEARCH(derived)OPTIMIZATION ALGORITHM CUBICLINESEARCH(derived) Jun 1 15:17NAME CubicLineSearchSYNOPSIS #include <CubicLineSearch.hh> class CubicLineSearch : public LineSearch \fIPublic members\fP CubicLineSearch(ObjectiveFunction*, int); CubicLineSearch(ObjectiveFunction*, int, double); ~CubicLineSearch(); Model<double> search(Model<double>&, Vector<double>&, double, double); Model<long> search(Model<long>&, Vector<double>&, double, double);DESCRIPTION CubicLineSearch() This class implements the efficient line search procedure described in Dennis and Schbabel's book entitled "Numerical Methods for Unconstrained and Nonlinear Equations. The objective is to perform a unidimensional search for a minimum point along a specified direction in a multidimensional space. DESCRIPTION Constructors: CubicLineSearch(ObjectiveFunction*f, int iter, double delta) f: Defines a pointer to the objective function. iter: Maximum number of iterations delta: This parameter is not used by the line search itself. Rather it is used in the numerical computation of the derivatives using centered differences. For example the derivative of f(x) at the point x0 would be given by (f(x0 - delta) - f(x0 + delta) / 2 * delta) Methods: Model search(Model<double>&model0, Vector<double>& direction, double descent, double lambda) Here: model0: Initial model for the line search direction: Search direction descent: dor product of search direction and gradient lambda: This parameter controls the accuraccy of the line search. Lambda = .25 is a good choice. The minimizer along the search direction is returned by the function. CAVEATS Should I say no caveats !? This procedure seems to be fairly robust. It has worked for a fairly broad class of problems from optimization of standard test functons in optimization theory and to hard geophysical problems as stacking power optimization and amplitude seismogram inversion. But we never know ...DEFINED MACROS CUBIC_LINE_SEARCH_HHINCLUDED FILES "LineSearch.hh"SOURCE FILES CubicLineSearch.cc
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?