-
Notifications
You must be signed in to change notification settings - Fork 57
/
toms178.html
283 lines (243 loc) · 7.63 KB
/
toms178.html
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
<html>
<head>
<title>
TOMS178 - Minimization by Hooke-Jeeves Direct Search
</title>
</head>
<body bgcolor="#EEEEEE" link="#CC0000" alink="#FF3300" vlink="#000055" >
<h1 align = "center">
TOMS178 <br> Minimization by Hooke-Jeeves Direct Search
</h1>
<hr>
<p>
<b>TOMS178</b>
is a MATLAB library which
uses the Hooke-Jeeves direct search algorithm to seek the minimizing
point of a function F(X) of several variables,
by Arthur Kaupe.
</p>
<p>
The Hooke_Jeeves algorithm does not required the function F(X) to
be differentiable. It does not even require the function to be
continuous, although it should probably only be "weakly discontinuous",
like a step function, with finitely many well-separated jumps. In any
case, the algorithm only examines function values, never derivatives,
remembers the location of the best value encountered, and seeks to
improve this value by a clever pattern search.
</p>
<p>
The user supplies a quantity <b>rho</b>, between 0 and 1, which controls
how cautious or daring the search is, as well as a routine to evaluate the
function, and a few input parameters.
</p>
<p>
A C version of the algorithm, as written by Mark Johnson,
is available at
<a href = "http://www.netlib.org/opt/hooke.c">
http://www.netlib.org/opt/hooke.c</a>
</p>
<p>
Note that <b>fminsearch</b>
is a MATLAB built in command
which minimizes a scalar function of several variables using the
Nelder-Mead algorithm.
</p>
<h3 align = "center">
Licensing:
</h3>
<p>
The computer code and data files described and made available on this web page
are distributed under
<a href = "../../txt/gnu_lgpl.txt">the GNU LGPL license.</a>
</p>
<h3 align = "center">
Languages:
</h3>
<p>
<b>TOMS178</b> is available in
<a href = "../../c_src/toms178/toms178.html">a C version</a> and
<a href = "../../cpp_src/toms178/toms178.html">a C++ version</a> and
<a href = "../../f77_src/toms178/toms178.html">a FORTRAN77 version</a> and
<a href = "../../f_src/toms178/toms178.html">a FORTRAN90 version</a> and
<a href = "../../m_src/toms178/toms178.html">a MATLAB version</a>.
</p>
<h3 align = "center">
Related Data and Programs:
</h3>
<p>
<a href = "../../m_src/asa047/asa047.html">
ASA047</a>,
a MATLAB library which
minimizes a scalar function of several variables using the Nelder-Mead algorithm.
</p>
<p>
<a href = "../../m_src/compass_search/compass_search.html">
COMPASS_SEARCH</a>,
a MATLAB library which
seeks the minimizer of a scalar function of several variables
using compass search, a direct search algorithm that does not use derivatives.
</p>
<p>
<a href = "../../f_src/dqed/dqed.html">
DQED</a>,
a FORTRAN90 library which
solves constrained least squares problems.
</p>
<p>
<a href = "../../m_src/entrust/entrust.html">
ENTRUST</a>,
a MATLAB program which
minimizes a scalar function of several variables using trust region methods.
</p>
<p>
<a href = "../../f_src/minpack/minpack.html">
MINPACK</a>,
a FORTRAN90 library which
solves systems of nonlinear equations, or the least squares minimization of the
residual of a set of linear or nonlinear equations.
</p>
<p>
<a href = "../../m_src/nelder_mead/nelder_mead.html">
NELDER_MEAD</a>,
a MATLAB program which
minimizes a scalar function of multiple variables using the Nelder-Mead algorithm.
</p>
<p>
<a href = "../../f_src/nl2sol/nl2sol.html">
NL2SOL</a>,
a FORTRAN90 library which
implements an adaptive nonlinear least-squares algorithm.
</p>
<p>
<a href = "../../f_src/praxis/praxis.html">
PRAXIS</a>,
a FORTRAN90 library which
minimizes a scalar function of several variables, without derivative information.
</p>
<p>
<a href = "../../f_src/test_nls/test_nls.html">
TEST_NLS</a>,
a FORTRAN90 library which
defines test problems
requiring the least squares minimization of a set of nonlinear functions.
</p>
<p>
<a href = "../../m_src/test_opt/test_opt.html">
TEST_OPT</a>,
a MATLAB library which
defines test problems
requiring the minimization of a scalar function of several variables.
</p>
<p>
<a href = "../../f_src/toms611/toms611.html">
TOMS611</a>,
a FORTRAN90 library which
optimizes a scalar functional of multiple variables.
</p>
<p>
<a href = "../../f77_src/uncmin/uncmin.html">
UNCMIN</a>,
a FORTRAN77 library which
can be used to seek the minimizer of a scalar functional
of multiple variables.
</p>
<h3 align = "center">
Author:
</h3>
<p>
Original Algol version by Arthur Kaupe;
MATLAB version by John Burkardt.
</p>
<h3 align = "center">
Reference:
</h3>
<p>
<ul>
<li>
M Bell, Malcolm Pike,<br>
Remark on Algorithm 178: Direct Search,<br>
Communications of the ACM,<br>
Volume 9, Number 9, September 1966, page 684.
</li>
<li>
Robert Hooke, Terry Jeeves,<br>
Direct Search Solution of Numerical and Statistical Problems,<br>
Journal of the ACM,<br>
Volume 8, Number 2, April 1961, pages 212-229.
</li>
<li>
Arthur Kaupe,<br>
Algorithm 178:
Direct Search,<br>
Communications of the ACM,<br>
Volume 6, Number 6, June 1963, page 313.
</li>
<li>
FK Tomlin, LB Smith,<br>
Remark on Algorithm 178: Direct Search,<br>
Communications of the ACM,<br>
Volume 12, Number 11, November 1969, page 637-638.
</li>
</ul>
</p>
<h3 align = "center">
Source Code:
</h3>
<p>
<ul>
<li>
<a href = "best_nearby.m">best_nearby.m</a>,
searches nearby points for a lower function value.
</li>
<li>
<a href = "hooke.m">hooke.m</a>,
seeks the minimum of a scalar function of several variables using
the Hooke-Jeeves algorithm.
</li>
<li>
<a href = "timestamp.m">timestamp.m</a>,
returns the YMDHMS date as a timestamp.
</li>
</ul>
</p>
<h3 align = "center">
Examples and Tests:
</h3>
<p>
<ul>
<li>
<a href = "toms178_test.m">toms178_test.m</a>, the sample calling program;
</li>
<li>
<a href = "toms178_test01.m">toms178_test01.m</a>,
tests HOOKE on the Rosenbrock function.
</li>
<li>
<a href = "toms178_test02.m">toms178_test02.m</a>,
tests HOOKE on the Woods function.
</li>
<li>
<a href = "rosenbrock.m">rosenbrock.m</a>,
evaluates the Rosenbrock function.
</li>
<li>
<a href = "woods.m">woods.m</a>,
evaluates the Woods function.
</li>
<li>
<a href = "toms178_test_output.txt">toms178_test_output.txt</a>,
the output file.
</li>
</ul>
</p>
<p>
You can go up one level to <a href = "../m_src.html">
the MATLAB source codes</a>.
</p>
<hr>
<i>
Last revised on 12 February 2008.
</i>
<!-- John Burkardt -->
</body>
</html>