Let and . Write for the Hermitian operators on , for positive semidefinite, for positive definite, and , which is real on Hermitian operators. A semidefinite program is a triple where is a linear map from operators on to operators on that sends Hermitian operators to Hermitian operators, and . With the adjoint defined by , it has two associated problems:
Operators satisfying the constraints are primal feasible or dual feasible; by convention and when there are none. The program is strictly primal feasible if some has , and strictly dual feasible if some Hermitian has .
The feasible sets are convex and the objectives linear, so these are convex optimization problems; inequality constraints and more general linear matrix inequalities are brought into this form with slack variables. Linear programs are the special case of diagonal matrices. This is the formulation of section 1.2 of Watrous and of Watrous (2013); a survey from the optimization side, with real symmetric matrices, is Vandenberghe and Boyd. Interior-point methods solve a semidefinite program to any fixed accuracy in time polynomial in the matrix dimensions and the logarithm of the inverse accuracy, under standard boundedness assumptions (see Vandenberghe and Boyd).