Why inspect both success and message rather than just the scalar optimizer's x?
MathematicsLevel: IntermediateScalar optimization
Why inspect both success and message rather than just the scalar optimizer's x?
Hints
- A candidate is always returnable.
- Inspect why the algorithm stopped.
Answer
x may be the best candidate when an iteration limit or numerical failure stopped the search. Termination details determine whether convergence was established.
Source and licence: SciPy — scalar and multivariate minimization · BSD-3-Clause · answer: Quantoros editorial