1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136
|
<html lang="en">
<head>
<title>standalone d2_min - optim_doc</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="optim_doc">
<meta name="generator" content="makeinfo 4.13">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Scalar-optimization.html#Scalar-optimization" title="Scalar optimization">
<link rel="prev" href="powell.html#powell" title="powell">
<link rel="next" href="bfgsmin.html#bfgsmin" title="bfgsmin">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<!--
Additional documentation for the optim package for Octave.
Copyright (C) <Olaf Till <i7tiol@t-online.de>>
You can redistribute this documentation and/or modify it under the terms
of the GNU General Public License as published by the Free Software
Foundation; either version 3 of the License, or (at your option) any
later version.
This documentation is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
Public License for more details.
You should have received a copy of the GNU General Public License along
with this documentation; if not, see <http://www.gnu.org/licenses/>.-->
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
pre.display { font-family:inherit }
pre.format { font-family:inherit }
pre.smalldisplay { font-family:inherit; font-size:smaller }
pre.smallformat { font-family:inherit; font-size:smaller }
pre.smallexample { font-size:smaller }
pre.smalllisp { font-size:smaller }
span.sc { font-variant:small-caps }
span.roman { font-family:serif; font-weight:normal; }
span.sansserif { font-family:sans-serif; font-weight:normal; }
--></style>
</head>
<body>
<div class="node">
<a name="standalone-d2_min"></a>
<a name="standalone-d2_005fmin"></a>
<p>
Next: <a rel="next" accesskey="n" href="bfgsmin.html#bfgsmin">bfgsmin</a>,
Previous: <a rel="previous" accesskey="p" href="powell.html#powell">powell</a>,
Up: <a rel="up" accesskey="u" href="Scalar-optimization.html#Scalar-optimization">Scalar optimization</a>
<hr>
</div>
<h3 class="section">1.12 Unconstrained Newton-like minimization, standalone function</h3>
<p><a name="index-standalone-d2_005fmin-17"></a>
This function features a Newton-like algorithm. The user has to supply a
Hessian function. No constraints are honoured.
<p>This function is deprecated. It is now available as a backend for
<code>nonlin_min</code> (see
<a href="nonlin_005fmin.html#nonlin_005fmin">nonlin_min</a>).
<h4 class="subheading">Helptext:</h4>
<p><a name="XREFd2_005fmin"></a>
<pre class="verbatim">[x,v,nev,h,args] = d2_min(f,d2f,args,ctl,code) - Newton-like minimization
Minimize f(x) using 1st and 2nd derivatives. Any function w/ second
derivatives can be minimized, as in Newton. f(x) decreases at each
iteration, as in Levenberg-Marquardt. This function is inspired from the
Levenberg-Marquardt algorithm found in the book "Numerical Recipes".
ARGUMENTS :
f : string : Cost function's name
d2f : string : Name of function returning the cost (1x1), its
differential (1xN) and its second differential or it's
pseudo-inverse (NxN) (see ctl(5) below) :
[v,dv,d2v] = d2f (x).
args : list : f and d2f's arguments. By default, minimize the 1st
or matrix : argument.
ctl : vector : Control arguments (see below)
or struct
code : string : code will be evaluated after each outer loop that
produced some (any) improvement. Variables visible from
"code" include "x", the best parameter found, "v" the
best value and "args", the list of all arguments. All can
be modified. This option can be used to re-parameterize
the argument space during optimization
CONTROL VARIABLE ctl : (optional). May be a struct or a vector of length
---------------------- 5 or less where NaNs are ignored. Default values
are written <value>.
FIELD VECTOR
NAME POS
ftol, f N/A : Stop search when value doesn't improve, as tested by
f > Deltaf/max(|f(x)|,1)
where Deltaf is the decrease in f observed in the last
iteration. <10*sqrt(eps)>
utol, u N/A : Stop search when updates are small, as tested by
u > max { dx(i)/max(|x(i)|,1) | i in 1..N }
where dx is the change in the x that occured in the last
iteration. <NaN>
dtol, d N/A : Stop search when derivative is small, as tested by
d > norm (dv) <eps>
crit, c ctl(1) : Set one stopping criterion, 'ftol' (c=1), 'utol' (c=2)
or 'dtol' (c=3) to the value of by the 'tol' option. <1>
tol, t ctl(2) : Threshold in termination test chosen by 'crit' <10*eps>
narg, n ctl(3) : Position of the minimized argument in args <1>
maxev,m ctl(4) : Maximum number of function evaluations <inf>
maxout,m : Maximum number of outer loops <inf>
id2f, i ctl(5) : 0 if d2f returns the 2nd derivatives, 1 if <0>
it returns its pseudo-inverse.
verbose, v N/A : Be more or less verbose (quiet=0) <0>
</pre>
<!-- -->
</body></html>
|