Source scope: §4.1, PDF pages 27. Numerical examples, experiments, added derivations, and practice are teaching supplements unless identified as source results.
The same curve can have different answers
For , minimizing over gives . Over it gives . Over no minimum exists: moving closer to zero always lowers the value, but zero is excluded. The curve alone does not specify the problem.
A cost function, or objective function, is a scalar function of several variables. In machine learning it often measures how poorly a model fits data. The feasible set lists allowed inputs. A problem is unconstrained when is the function’s entire domain; otherwise it is constrained. Constraints can change both the answer and the difficulty of finding it.
Compare nearby points or all points
Let and .
- A local minimum in satisfies for every for some .
- A global minimum in satisfies for every .
- A strict local or global minimum replaces by for all compared .
- Local and global maxima reverse the inequalities.
Strictness excludes equality with other points, not with itself. It makes the minimizer unique within the stated comparison set. A local minimum need not be global. The source assumes optimization over the whole domain when “in ” is omitted and the context does not say otherwise.
Source footnote 8 and boundary clarification. A neighborhood of is an open set containing . For a constrained problem use the relative neighborhood ; it need not be open in the ambient space. This expresses the source’s local comparison while retaining boundary points such as in .
Turn a maximum into a minimum
Maximizing is equivalent to minimizing . Every comparison reverses when multiplied by . The source therefore discusses minimization without losing generality.
At a boundary minimum the gradient may be nonzero. For on , . Later gradient-zero conditions apply to unconstrained interior points with differentiability, not to every feasible minimum.
Transfer
For on , neither a minimum nor a maximum exists. Zero and one are an infimum and a supremum, respectively, but neither is attained. On both extrema exist at the endpoints.
Explore the relationship
Change the feasible set
Does excluding a point remove a minimum even when the curve stays the same?
Preparing interactive controls…