# 12.2 Conic Optimization¶

*Conic optimization* is an extension of linear optimization (see Sec. 12.1 (Linear Optimization)) allowing conic domains to be specified for affine expressions. A conic optimization problem to be solved by **MOSEK** can be written as

where

\(m\) is the number of constraints.

\(n\) is the number of decision variables.

\(x \in \real^n\) is a vector of decision variables.

\(c \in \real^n\) is the linear part of the objective function.

\(c^f\in \real\) is a constant term in the objective

\(A \in \real^{m \times n}\) is the constraint matrix.

\(l^c \in \real^m\) is the lower limit on the activity for the constraints.

\(u^c \in \real^m\) is the upper limit on the activity for the constraints.

\(l^x \in \real^n\) is the lower limit on the activity for the variables.

\(u^x \in \real^n\) is the upper limit on the activity for the variables.

is the same as in Sec. 12.1 (Linear Optimization) and moreover:

\(F \in \real^{k \times n}\) is the affine conic constraint matrix.,

\(g \in \real^{k}\) is the affine conic constraint constant term vector.,

\(\D\) is a Cartesian product of conic domains, namely \(\D = \D_1 \times \cdots \times \D_p\), where \(p\) is the number of individual affine conic constraints (ACCs), and each domain is one from Sec. 15.11 (Supported domains).

The total dimension of the domain \(\D\) must be equal to \(k\), the number of rows in \(F\) and \(g\). Lower and upper bounds can be infinite, or in other words the corresponding bound may be omitted.

**MOSEK** supports also the cone of positive semidefinite matrices. In order not to obscure this section with additional notation, that extension is discussed in Sec. 12.3 (Semidefinite Optimization).

## 12.2.1 Duality for Conic Optimization¶

Corresponding to the primal problem (12.8), there is a dual problem

where

\(s_l^c\) are the dual variables for lower bounds of constraints,

\(s_u^c\) are the dual variables for upper bounds of constraints,

\(s_l^x\) are the dual variables for lower bounds of variables,

\(s_u^x\) are the dual variables for upper bounds of variables,

\(\dot{y}\) are the dual variables for affine conic constraints,

the dual domain \(\D^*=\D_1^* \times \cdots \times \D_p^*\) is a Cartesian product of cones dual to \(\D_i\).

One can check that the dual problem of the dual problem is identical to the original primal problem.

If a bound in the primal problem is plus or minus infinity, the corresponding dual variable is fixed at 0, and we use the convention that the product of the bound value and the corresponding dual variable is 0. This is equivalent to removing the corresponding dual variable \((s_l^x)_j\) from the dual problem. For example:

A solution

to the dual problem is feasible if it satisfies all the constraints in (12.9). If (12.9) has at least one feasible solution, then (12.9) is *(dual) feasible*, otherwise the problem is *(dual) infeasible*.

A solution

is denoted a *primal-dual feasible solution*, if \((x^*)\) is a solution to the primal problem (12.8) and \((y^*,(s_l^c)^*,(s_u^c)^*,(s_l^x)^*,(s_u^x)^*,(\dot{y})^*)\) is a solution to the corresponding dual problem (12.9). We also define an auxiliary vector

containing the activities of linear constraints.

For a primal-dual feasible solution we define the *duality gap* as the difference between the primal and the dual objective value,

where the first relation can be obtained by transposing and multiplying the dual constraints (12.2) by \(x^*\) and \((x^c)^*\) respectively, and the second relation comes from the fact that each term in each sum is nonnegative. It follows that the primal objective will always be greater than or equal to the dual objective.

It is well-known that, under some non-degeneracy assumptions that exclude ill-posed cases, a conic optimization problem has an optimal solution if and only if there exist feasible primal-dual solution so that the duality gap is zero, or, equivalently, that the *complementarity conditions*

are satisfied.

If (12.8) has an optimal solution and **MOSEK** solves the problem successfully, both the primal and dual solution are reported, including a status indicating the exact state of the solution.

## 12.2.2 Infeasibility for Conic Optimization¶

### 12.2.2.1 Primal Infeasible Problems¶

If the problem (12.8) is infeasible (has no feasible solution), **MOSEK** will report a certificate of primal infeasibility: The dual solution reported is the certificate of infeasibility, and the primal solution is undefined.

A certificate of primal infeasibility is a feasible solution to the modified dual problem

such that the objective value is strictly positive, i.e. a solution

to (12.12) so that

Such a solution implies that (12.12) is unbounded, and that (12.8) is infeasible.

### 12.2.2.2 Dual Infeasible Problems¶

If the problem (12.9) is infeasible (has no feasible solution), **MOSEK** will report a certificate of dual infeasibility: The primal solution reported is the certificate of infeasibility, and the dual solution is undefined.

A certificate of dual infeasibility is a feasible solution to the modified primal problem

where

and

such that

Such a solution implies that (12.13) is unbounded, and that (12.9) is infeasible.

In case that both the primal problem (12.8) and the dual problem (12.9) are infeasible, **MOSEK** will report only one of the two possible certificates — which one is not defined (**MOSEK** returns the first certificate found).

## 12.2.3 Minimalization vs. Maximalization¶

When the objective sense of problem (12.8) is maximization, i.e.

the objective sense of the dual problem changes to minimization, and the domain of all dual variables changes sign in comparison to (12.2). The dual problem thus takes the form

This means that the duality gap, defined in (12.10) as the primal minus the dual objective value, becomes nonpositive. It follows that the dual objective will always be greater than or equal to the primal objective. The primal infeasibility certificate will be reported by **MOSEK** as a solution to the system

such that the objective value is strictly negative

Similarly, the certificate of dual infeasibility is an \(x\) satisfying the requirements of (12.13) such that \(c^Tx>0\).