Methods from Constrained extrema
All methods from Constrained extrema.
Optimise subject to one equality constraint
To optimise subject to :
- check where on the constraint and retain any such singular feasible points for separate analysis;
- compute and ;
- solve
- evaluate at every solution;
- compare the values to identify the constrained maximum and minimum.
The system has three unknowns , and in the two-variable case. Symmetry and factorisation often reduce the algebra. Solving the multiplier equations produces candidates; it does not replace checking singular points or comparing objective values.
Minimise a distance through its square
For a fixed point , minimise the squared distance
instead of the distance . Since the square-root function is increasing on non-negative values, the points that minimise or maximise the two objectives are the same.
The squared expression avoids a square root and usually gives a polynomial objective. If the constraint has a visible normal direction, the shortest segment can sometimes be found geometrically before writing the multiplier system.