2006-09-22 00:22:34 +08:00
|
|
|
<HTML>
|
2010-05-07 23:11:21 +08:00
|
|
|
<CENTER><A HREF = "http://lammps.sandia.gov">LAMMPS WWW Page</A> - <A HREF = "Manual.html">LAMMPS Documentation</A> - <A HREF = "Section_commands.html#comm">LAMMPS Commands</A>
|
2006-09-22 00:22:34 +08:00
|
|
|
</CENTER>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<HR>
|
|
|
|
|
|
|
|
<H3>min_style command
|
|
|
|
</H3>
|
|
|
|
<P><B>Syntax:</B>
|
|
|
|
</P>
|
|
|
|
<PRE>min_style style
|
|
|
|
</PRE>
|
2010-06-04 08:19:53 +08:00
|
|
|
<UL><LI>style = <I>cg</I> or <I>hftn</I> or <I>sd</I>
|
2006-09-22 00:22:34 +08:00
|
|
|
</UL>
|
|
|
|
<P><B>Examples:</B>
|
|
|
|
</P>
|
|
|
|
<PRE>min_style cg
|
2010-06-04 08:19:53 +08:00
|
|
|
min_style hftn
|
2006-09-22 00:22:34 +08:00
|
|
|
</PRE>
|
|
|
|
<P><B>Description:</B>
|
|
|
|
</P>
|
|
|
|
<P>Choose a minimization algorithm to use when a <A HREF = "minimize.html">minimize</A>
|
|
|
|
command is performed.
|
|
|
|
</P>
|
2010-06-04 08:19:53 +08:00
|
|
|
<P>Style <I>cg</I> is the Polak-Ribiere version of the conjugate gradient (CG)
|
|
|
|
algorithm. At each iteration the force gradient is combined with the
|
|
|
|
previous iteration information to compute a new search direction
|
|
|
|
perpendicular (conjugate) to the previous search direction. The PR
|
|
|
|
variant affects how the direction is chosen and how the CG method is
|
|
|
|
restarted when it ceases to make progress. The PR variant is thought
|
|
|
|
to be the most effective CG choice.
|
2006-09-22 00:22:34 +08:00
|
|
|
</P>
|
2009-09-29 22:10:23 +08:00
|
|
|
<P>Style <I>hftn</I> is a Hessian-free truncated Newton algorithm. At each
|
|
|
|
iteration a quadratic model of the energy potential is solved by a
|
|
|
|
conjugate gradient inner iteration. The Hessian (second derivatives)
|
|
|
|
of the energy is not formed directly, but approximated in each
|
|
|
|
conjugate search direction by a finite difference directional
|
|
|
|
derivative. When close to an energy minimum, the algorithm behaves
|
|
|
|
like a Newton method and exhibits a quadratic convergence rate to high
|
2010-06-04 08:19:53 +08:00
|
|
|
accuracy. In most cases the behavior of <I>hftn</I> is similar to <I>cg</I>,
|
2009-09-29 22:10:23 +08:00
|
|
|
but it offers another minimizer alternative if <I>cg</I> seems to perform
|
2010-06-04 08:19:53 +08:00
|
|
|
poorly. This style is not affected by the
|
|
|
|
<A HREF = "min_modify.html">min_modify</A> command.
|
2009-09-29 22:10:23 +08:00
|
|
|
</P>
|
2006-09-22 00:22:34 +08:00
|
|
|
<P>Style <I>sd</I> is a steepest descent algorithm. At each iteration, the
|
2008-04-15 05:37:10 +08:00
|
|
|
search direction is set to the downhill direction corresponding to the
|
2010-06-04 08:19:53 +08:00
|
|
|
force vector (negative gradient of energy). Typically, steepest
|
|
|
|
descent will not converge as quickly as CG, but may be more robust in
|
|
|
|
some situations.
|
2006-09-22 00:22:34 +08:00
|
|
|
</P>
|
|
|
|
<P><B>Restrictions:</B> none
|
|
|
|
</P>
|
|
|
|
<P><B>Related commands:</B>
|
|
|
|
</P>
|
|
|
|
<P><A HREF = "min_modify.html">min_modify</A>, <A HREF = "minimize.html">minimize</A>
|
|
|
|
</P>
|
|
|
|
<P><B>Default:</B>
|
|
|
|
</P>
|
|
|
|
<PRE>min_style cg
|
|
|
|
</PRE>
|
|
|
|
</HTML>
|