/usr/share/doc/octave-optim/html/powell.html is in octave-optim 1.4.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | <html lang="en">
<head>
<title>powell - 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="nelder_005fmead_005fmin.html#nelder_005fmead_005fmin" title="nelder_mead_min">
<link rel="next" href="standalone-d2_005fmin.html#standalone-d2_005fmin" title="standalone d2_min">
<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="powell"></a>
<p>
Next: <a rel="next" accesskey="n" href="standalone-d2_005fmin.html#standalone-d2_005fmin">standalone d2_min</a>,
Previous: <a rel="previous" accesskey="p" href="nelder_005fmead_005fmin.html#nelder_005fmead_005fmin">nelder_mead_min</a>,
Up: <a rel="up" accesskey="u" href="Scalar-optimization.html#Scalar-optimization">Scalar optimization</a>
<hr>
</div>
<h3 class="section">1.11 Direction-set (Powell's) method</h3>
<p><a name="index-powell-15"></a>
<!-- powell ../inst/powell.m -->
<a name="XREFpowell"></a>
<div class="defun">
— Function File: [<var>p</var>, <var>obj_value</var>, <var>convergence</var>, <var>iters</var>, <var>nevs</var>] = <b>powell</b> (<var>f, p0, control</var>)<var><a name="index-powell-16"></a></var><br>
<blockquote><p>Multidimensional minimization (direction-set method). Implements a direction-set (Powell's) method for multidimensional minimization of a function without calculation of the gradient [1, 2]
<h4 class="subheading">Arguments</h4>
<ul>
<li><var>f</var>: name of function to minimize (string or handle), which should accept one input variable (see example for how to pass on additional input arguments)
<li><var>p0</var>: An initial value of the function argument to minimize
<li><var>options</var>: an optional structure, which can be generated by optimset, with some or all of the following fields:
<ul>
<li>MaxIter: maximum iterations (positive integer, or -1 or Inf for unlimited (default))
<li>TolFun: minimum amount by which function value must decrease in each iteration to continue (default is 1E-8)
<li>MaxFunEvals: maximum function evaluations (positive integer, or -1 or Inf for unlimited (default))
<li>SearchDirections: an n*n matrix whose columns contain the initial set of (presumably orthogonal) directions to minimize along, where n is the number of elements in the argument to be minimized for; or an n*1 vector of magnitudes for the initial directions (defaults to the set of unit direction vectors)
</ul>
</ul>
<h4 class="subheading">Examples</h4>
<pre class="example"> y = @(x, s) x(1) ^ 2 + x(2) ^ 2 + s;
o = optimset('MaxIter', 100, 'TolFun', 1E-10);
s = 1;
[x_optim, y_min, conv, iters, nevs] = powell(@(x) y(x, s), [1 0.5], o); %pass y wrapped in an anonymous function so that all other arguments to y, which are held constant, are set
%should return something like x_optim = [4E-14 3E-14], y_min = 1, conv = 1, iters = 2, nevs = 24
</pre>
<h4 class="subheading">Returns:</h4>
<ul>
<li><var>p</var>: the minimizing value of the function argument
<li><var>obj_value</var>: the value of <var>f</var>() at <var>p</var>
<li><var>convergence</var>: 1 if normal convergence, 0 if not
<li><var>iters</var>: number of iterations performed
<li><var>nevs</var>: number of function evaluations
</ul>
<h4 class="subheading">References</h4>
<ol type=1 start=1>
<li>Powell MJD (1964), An efficient method for finding the minimum of a function of several variables without calculating derivatives, <cite>Computer Journal</cite>, 7 :155-162
<li>Press, WH; Teukolsky, SA; Vetterling, WT; Flannery, BP (1992). <cite>Numerical Recipes in Fortran: The Art of Scientific Computing</cite> (2nd Ed.). New York: Cambridge University Press (Section 10.5)
</ol>
</p></blockquote></div>
<!-- -->
</body></html>
|