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 coneA 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 matrixHere is the nonnegative orthant. The equation forces , violating . The certificate givesThe 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 .
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 implyFor 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.
Nonnegative-orthant optimality certificate 2026-10-14
Consider the original linear programOne 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 areDirect 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.
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 .
Past exam of the computer science course of the University of Oxford 2019 Algorithms 2 b i Solution 2026-10-25
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 givesand 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.
Past exam of the mathematics course of the University of Cambridge 2003 iii Paper 34 2 ii Solution Created 2026-10-03 Updated 2026-10-14
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 approximationThe 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 isThe derivative follows by differentiating the normalized weights: . The probability at the upper endpoint similarly givesThus increases from zero to one, while increases from zero to . This is the monotonicity of the Erlang blocking probability.
Set . For defineHere 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 pointEach 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 isAt , 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.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 339 1 a Solution Created 2026-10-03 Updated 2026-10-06
For a vector in the nonnegative orthant, the PDF's matrix gives the quadratic formThus 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.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 339 1 b Solution Created 2026-10-03 Updated 2026-10-06
For in the nonnegative orthant, the positive semidefinite matrix satisfies . The nonnegative matrix satisfiessince every summand is nonnegative. Adding these inequalities provesConsequently 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.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 339 1 c Solution Created 2026-10-03 Updated 2026-10-06
For each fixed in the nonnegative orthant, the map is a continuous linear function on the vector space of real symmetric matrices. Thusis 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 . HenceThe copositive cone is defined in the real space of symmetric matrices; symmetry is needed later to recover every matrix entry from these quadratic forms.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 339 1 d Solution Created 2026-10-03 Updated 2026-10-06
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 givesSince 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 givesThis 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 .
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 339 1 g Solution Created 2026-10-03 Updated 2026-10-06
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 givesThe zero vector imposes no further condition. It follows that is a copositive matrix exactly when . Thus the feasible scalar set is , andBoth 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 .
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 339 3 a Solution Created 2026-10-03 Updated 2026-10-05
For , define . Then lies in the nonnegative orthant andIf 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.
Past exam of the mathematics course of the University of Cambridge 2021 ii Paper 1 2H Solution Created 2026-09-24 Updated 2026-09-25
The set is compact because is closed and bounded, and the productis 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 maximizingThe Hessian of iswhich 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 segmentlies in . Since is maximal at , its right derivative there is nonpositive:ThereforeThis 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 . Hencefor 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 .
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, givingThus 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 provesNo nonnegativity restriction was imposed on the dual variables; the negative- second corner is part of the feasible boundary, even though it is not optimal.
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.
Second-order-cone optimality certificate 2026-10-14
A curved feasible set can have the same certificate structure. ConsiderWrite 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: .
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]
Convex Optimization by Stephen Boyd and Lieven Vandenberghe. §5.9.1, printed p. 265: generalized Slater condition, strong duality and dual attainment
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]
A Primal-Dual Potential Reduction Method for Problems Involving Matrix Inequalities by Lieven Vandenberghe and Stephen Boyd. Publication record and authored abstract: A Primal-Dual Potential Reduction Method for Problems Involving Matrix Inequalities, Mathematical Programming, Series B, 69(1), 205–236 (1995)



