CalcWorldHub
Free online calculator · no signup

Equality constrained quadratic minimization calculator

Find a unique minimum of a strictly convex two-variable quadratic subject to one linear equality.

4,000 tools
Equality constrained quadratic minimization calculator — Quadratic xx coefficient, Quadratic xy coefficient, Quadratic yy coefficient and calculation method
Equality constrained quadratic minimization calculator: inputs and calculation method.

How to use this calculator

Find a unique minimum of a strictly convex two-variable quadratic subject to one linear equality.

  1. Enter Quadratic xx coefficient, Quadratic xy coefficient, Quadratic yy coefficient, Linear x coefficient, 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

Equality constrained quadratic minimization explained

This solver minimizes a two-variable quadratic on the line ux + vy = k. The coefficients a, b, and c define the curvature, d and e define the linear terms, and the equality restricts which points are feasible.

Inputs, symbols, and units

a — Quadratic xx coefficient
Coefficient a on ½x² in the objective.
b — Quadratic xy coefficient
Coefficient b on the cross term xy; it appears as the off-diagonal Hessian entries.
c — Quadratic yy coefficient
Coefficient c on ½y² in the objective.
d — Linear x coefficient
Coefficient d on x in the objective.
e — Linear y coefficient
Coefficient e on y in the objective.
u — Constraint x coefficient
Coefficient u multiplying x in the equality.
v — Constraint y coefficient
Coefficient v multiplying y in the equality.
k — Constraint right-hand side
Right-hand side k of ux + vy = k.

Formula and method

Minimize ½ax²+bxy+½cy²+dx+ey with ux+vy=k

With the convention L = f + λ(ux + vy − k), solve the KKT system [[a,b,u],[b,c,v],[u,v,0]]·[x,y,λ]ᵀ = [−d,−e,k]ᵀ. A positive-definite Hessian gives a unique constrained minimum; the reported x and y satisfy the equality, and the objective can be evaluated at that point.

A worked scenario

Quadratic xx coefficient = 2; Quadratic xy coefficient = 0; Quadratic yy coefficient = 2; Linear x coefficient = 0; Linear y coefficient = 0; Constraint x coefficient = 1; Constraint y coefficient = 1; Constraint right-hand side = 3.

  • Optimal x: 1.5
  • Optimal y: 1.5
  • Minimum objective: 4.5

With the entered coefficients, the objective is x²+y² and the equality is x+y=3. Its constrained minimum is x=y=1.5, with objective 4.5; the equality check is 1.5+1.5=3.

Assumptions and edge cases

The symmetric Hessian must be positive definite and the equality normal nonzero. Inequality constraints are not included.

Frequently asked questions

Why require positive definiteness?

It ensures a unique convex minimum on the feasible line.

Does the xy term have a factor of one half?

No, bxy corresponds to equal off-diagonal Hessian entries b.

Can either constraint coefficient be zero?

Yes, as long as both are not zero.

How do I use the Equality constrained quadratic minimization calculator?

Enter Quadratic xx coefficient, Quadratic xy coefficient, Quadratic yy coefficient, Linear x coefficient, 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 Equality constrained quadratic minimization?

Quadratic xx coefficient = 2; Quadratic xy coefficient = 0; Quadratic yy coefficient = 2; Linear x coefficient = 0; Linear y coefficient = 0; Constraint x coefficient = 1; Constraint y coefficient = 1; Constraint right-hand side = 3. Optimal x: 1.5 Optimal y: 1.5 Minimum objective: 4.5 With the entered coefficients, the objective is x²+y² and the equality is x+y=3. Its constrained minimum is x=y=1.5, with objective 4.5; the equality check is 1.5+1.5=3.