Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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

$$ l_i\le x_i\le u_i,\qquad i=1,\dots,n, $$

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:

  1. project the initial point into the box;
  2. compute the gradient \(g_k\);
  3. take the negative projected mapping \(d_k=P(x_k-g_k)-x_k\);
  4. run Armijo backtracking along the feasible segment \(x_k+\alpha d_k\), projecting each trial;
  5. stop when \(|G(x_k)|\le\tau_g\).

For step lengths \(\alpha\le1\), box convexity and the projection inequality give

$$ g_k^\top d_k\le-\|d_k\|^2, $$

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}\).

derivative_free::pattern_search polls coordinate directions with a normalized step \(h\):

  1. for each free coordinate \(i\), evaluate \(x\pm h,(u_i-l_i)\) with trials projected into the box;
  2. after a poll, take the best point among all evaluated points;
  3. halve the step, \(h\leftarrow h/2\), when the poll produces no improvement;
  4. 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, reporting Stagnated;
  • 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:

FieldMeaning
x, valueBest evaluated point and its objective
iterationsCompleted poll/simplex iterations
evaluationsObjective calls (gradient counts remain zero)
termination_reasonTargetReached, MaxEvaluations, MaxIterations, Stagnated or Cancelled

BudgetOptions::target_value supplies the target stop: reaching it returns TargetReached early.

Software interface

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.