Copositive matrix Created 2026-10-05 Updated 2026-10-06
A real symmetric matrix is copositive if its quadratic form satisfies for every in the nonnegative orthant. Every positive semidefinite matrix and every symmetric nonnegative matrix is copositive, as is their sum. The converse fails for the Horn copositive matrix.
Copositive optimization 2026-10-06
Conic optimization using the copositive cone. The constraint supplies an exact reformulation of a Rayleigh quotient minimum on the nonnegative orthant. Exact conic formulation does not itself provide an efficient membership algorithm.
Farkas' lemma Created 2026-10-07 Updated 2026-10-14
For a real matrix and a vector , exactly one of the following systems has a solution:
The linear inequalities here are componentwise. In the first system is nonnegative; in the second system is unrestricted in sign. The second system is a certificate that the first has no feasible point. This nonnegative-equations alternative is developed in Boyd and Vandenberghe, Convex Optimization slides, §5.34.
Build the target, or separate it. Write the columns of as . Then is a conic combination: its coefficients must be nonnegative, but need not sum to one. The obtainable targets form the finitely generated cone
A solution explains how to build from those columns. A certificate instead defines a linear functional . The condition says that its dot product with every generating column is nonnegative, and hence with every point of . But places the target strictly on the other side of the hyperplane . Thus belongs to the dual cone of and rules out every allowed conic combination at once.
A certificate that can be checked by eye. Take the identity matrix
Here is the nonnegative orthant. The equation forces , violating . The certificate gives
The linear functional simply reads the first coordinate: all allowed column combinations have a nonnegative first coordinate, while has first coordinate . For comparison, the target is obtained with .
Figure 1.
Nonnegative column combinations lie in a cone, while a Farkas certificate separates the target
. For , the shaded nonnegative orthant is the conic hull of the two columns. The hyperplane for is the vertical axis; lies strictly on its negative side. The obtainable target illustrates the other alternative. Details.
Why this is useful and striking. A successful search can exhibit one feasible point; an unsuccessful search alone cannot explain why every candidate fails. Farkas' lemma guarantees an equally concrete witness of impossibility for this finite linear problem. Once is supplied, verification needs only matrix multiplication, sign tests and one dot product. The same idea gives a Farkas certificate for linear inequalities and underlies linear programming duality.
Brief geometric proof. The two systems cannot both hold, because they would imply
For existence of a certificate when , closedness of finitely generated cones makes a closed convex cone, so separation from a closed convex cone supplies and for every . Testing each column gives . Concretely, let be the Euclidean projection onto a convex set of onto and set . The projection inequality gives for . Testing and gives , whence . In the example, and . Alternatively, the Fenchel-Moreau theorem applied to the cone's indicator functional proves the same separation through its polar cone.
An original historical source is Julius Farkas's [ref]. The linked archival record verifies the author, title and publication details.
Consider the original linear program
One unit of costs twice as much as one unit of , so is a plausible answer. To certify it, multiply the three linear inequalities by , respectively, and add:
The proposed feasible point attains , so its cost is the global minimum.
In the conic dual problem convention, the data and certificate are
Direct matrix multiplication gives and . At , the slack variable is , so . The first linear inequality has positive slack and zero multiplier; the two positively weighted linear inequalities are tight. This is complementary slackness.
Figure 1.
A feasible decision and a weighted-inequality certificate meet at the same cost
. The shaded feasible set lies above in the nonnegative orthant. Dashed lines show costs . The lowest attainable line touches . The right panel verifies the dual variable : its weighted constraint coefficients reproduce the objective function, and its weighted right-hand sides give the lower bound . Details.
The entire dual feasible set can also be read off: write with . Then and . Maximizing this lower bound gives . A point such as is still a valid certificate of the weaker bound .
Only have printed nonnegativity restrictions; are unrestricted. In four-dimensional space, a vertex of a linear polyhedron needs four independent active constraints. There are exactly four available constraints, so all must be active. Solving them gives
and therefore the only possible vertex of a linear polyhedron is . It is feasible, and its four active normals are independent, so it is indeed a vertex of a linear polyhedron.
One can also see uniqueness geometrically from the slack variables and . The feasible region is in affine bijection with the nonnegative orthant in :
That orthant has only the origin as an extreme point, giving the same unique vertex of a linear polyhedron.
For unit resource requirements, treat the resource-blocking events as approximately independent. Let be the approximate blocking probability at resource . Screening class- traffic by every resource other than produces the reduced-load approximation
The modeled resource is excluded from its own screening product. For general integer requirements, the standard generalized approximation is ; in the unit-requirement case this reduces to the displayed formula. The approximate route acceptance is . The independence used here is an approximation to the correlated exact stationary distribution, not an extra property of that law.
Here is a proof of fixed-routing existence and uniqueness. Suppose first that every retained capacity is a positive integer. Links of zero capacity permanently reject their routes and can be removed. If has the upper-truncated Poisson distribution with parameter , its mean is
The derivative follows by differentiating the normalized weights: . The probability at the upper endpoint similarly gives
Thus increases from zero to one, while increases from zero to . This is the monotonicity of the Erlang blocking probability.
Set . For define
Here the inverse is with respect to offered load, and the value at zero is zero. This function is the carried load evaluated at the inverse blocking coordinate, so it is continuous and strictly increasing, with limit as . Consider the convex potential for the Erlang fixed point
Each exponential of a linear function is convex. Each integral is strictly convex because its derivative is strictly increasing. Their sum is strictly convex on the nonnegative orthant. It is also coercive: for large , is bounded below by a positive constant, so the integral grows without bound; the other terms are nonnegative. Hence attains a unique minimum.
At a positive coordinate, the first-order condition is
At , the derivative equals minus the right-hand side and is nonpositive. A boundary minimum can therefore occur there only when that load is zero, in which case the derivative is zero and the same equation holds. Since , division by this positive acceptance probability makes the first-order condition precisely the reduced-load equations above. Conversely every fixed point is such a minimum. Thus fixed routing has exactly one Erlang fixed point, including zero blocking at unused resources. The proof does not rely on a potentially nonconvergent simultaneous substitution algorithm.
For a vector in the nonnegative orthant, the PDF's matrix gives the quadratic form
Thus it is a copositive matrix. On the other hand, with ,
so it is not a positive semidefinite matrix. Equivalently, the eigenvalues are and , with eigenvectors and .
The local TeX has corrupted the matrix entries. The PDF has diagonal entries one and off-diagonal entries two. The all-twos matrix in the TeX would instead have quadratic form and would be a positive semidefinite matrix; it cannot demonstrate the requested distinction.
For in the nonnegative orthant, the positive semidefinite matrix satisfies . The nonnegative matrix satisfies
since every summand is nonnegative. Adding these inequalities proves
Consequently is a copositive matrix. The symmetry of follows from that of and ; entrywise nonnegativity alone need not imply positive semidefiniteness.
This gives the inclusion of the positive-semidefinite-plus-nonnegative cone in the copositive cone. It is only a sufficient construction; the argument does not claim that every copositive matrix has this decomposition in arbitrary dimension.
For each fixed in the nonnegative orthant, the map is a continuous linear function on the vector space of real symmetric matrices. Thus
is an intersection of closed half-spaces, using the Frobenius inner product on this space. Arbitrary intersections of closed sets are closed, so is closed.
If and , then for every . Therefore , including the zero matrix when . Hence
The copositive cone is defined in the real space of symmetric matrices; symmetry is needed later to recover every matrix entry from these quadratic forms.
A pointed cone has no nonzero line through the origin: equivalently . If , its quadratic form vanishes on the nonnegative orthant. Testing the coordinate vectors gives . Testing then gives
Since is a symmetric matrix, every entry is zero. Thus .
The identity matrix gives an interior point. For a symmetric perturbation with operator norm , the Cauchy-Schwarz inequality gives
This open norm ball around lies even in the positive semidefinite cone, hence in . Consequently and the interior is nonempty.
More generally, the interior of the copositive cone consists exactly of strictly copositive matrices. Positivity on the compact nonnegative unit sphere has a positive minimum and persists under small perturbations; a zero there is destroyed by an arbitrarily small negative multiple of .
Let . This set is nonempty and compact for , and the quadratic form is continuous. Its minimum is therefore attained.
For every nonzero in the nonnegative orthant, normalizing gives
The zero vector imposes no further condition. It follows that is a copositive matrix exactly when . Thus the feasible scalar set is , and
Both optima are attained. This copositive reformulation of an orthant Rayleigh minimum follows directly from homogeneity; it does not require invoking a duality theorem for the original nonconvex constraint.
The restriction to matters. For the matrix in part (a), this minimum is whereas the unrestricted smallest eigenvalue is .
For , define . Then lies in the nonnegative orthant and
If is a copositive matrix, this is nonnegative for every , so is a globally nonnegative polynomial. Conversely, every has the form by taking . If is globally nonnegative, then for every such , proving that is a copositive matrix. The map covers the entire nonnegative orthant, which is the key to both directions.
The set is compact because is closed and bounded, and the product
is continuous. By the extreme value theorem, has a maximizer. Since meets the interior of the nonnegative orthant , some feasible product is positive, so every maximizer lies in .
On , maximizing is equivalent to maximizing
The Hessian of is
which is negative definite. Thus is a strictly concave function, and it has at most one maximizer on the convex set . Denote this unique point by .
For any , the line segment
lies in . Since is maximal at , its right derivative there is nonpositive:
Therefore
This is the supporting inequality for the product maximizer on a compact convex subset of the positive orthant.
Suppose now that is invariant under cyclic coordinate permutation. That permutation preserves the product, so uniqueness forces it to fix . Hence
for some . More explicitly,
Indeed, cyclic symmetry averaging puts the diagonal point with coordinate equal to the mean of any back in , while the preceding inequality with gives .
Finally, given , define
This set is nonempty, closed, convex and bounded, and it contains . By the arithmetic-geometric mean inequality,
Equality holds only when all are equal and their sum is , namely only at . Thus this has
With primal constraints , the dual variable is unrestricted in sign:
Membership of in the nonnegative orthant still yields , but the next step is now the equality , so no sign condition on is needed. Equivalently an equality constraint can be replaced by two opposite inequalities whose nonnegative multipliers combine into one free multiplier.
The two primal constraints are equalities, so let the two dual variables be free. Primal feasibility restricts to the nonnegative orthant, giving
Thus the feasible region lies above all four lines:
Its lower boundary follows the third line up to , the fourth line from there to , and then the first line. The second line never determines the envelope. Along these three pieces respectively has slopes , , and , so its unique minimum is at the first corner:
At this dual point the first two inequalities are strict, while the last two are equalities. complementary slackness therefore suggests . The remaining primal equations become , , giving . This is nonnegative and satisfies both equations. Its objective function is , equal to the feasible dual value. weak duality proves
No nonnegativity restriction was imposed on the dual variables; the negative- second corner is part of the feasible boundary, even though it is not optimal.
Figure 1.
The dual lower envelope has its objective function minimum at the intersection of the third and fourth constraints
. Details.
Pointed cone 2026-10-06
A convex cone containing no nonzero line through the origin, equivalently . The copositive cone is pointed: a matrix in both it and its negative has zero quadratic form on the nonnegative orthant; testing and kills all entries.
Positive-semidefinite-plus-nonnegative cone Created 2026-10-05 Updated 2026-10-06
The sums of a real positive semidefinite matrix and a symmetric nonnegative matrix form a convex cone inside the copositive cone. Both terms have nonnegative quadratic forms on the nonnegative orthant. The Horn copositive matrix shows that the inclusion is strict in dimension five; the sum of squares criterion for a biquadratic form explains this cone's relation to semidefinite programming.
A curved feasible set can have the same certificate structure. Consider
Write and use the second-order cone . In this coordinate ordering,
Self-duality of a second-order cone makes . The equality forces and , leaving . Its dual objective function is , maximized at . Thus every feasible point satisfies , and attains that bound: .
Figure 1.
A curved primal constraint and an interval of dual certificates
. The left panel is the slice of the second-order cone, so its boundary is . The right panel is the dual slice , : admissible form , and reaches at . The optimal slack variable and dual variable lie on different cone boundary rays with zero dot product. Details.
The zero dot product is . Individual coordinate products need not be nonnegative here: the cancellation occurs across coordinates. The valid complementary slackness condition is cone-level orthogonality, rather than the coordinatewise interpretation of the nonnegative orthant.
Self-dual cone Created 2026-10-07 Updated 2026-10-14
A self-dual cone equals its dual cone under the specified inner product. The nonnegative orthant, second-order cone and positive semidefinite cone are standard examples. Self-duality of a set alone does not establish primal or dual feasibility.
Strict feasibility for conic duality Created 2026-10-14 Updated 2026-10-31
For a proper cone , suppose a point satisfies and is finite. This generalized Slater condition gives strong duality and attainment of the conic dual problem's optimum. It does not by itself assert primal attainment.[ref]
The two worked examples have strict primal points: has slack in the interior of the nonnegative orthant, and has slack in the interior of the second-order cone. Both optima were already certified by explicit feasible pairs. Slater's condition explains why a matching optimal dual variable can be expected under these hypotheses; checking a supplied zero-gap pair needs only weak duality.
Changing cone geometry preserves the bound mechanism. For a positive semidefinite cone, the dual cone pairing is the Frobenius inner product of two matrices. This connects the same certificate idea to semidefinite programming, while the central path uses strictly interior primal and dual points to approach vanishing gap.
In 1995, Lieven Vandenberghe and Stephen Boyd presented a primal-dual interior-point method for convex optimization with matrix inequalities. Their algorithmic study included exploiting problem structure and allowing incomplete conjugate gradient method solves within an iteration. This illustrates how the primal-dual viewpoint guides computation as well as checking a final answer.[ref]