CalcWorldHub
Free online calculator · no signup

Box constrained convex quadratic minimum calculator

Find a strictly convex two-variable quadratic minimum while enforcing separate lower and upper bounds on both coordinates.

4,000 tools
Box constrained convex quadratic minimum calculator — Hessian 11, Hessian 12, Hessian 22 and calculation method
Box constrained convex quadratic minimum calculator: inputs and calculation method.

How to use this calculator

Find a strictly convex two-variable quadratic minimum while enforcing separate lower and upper bounds on both coordinates.

  1. Enter Hessian 11, Hessian 12, Hessian 22, Linear objective coefficients, then complete the remaining labeled fields. Match the units shown beside each field and review the result together with the assumptions below.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Calculation guide

Box constrained convex quadratic minimum explained

Optimal first coordinate0.125
Optimal first coordinate: 0.125 in the worked scenario.

How the calculation works

Minimize half x transpose H x plus g transpose x subject to lower_i <= x_i <= upper_i.

The candidate set includes the unconstrained stationary point when feasible and the one-dimensional constrained optimum along each box edge. Strict convexity makes the selected minimum global.

Set up the calculation

h11 — Hessian 11
Positive first diagonal curvature.
h12 — Hessian 12
Symmetric off-diagonal curvature.
h22 — Hessian 22
Positive second diagonal curvature.
g — Linear objective coefficients
Two coefficients in half x transpose H x plus g transpose x. Use comma-separated values in the stated order.
lower — Coordinate lower bounds
Two lower coordinate limits. Use comma-separated values in the stated order.
upper — Coordinate upper bounds
Two upper coordinate limits. Use comma-separated values in the stated order.

Limits of this model

Only a positive-definite two-dimensional quadratic and a rectangular box. General inequalities or a nonconvex Hessian require another optimizer.

Check this example

Hessian 11 = 4; Hessian 12 = 1; Hessian 22 = 3; Linear objective coefficients = [-1, -2]; Coordinate lower bounds = [0, 0]; Coordinate upper bounds = [0.5, 0.5].

  • Optimal first coordinate: 0.125
  • Optimal second coordinate: 0.5
  • Minimum quadratic objective: -0.65625 objective units

For H=(4,1;1,3), g=(-1,-2) and both coordinates bounded between zero and 0.5, the optimum is (0.125,0.5).

Reading the outputs

The two bounded coordinates and their minimum objective value are returned.

Frequently asked questions

Can a bound be active at the solution?

Yes. The default second coordinate is exactly at its upper bound.

Can lower and upper bounds coincide?

Yes; this fixes that coordinate.

Is clipping the unconstrained optimum sufficient?

Generally no. Off-diagonal curvature couples the coordinates, so edge optima must be checked.

How do I use the Box constrained convex quadratic minimum calculator?

Enter Hessian 11, Hessian 12, Hessian 22, Linear objective coefficients, then complete the remaining labeled fields. Match the units shown beside each field and review the result together with the assumptions below.

What is a worked example of Box constrained convex quadratic minimum?

Hessian 11 = 4; Hessian 12 = 1; Hessian 22 = 3; Linear objective coefficients = [-1, -2]; Coordinate lower bounds = [0, 0]; Coordinate upper bounds = [0.5, 0.5]. Optimal first coordinate: 0.125 Optimal second coordinate: 0.5 Minimum quadratic objective: -0.65625 objective units For H=(4,1;1,3), g=(-1,-2) and both coordinates bounded between zero and 0.5, the optimum is (0.125,0.5).