Skip to content
Quantoros

Is minimizing f(x) equivalent to finding f(x)=0?

MathematicsLevel: IntermediateScalar optimization

Is minimizing f(x) equivalent to finding f(x)=0?

Hints
  • Consider f(x)=x²+1.
  • Then consider a crossing root.

Answer

No. A minimum may have nonzero value, and a root need not be a minimum. Use an objective and solver matching the actual task.

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

Related questions