DGS Studio

Optimization

Constrained Optimization

Minimize a sum of lengths subject to a linear constraint.

Constrained Optimization uses minimize sqrt(x^2+1) + sqrt(y^2+9) + sqrt(z^2+16), x+y+z=6 in the single-variable optimization workflow.

Critical points, endpoints, and the difference between an attained extreme and a supremum or infimum are reported exactly when the solver can prove them.

Equation

minimize sqrt(x^2+1) + sqrt(y^2+9) + sqrt(z^2+16), x+y+z=6

Critical points, endpoints, and attained extrema

A single-variable optimization problem asks for the largest or smallest value of a function on an interval. The solver differentiates with the existing derivative routine, solves f'(x)=0, and also keeps points where the derivative does not exist but the function does, such as the corner of abs(x). Every candidate inside the feasible domain is evaluated together with the included endpoints. On a closed bounded interval where the function is continuous, the extreme-value theorem says the absolute maximum and minimum are among those candidates.

An open end is not automatically a maximum or a minimum. If the function only approaches a finite bound, that bound is a supremum or an infimum and the result says it is not attained. Infinity is never treated as a point that is attained. A constant function is both an absolute maximum and an absolute minimum at every feasible point. The geometric commands rectangle_max_area, rectangle_min_perimeter, open_box_max_volume, and min_surface_area build one objective, a constraint, and a feasible domain, then call the same solver. They do not read an arbitrary word problem.

Reading the input

Try a change

Solve Equation shows the objective, the first derivative, the critical points, the endpoint values, and whether each extreme is attained. An open bound that is not reached is a supremum or an infimum.

Edit and generate

Solve Equation opens the studio homepage and runs this field. Open in DGS Studio loads the same text and waits for you to generate it. The equation is sent once, as a query parameter.

Related examples