几种常见的优化方法ppt课件.ppt
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_05.gif)
《几种常见的优化方法ppt课件.ppt》由会员分享,可在线阅读,更多相关《几种常见的优化方法ppt课件.ppt(29页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、1几种常见的优化方法电子结构几何机构函数稳定点最小点Taylor 展开:V(x) = V(xk) + (x-xk)V(xk) +1/2 (x-xk)2 V(xk)+. 当x是3N个变量的时候, V(xk)成为3Nx1的向量,而V(xk)成为3Nx3N的矩阵,矩阵元如:jixxVHessian21.一阶梯度法 a. Steepest descendentSk = -gk/|gk|directiongradient知道了方向,如何确定步长呢?最常用的是先选择任意步长l,然后在计算中调节kkkkSXXl1用体系的能量作为外界衡量标准,能量升高了则逐步减小步长。robust, but slow最速下降
2、法 3最陡下降法(SD) 4b. Conjugate Gradient (CG) 共轭梯度1kkkkvgvl第k步的方向11kkkkkggggl标量Usually more efficient than SD, also robust不需要外界能量等作为衡量量利用了上一步的信息52。二阶梯度方法这类方法很多,最简单的称为Newton-Raphson方法,而最常用的是Quasi-Newton方法。Newtons method for finding an extreme point isxk+1 = xk - H-1(xk) y(xk)Quasi-Newton方法: use an approxi
3、mation of the inverse Hessian.Form of approximation differs among methods牛顿-拉夫逊法 BFGS methodBroyden-Fletcher-Golfarb-ShannoDFP methodDavidon-Fletcher-Powell6Molecular dynamics 分子动力学分子动力学HistoryIt was not until 1964 that MD was used to study a realistic molecular system, in which the atoms interacted
4、 via a Lennard-Jones potential.After this point, MD techniques developed rapidly toencompass diatomic species, water (which is still thesubject of current research today!), small rigid molecules,flexible hydrocarbons and now even macromoleculessuch as proteins and DNA.These are all examples of conti
5、nuous dynamicalsimulations, and the way in which the atomic motion iscalculated is quite different from that in impulsivesimulations containing hard-core repulsions.7What can we do with MD Calculate equilibrium configurational properties in a similarfashion to MC. Study transport properties (e.g. me
6、an-squared displacement anddiffusion coefficients). MD in the NVT, NpT and NpH ensembles The united atom approximation Constraint dynamics and SHAKE Rigid body dynamics Multiple time step algorithmsExtend the basic MD algorithm8Impulsive molecular dynamics1.Dynamics of perfectly hard particles can b
7、e solved exactly, but process becomes involved for many part (N-body problem). 2.Can use a numerical scheme that advances the system forward in time until a collision occurs. 3.Velocities of colliding particles (usually a pair!) then recalculated and system put into motion again. 4. Simulation proce
8、eds by fits and starts, with a mean time between collisions related to the average kinetic energy of the particles. 5.Potentially very efficient algorithm, but collisions between particles of complex shape are not easy to solve, and cannot be generalised to continuous potentials. 9Continuous time mo
9、lecular dynamics1. By calculating the derivative of a macromolecular forcefield, we can find the forces on each atomas a function of its position.2. Require a method of evolving the positions of the particles in space and time to produce a true dynamical trajectory.3. Standard technique is to solve
10、Newtons equations ofmotion numerically, using some finite difference scheme,which is known as integration.4. This means that we advance the system by some smalltime step t, recalculate the forces and velocities, and thenrepeat the process iteratively.5. Provided t is small enough, this produces an a
11、cceptable approximate solution to the continuous equations of motion.10Example of integrator for MD simulation One of the most popular and widely used integrators isthe Verlet leapfrog method: positions and velocities ofparticles are successively leap-frogged over each otherusing accelerations calcu
12、lated from force field. The Verlet scheme has the advantage of high precision(of order t4), which means that a longer time step canbe used for a given level of fluctuations. The method also enjoys very low drift, provided anappropriate time step and force cut-off are used.r(t+D Dt)=r(t)+v(t+D Dt/2)D
13、 Dtv(t+D Dt/2)=v(t-D Dt/2)+a(t+D Dt/2)D Dt11Other integrators for MD simulations Although the Verlet leapfrog method is not particularlyfast, this is relatively unimportant because the timerequired for integration is usually trivial in comparison tothe time required for the force calculations. The m
14、ost important concern for an integrator is that itexhibits low drift, i.e. that the total energy fluctuates aboutsome constant value. A necessary (but not sufficient)condition for this is that it is symplectic. Crudely speaking, this means that it should be timereversible (like Newtons equations), i
15、.e. if we reverse themomenta of all particles at a given instant, the systemshould trace back along its previous trajectory.12Other integrators for MD simulations The Verlet method is symplectic, but methods such aspredictor-corrector schemes are not. Non-symplectic methods generally have problems w
16、ithlong term energy conservation. Having achieved low drift, would also like the energyfluctuations for a given time step to be as low as possible. Always desirable to use the largest time step possible. In general, the trajectories produced by integration willdiverge exponentially from their true c
17、ontinuous paths dueto the Lyapunov instability. However, this does not concern us greatly, as the thermalsampling is unaffected expectation values unchanged.13Choosing the correct time step 1. The choice of time step is crucial: too short and phase space is sampled inefficiently, too long and the en
18、ergy will fluctuate wildly and the simulation may become catastrophically unstable (“blow up”). 2. The instabilities are caused by the motion of atoms being extrapolated into regions where the potential energy is prohibitively high (e.g. atoms overlapping). 3. A good rule of thumb is that when simul
19、ating an atomic fluid, the time step should be comparable to the mean time between collisions (about 5 fs for Ar at 298K). 4. For flexible molecules, the time step should be an order of magnitude less than the period of the fastest motion (usually bond stretching: CH around 10 fs so use 1 fs).14For
20、classic MD, there could be many tricks to speed up calculations, all centering around reducing the effort involved in the calculation of the interatomic forces, as this is generally much more time-consuming than integration.For example1. Truncate the long-range forces: charge-charge, charge-dipole2.
21、 Look-up tablesFor first principles MD, as forces are evaluated from quantum mechanics, we are only concerned with the time-step.15Because the interactions are completely elastic andpairwise acting, both energy and momentum areconserved. Therefore, MD naturally samples from themicrocanonical or NVE
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 常见 优化 方法 ppt 课件
![提示](https://www.taowenge.com/images/bang_tan.gif)
限制150内