Skip to content
Quantoros

If the minimum of a continuous function on [a,b] lies exactly at an endpoint, what should you check after a bounded…

MathematicsLevel: IntermediateScalar optimization

If the minimum of a continuous function on [a,b] lies exactly at an endpoint, what should you check after a bounded local search?

Hints
  • A closed interval includes endpoints.
  • Compare objective values directly.

Answer

Evaluate both endpoints as well as the returned interior candidate. Numerical local search tolerances do not replace explicit closed-interval boundary checks.

Source and licence: SciPy — scalar and multivariate minimization · BSD-3-Clause · answer: Quantoros editorial

Related questions