8. Bounded and Derivative-Free Local Search
This chapter covers three local methods on finite boxes: projected gradient (reads gradients), coordinate pattern search and Nelder–Mead simplex (read objective values). All three keep every trial point feasible.
8.1 Boxes and projection
The constraints are
with finite ordered endpoints; \(l_i=u_i\) denotes a fixed coordinate. Section 1.3 defines the projection and gradient mapping.
Bounds construction checks:
- a nonempty dimension with matching endpoint lengths;
- finite endpoints, each lower bound at most its upper bound, and finite widths;
- normalized coordinates \(u_i=(x_i-l_i)/(u_i-l_i)\) for random sampling, with fixed coordinates normalized to 0.
8.2 Projected gradient
The iteration of bounded::projected_gradient:
- project the initial point into the box;
- compute the gradient \(g_k\);
- take the negative projected mapping \(d_k=P(x_k-g_k)-x_k\);
- run Armijo backtracking along the feasible segment \(x_k+\alpha d_k\), projecting each trial;
- stop when \(|G(x_k)|\le\tau_g\).
For step lengths \(\alpha\le1\), box convexity and the projection inequality give
so backtracking on the segment provides sufficient decrease. Fixed coordinates have zero mapping component and retain their value.
Defaults follow Options: Armijo initial step 1, contraction 0.5, \(c_1=0.2\), 60 trials; gradient tolerance \(10^{-6}\).
8.3 Coordinate pattern search
derivative_free::pattern_search polls coordinate directions with a normalized step \(h\):
- for each free coordinate \(i\), evaluate \(x\pm h,(u_i-l_i)\) with trials projected into the box;
- after a poll, take the best point among all evaluated points;
- halve the step, \(h\leftarrow h/2\), when the poll produces no improvement;
- stop when \(h\le\tau_{\text{step}}\) or every coordinate is fixed, reporting
Stagnated.
Defaults: initial_step=0.1, step_tolerance=1e-8, max_iterations=2000, objective budget 10000. Working vectors use \(O(n)\).
The mesh-contraction report records where the step sequence stopped; gradient methods supply the stationary-point test.
8.4 Nelder–Mead simplex
derivative_free::nelder_mead maintains a simplex with \(n+1\) vertices:
- vertices sorted by objective value;
- reflection coefficient 1, expansion 2, contraction 1/2, shrink 1/2;
- every new vertex is projected into the box; fixed coordinates leave the simplex construction;
- stop when the normalized diameter drops below
step_tolerance, reportingStagnated; - if the budget runs out during initialization or shrink, return the best valid point.
Simplex storage is \(O(n^2)\). Boundary projection can flatten the simplex at a boundary, and the diameter test then yields a stagnation report.
8.5 Reports and budget
Both derivative-free methods return derivative_free::Solution:
| Field | Meaning |
|---|---|
x, value | Best evaluated point and its objective |
iterations | Completed poll/simplex iterations |
evaluations | Objective calls (gradient counts remain zero) |
termination_reason | TargetReached, MaxEvaluations, MaxIterations, Stagnated or Cancelled |
BudgetOptions::target_value supplies the target stop: reaching it returns TargetReached early.
Software interface
bounded::projected_gradientandBounds: see chapter 16 and chapter 21.derivative_free::{pattern_search, nelder_mead, Options}: see chapter 17.- The
SearchTerminationenum: see chapter 20. - API pages (docs.rs):
projected_gradient,Bounds.
References
- D. P. Bertsekas, Nonlinear Programming, 2nd ed., 1999, Chapter 2 (gradient projection).
- J. A. Nelder, R. Mead, “A simplex method for function minimization,” Computer Journal 7 (1965), 308–313.
- R. P. Brent, Algorithms for Minimization without Derivatives, 1973.