Manuscript Offprint
arXiv:2610.07465A Tardos-Type Algorithm for Separable Convex Quadratic Programming
Abstract
We give an exact algorithm for continuous separable convex quadratic programming with an integer equality matrix and nonnegative variables. The number of rational arithmetic operations and comparisons is polynomial in the dimensions and the encoding length of the constraint matrix, independently of the right-hand side, linear costs, and all nonnegative quadratic weights. Intermediate rational encodings are polynomial in the complete input. This yields a strongly polynomial algorithm for every integer matrix class with polynomially bounded entry encodings, including arbitrary matrices with entries in . The local solver compresses a quadratic objective on an integer box and solves only the compressed continuous problem. Two-sided proximity on boxes with rational bounds transfers its solution to a nearby original optimum; integer optima are used only in the proof. A single linear program supplies an error bound and a dual potential, while tight-coordinate revelation and fixed feasible anchors ensure termination and control encoding lengths. An explicit lifting extends the result to convex piecewise quadratic functions of signed integer affine features, with operation counts independent of breakpoints and objective coefficients. Applications include continuous multicommodity flow with shared capacities and piecewise quadratic costs of aggregate congestion.
1 Introduction
Consider the continuous optimization problem
where , , , and for . All variables are real. We seek an exact optimum and a certificate, rather than an approximation whose complexity depends on a prescribed accuracy.
Tardos's algorithm for linear programming has an arithmetic operation count depending only on the integer constraint matrix and its dimensions, independently of the right-hand side and linear costs [9]. Our main result gives the same form of coefficient independence for a separable convex quadratic objective, including its quadratic weights.
Theorem 1.1. There is an algorithm for (1) using basic rational arithmetic operations and comparisons, independently of the encoding lengths of b, c, q. It returns an exact optimal primal-dual pair, a certificate of infeasibility, or a direction certifying unboundedness. Every intermediate rational number has encoding length polynomial in the complete input.
Here denotes the binary encoding length of the integer matrix. The weights may be zero or arbitrarily small positive rationals, and no total-unimodularity or fixed-rank assumption is imposed. For arbitrary integer matrices, the theorem gives a matrix-dependent arithmetic bound. For any matrix class whose entry encoding lengths are bounded by a fixed polynomial in the dimensions, it gives a strongly polynomial algorithm: the operation count is polynomial in the dimensions, and intermediate encodings are polynomial in the full input. In particular, this applies to every matrix, including non-unimodular matrices.
The same guarantee extends to a larger, explicitly represented objective class. Let have arbitrary signs, and let be univariate convex piecewise quadratic functions with rational data, each finite and continuous on a nonempty closed interval, possibly unbounded, and equal to outside that interval. If their total number of pieces is , we can solve
with operations, independently of the breakpoints, quadratic coefficients, slopes, and other numerical data. Theorem 9.3 gives the precise statement and a lifting proof. Derivative jumps and decreasing curvature between pieces are allowed.
Relation to earlier work. Granot and Skorin-Kapov extended the Tardos framework to strictly convex quadratic programming, eliminating dependence on the right-hand side and linear costs while retaining dependence on the quadratic matrix [5]. Végh gave a strongly polynomial algorithm for separable convex quadratic minimum-cost flow [10]. Theorem 1.1 removes dependence on the diagonal quadratic weights for arbitrary integer equality matrices, in the matrix-encoding sense of Tardos's linear-programming result.
The structural ingredients have substantial precedents. Frank–Tardos compression preserves signs of bounded integer linear forms [1]; its application to integer quadratic objectives was already studied by Granot and Skorin-Kapov [4]. Two-sided continuous–integer proximity for separable convex objectives is classical: Hochbaum and Shanthikumar’s Theorem 3.3 gives both directions for each specified optimum [7]; see also the quadratic proximity results in [6]. Circuit-based sensitivity for separable convex optimization under general linear constraints is developed in [3]. We give self-contained versions of the particular proximity and stability bounds needed below, including zero-curvature degeneracy.
Our outer algorithm follows the tight-coordinate revelation and trial-and-error organization of [10]. The independent-column invariant for revealed linear coordinates, their rerouting, tight-vector stability, and final linear recovery have network counterparts in that work. Its Section 7 also allows approximate error estimates. The algorithm here realizes this organization for general integer matrices using a compressed continuous quadratic program and an error LP whose constraint coefficients do not contain the quadratic weights.
The algorithmic combination. The central local construction centers a box at a feasible anchor and scales its equality constraints to Au = 0. Rounding the lower bounds inward gives a box with structurally bounded encoding and exactly the same integer points. Objective compression preserves all comparisons and ties on those points, and preserves nonnegative diagonal curvature. We then solve the compressed continuous QP. Two proximity steps connect its solution through a shared integer optimum to an original continuous optimum. No integer optimum is computed, and the weakly polynomial exact QP algorithm [8] sees only compressed data.
A single LP bounds the error within a factor equal to the number of positive-curvature coordinates and supplies a feasible dual potential. For each revealed set, a trial point and a feasible anchor are computed from the original input and held fixed. The resulting error value cannot remain positive.
through too many halvings without revealing a new coordinate. Rebuilding these quantities from the original data also controls intermediate encodings independently of previous local solutions.
The dependence on circuit magnitudes matters. Exact minimum-norm methods can have iteration bounds polynomial in the value of a circuit imbalance parameter [2]. Our circuit bound may be exponentially large, even for matrices, but enters the operation count only through its logarithm. For example, the equations for , together with , define a full-row-rank matrix with a one-dimensional kernel. Its primitive circuit has coordinates , where . Thus even this small-entry class can have exponentially large circuit coordinate ratios.
Sections 2–5 establish the structural tools, safe relaxations, and fixed anchors. Section 6 gives the local solver. Sections 7–8 prove progress, exact recovery, and both complexity bounds. Section 9 derives the piecewise quadratic extension and applications.
(i) An LP with an integer constraint matrix can be solved exactly with poly(dimensions, ) arithmetic operations, independently of the objective and right-hand side, with polynomial intermediate encodings [9]. Bounds and free variables can be handled by unit slack columns and signed column copies.
(ii) For and an integer , Frank-Tardos compression returns in arithmetic operations such that
One may take , so its encoding is . Intermediate encodings are polynomial in the input [1].
(iii) A rational convex quadratic program can be solved exactly in time polynomial in its complete binary encoding [8]. In the feasible finite case, it returns a rational optimal point of polynomial encoding length. We apply this only to a bounded instance with structurally bounded encoding. Bit operations on this small input can be simulated by elementary arithmetic and comparisons within the same polynomial bound.
2.1 Circuits
We retain an independent subset of the original rows of A and verify consistency of b with the deleted rows. Thus, unless infeasibility has already been certified, A has full row rank. If the rank is zero, the problem separates into one-dimensional quadratics and linear functions. Assume henceforth . Define
A circuit of a matrix is a nonzero kernel vector with inclusion-minimal support. A circuit of an integer matrix has a primitive integer representative. By the cofactor construction on at most columns and Hadamard's inequality, every circuit of has a representative satisfying
In particular, . The large value will enter the local solver only through its encoding length.
Two vectors are sign-compatible if their coordinate products are nonnegative. A vector h is conformal to v if it is sign-compatible with v and its support is contained in that of v.
Lemma 2.1 (Conformal decomposition). Every nonzero kernel vector v of a matrix D admits a representation , where , each is a circuit conformal to v, and . The sum has no coordinate cancellation. If D is integer, the circuits can be taken primitive integer.
Proof. Intersect ker D with the closed orthant and coordinate support of v. This is a pointed cone whose extreme rays are circuits: a vector with a non-minimal support admits a nontrivial decomposition within that orthant by perturbing along a smaller-support kernel vector. Subtracting the largest feasible multiple of an extreme ray eliminates at least one nonzero coordinate. Repeating gives a finite conformal decomposition.
If its rays are linearly dependent, choose a relation . The coefficients have both signs, because all rays lie in the same pointed orthant. Subtract times this relation from the coefficient vector. Coefficients remain nonnegative and at least one vanishes. Repeat until the rays are independent. Their number is then at most dim ker .
All circuit decompositions in this paper are proof tools; the algorithm does not enumerate circuits.
2.2 Feasibility, unboundedness, and attainment
Let and . First solve the feasibility LP . An infeasible instance has a Farkas certificate , . On a feasible instance solve
A negative value supplies a nonnegative direction v with , , and , certifying unboundedness of the original QP. The box bound does not restrict detection: any such direction can be scaled into the unit box.
If (6) has value zero, the unrestricted cone LP on Z has finite value zero and yields a potential such that . On every feasible point,
This lower bound is coercive in . For fixed , the optimal linear-fiber value
has a closed polyhedral epigraph, obtained by projecting a polyhedron. It attains its value whenever finite, and has the affine lower bound from . Thus attains a finite minimum on its closed domain: a nonempty sublevel set is bounded by (7). Taking a minimizing point in its linear fiber proves attainment of the QP. If , use the LP solver directly. If , the equality constraints determine a unique feasible point; rational elimination gives it, and is an optimal potential. Otherwise put
Below the problem is feasible and finite, and .
The KKT conditions for an optimal pair are
For convex differentiable objectives on a polyhedron these conditions are necessary and sufficient; the normal cone of the polyhedron supplies the multipliers without a strict-feasibility assumption.
3 Safe relaxation and stability
All optimal solutions have the same N coordinates: otherwise their midpoint has strictly smaller quadratic cost. Their linear objective values are also equal. Consequently they have a common gradient . Let be the set of all optimal potentials, and put
Every positive coordinate in every optimal primal solution belongs to , since for any such solution and any .
For define
The coordinates in are free. We maintain the additional invariant that the columns are linearly independent.
Lemma 3.1. The relaxation to preserves the optimal value. Every relaxed optimum has the original common N coordinates. If a relaxed optimum has for , then .
Proof. An original optimum and any satisfy the relaxed KKT conditions, since the multiplier slack on is zero. They are therefore optimal for the relaxation. Strict convexity on gives common coordinates for all relaxed optima. Write . Equality of objective values and of coordinates gives . On , is zero; off , both and are nonnegative. Thus implies for every .
The following stability bounds are independent of the quadratic weights. Their proofs use only sign-compatible circuits and monotonicity of the separable gradient.
Lemma 3.2 (Demand stability). Let minimize on , and assume has an optimum. There is an optimum on with
Proof. Choose minimizing among the second optimal set. Such a point exists by closedness and compactness of bounded distance sublevel sets. No circuit of can be conformal to . Indeed, if were one, the direction would be locally feasible at , and locally feasible at , including on the constrained coordinates. Optimality would give
But their difference is , and is positive if the circuit uses a positive-curvature coordinate. This is impossible. If it uses only zero-curvature coordinates, both derivatives are zero, and moving a small distance toward preserves its objective while reducing the selected distance, again impossible.
Decompose by Lemma 2.1. Each component must use an artificial unit coordinate. By (5), its real-coordinate contribution is at most times the sum of its artificial absolute contributions. Summing without cancellation proves (10).
A vector is -tight if and for some ; its demand can be arbitrary.
Lemma 3.3 (Tight-vector stability). If has independent columns and are -tight, then
Proof. A circuit conformal to and supported in real coordinates would satisfy , by the tight equations and . Positive curvature makes this sum positive. If all its coordinates have zero curvature, column independence excludes the circuit. Apply the augmented-kernel argument of Lemma 3.2.
In particular, a tight vector with a specified demand is unique.
4 One LP for error and a dual potential
Let and let be a rational vector supported on . Write and define the uniform error
For these are exact inequalities or equalities. Instead of solving a ratio-normalized LP, which would place in its constraint matrix, solve the following LP in a net direction :
Only A and unit coefficients appear in the constraint matrix; the quadratic weights enter numerical bounds.
Lemma 4.1 (Error LP). For every valid , the LP (13) is finite. Its optimal dual supplies a potential feasible in (12) at , and
Proof. The zero direction is feasible. Every recession direction is zero on , nonnegative on , and free on . An original optimal potential obeys , with equality on . Hence for every such kernel direction. This excludes a positive-objective recession direction of (13) and proves finiteness.
The dual uses multipliers for the upper bounds on and for the negative lower bounds on :
Strong duality and nonnegative summands give and, on , . The same optimal therefore satisfies (12) at .
Conversely, for any feasible error , potential , and direction in (13), the sign restrictions and exact zero-curvature conditions give
Taking the maximum over d and the infimum over feasible proves (14).
Equivalently, one may use nonnegative variables for the columns , with costs and upper bounds in each positive-curvature direction. Subtracting simultaneous forward and reverse mass preserves feasibility and cost, leaving at most one direction per original coordinate. This explains the factor in (14). The construction supplies a polynomial-factor error estimate while preserving the structural matrix needed by the LP subroutine.
Remark 4.2. The factor is sharp for this LP, even in a valid initial state. Take with zero columns, , , and . Let , on the first coordinates and . Then and . For an invalid set , an unbounded error LP would not by itself certify unboundedness of the original QP.
5 Fixed trial points and anchors
For each revealed set , choose a column basis of using a fixed deterministic order. Complete it to an -column basis with unit columns, writing . If , define
The projection is the identity on im . For a completing unit column it is zero. For any other unit column, ; fundamental circuits of bound the nonzero coordinates of by . Therefore
Solve the tight system
The quadratic form is positive definite on ker : a zero-quadratic kernel vector would be supported in , whose columns are independent. The restricted equality-constrained quadratic therefore has a unique solution. Selecting independent rows gives a nonsingular KKT system, solved by rational elimination.
Apply Lemma 4.1 to this trial point, and retain its value and optimal dual potential. The forward inequalities allow an error on every coordinate, while the revealed coordinates have both forward and reverse inequalities with the same nonnegative weight.
Set
Using the potential supplied by the error LP, construct
The forward and reverse error inequalities give . Zero-curvature constraints are exact, so satisfies the KKT conditions for . Lemma 3.2, with the existing relaxed optimum on , gives an optimum with
Compute a feasible anchor by the fixed-radius box LP
Equation (20) proves feasibility. Any returned point satisfies
Choose a basic feasible point. Cache for this . All these quantities are computed from the original data, not from the previous local point. The radius in (21) is a fixed right-hand side value; no common-radius optimization variable is added.
6 From discrete order to a continuous near point
This is the local solver used in the algorithm. Let , , and let be an integer. Assume the box contains an optimum on . Write . Then , , and for also . Let be the maximum of and this lower bound for , and set on . Each . Replace by its ceiling , which changes it by less than one and keeps 0 feasible. A ceiling on can be found by bounded integer binary search in arithmetic operations and comparisons; no unbounded floor operation is assumed.
We use a two-sided proximity statement on boxes with arbitrary rational bounds. Classical proximity results already give both directions for each specified optimum [7, Theorem 3.3]; see also [6]. The circuit proof below gives the nullity bound and rational-box form used here.
Lemma 6.1 (Two-sided integer proximity). Let be bounded and let . The bounds need not be integral. For any separable convex quadratic , every continuous optimum has an integer optimum within distance , and every integer optimum has a continuous optimum within the same distance.
Proof. Write the diagonal curvature of as . First fix a continuous optimum and choose an integer optimum minimizing . The integer set is finite. By Lemma 2.1, write , conformally, with primitive integer circuits and . Suppose and put . Conformality gives on its support. Thus lies coordinatewise between and , satisfies the same equalities, and is an integer feasible point. This uses no integrality of the box bounds. Also, is locally feasible at .
The quadratic identity
is nonpositive, since . It is strictly negative if uses a positive-curvature coordinate, contradicting integer optimality. Otherwise integer optimality forces equality, and is an integer optimum strictly closer to . This too is impossible. Hence every , and .
For the other direction fix an integer optimum and choose the nearest continuous optimum . Such a point exists because the continuous optimal set is nonempty and compact. The same decomposition and (23) exclude whenever uses positive curvature. In the zero-curvature case, integer optimality forces . Moving a sufficiently small positive distance along preserves feasibility and objective value, and strictly decreases its distance to , a contradiction. The same bound follows.
Let denote the scaled box before rounding, and the box with lower bounds . The crucial equality is
since both contain zero. After subtracting a constant, the scaled objective has coefficient vector
against features . We omit the identically zero quadratic features, so the compression dimension is . For integer , their feature difference has norm at most . Apply Frank-Tardos with
This preserves all comparisons and ties on the integer box, and therefore the integer optimal set on (24). Unit-vector tests in (3) preserve positivity of every retained quadratic coefficient; the omitted coefficients remain zero.
Solve only the compressed continuous QP on , and let its solution be . Its complete encoding is polynomial in , : its demand is zero, its bounds are integers of magnitude at most , and its objective is compressed.
Proposition 6.2 (Local near-point solver). The point is feasible in and satisfies
for some optimum z on . Its computation uses arithmetic operations and comparisons, independently of the encoding lengths of .
Proof. Lemma 6.1 puts within of a compressed integer optimum . Comparison and tie preservation, together with (24), make an original integer optimum on the unrounded box . Apply the reverse direction of the lemma directly on : is within of an original continuous optimum there. The unrounded box contains a global optimum of the current relaxation, so is such a global optimum. Moreover, , ensuring feasibility of . The triangle inequality and rescaling prove (27). The standard interfaces and compressed encoding give the operation count.
The proof uses precisely the chain

computed continuous optimum
shared integer optimum
original continuous optimum
The two points on the right are not computed.
Example 6.3 (Compression can move a continuous optimum). On and , consider and . Their feature coefficient vectors are and . They have the same sign on every integer test vector of norm at most 8: if its first coordinate is nonzero, both forms take its sign; otherwise both take the opposite sign of its third coordinate. Thus the full compression guarantee for holds, but the continuous minimizers are and . Both share the integer optimum zero. Compression supplies discrete order preservation; proximity supplies the continuous guarantee.
7 Revelation and progress
Given the feasible near point from Proposition 6.2, reveal every with and . For the zero-curvature candidates , process coordinates in a fixed order. Put ; if is independent of , reveal and add it to . Otherwise write and reroute
Each candidate belongs to by (27) and Lemma 3.1, since the nearby relaxed optimum has positive coordinate there. Fundamental circuits give . All involved columns are in , so , using any original optimal potential. The rerouting preserves equality constraints and objective; signs on are unrestricted. At the end,
The invariant is preserved, and .
Rerouting can destroy the near-point bound on the whole vector. The next lemma avoids using that bound on zero-curvature revealed coordinates.
Lemma 7.1 (Stage-end bound). After revelation and rerouting, the new fixed cache satisfies
Proof. Fix any original optimal potential . Define to have the common original optimal coordinates on , the current coordinates on , and zero elsewhere. This is -tight with potential . Rerouting did not change , so the original near-point guarantee there and (29) imply
Since and is the identity on this image,
Tight-vector stability gives .
The potential satisfies the inequalities in (12), with gradient and error . On every positive-curvature coordinate, differs from the common optimal coordinate by at most ; on zero-curvature coordinates, the inequalities do not depend on the flow. Both directions of every revealed column are available. Transferring these inequalities from to increases the scale by at most . Therefore
Equations (14) and (31) give (30). The demand term is covered because , using .
8 The algorithm, termination, and encoding lengths
All constants are integral. For reference, they are
(32)
Take
After preprocessing, initialize and construct its cache as in Section 5. If , perform the recovery below. Otherwise set and repeat the following steps.
-
Run the local solver in the radius- box about .
-
Reveal large coordinates and reroute dependent linear candidates, as in Section 7.
-
When a new F first appears, construct its cache from the original data. If , recover an original optimum and terminate.
-
If , reset ; otherwise halve . Continue with the fixed anchor belonging to this .
Lemma 8.1. Every local box contains an optimum of the current relaxation.
Proof. Initially , and (22) suffices since . At a stage end, a reset gives ; ordinary halving and Lemma 7.1 give . The fixed anchor is within of an optimum, so the next box is valid by (33).
Lemma 8.2. The total number of stages is
Proof. Each has a fixed positive until termination. After its first stage transition the scale is at most : a reset gives equality, and ordinary halving is used only if . While stays unchanged, no reset is then possible and the scale keeps halving. Lemma 7.1 says at every such stage end, and excludes more than halvings without a new coordinate or termination. There are at most strict expansions. Finally, is a polynomial in and , with , so . The stated bound is thus polynomial in the structural input.
8.1 Exact recovery
When , and the error-LP dual supplies a potential with and equality on . Thus is an optimal pair for the relaxation, even though some linear coordinates of can be negative. Its coordinates equal the original optimal ones and are nonnegative. Let
Fix , set all other linear coordinates outside to zero, and solve the feasibility LP
To prove feasibility, compare with any original optimum. They have the same coordinates and linear objective value. The nonnegative slack therefore has zero inner product with that original optimum. The original optimum uses positive linear coordinates only in . For with , equality holds by relaxed complementarity. Consequently the recovered nonnegative point and satisfy the original KKT conditions (9).
8.2 Arithmetic count
Every LP matrix consists of columns of , signed copies, and unit terms. Its encoding is polynomial in , even when its right-hand side, objective, or bounds involve large original data. The trial system and projections use polynomially many rational elimination operations. The local solver uses poly operations, and . Combining these bounds with Lemma 8.2 proves the operation count in Theorem 1.1.
8.3 Intermediate encoding lengths
The arithmetic count alone is not a sufficient strong-polynomiality argument. Let be the complete input encoding length. We show that all numbers have encodings.
For every possible , the projection and trial systems use only the original rational input and structurally selected rows and columns. Cramer's rule and standard determinant bounds give a uniform polynomial encoding bound for their solutions. This holds even though the original curvatures can have very different sizes. The error LP has original-input type cost and bounds ; a rational basic optimal primal-dual pair and its value have polynomial encodings. The anchor LP has right-hand sides built from , and its chosen basic feasible point has the same property. The standard LP algorithm controls its intermediate encodings as well.
The scale is either one of these fixed cache values or its value after polynomially many halvings. It thus has polynomial encoding. The Frank–Tardos input uses a fixed number of products of , , , ; its input and intermediate encodings remain polynomial, and its output encoding is bounded solely by structural parameters. All data supplied to the exact local QP solver have structurally bounded encoding. Its solution and the rescaled point have polynomial encodings.
At most m linear reroutings occur in a stage. Their coefficients are ratios of fixed minors of A. Each update is linear, and the number of updates is polynomial, so common numerator and denominator encodings grow by at most a polynomial amount. Crucially, a rerouted point is never used as the center of the next local problem: the center is the cached anchor computed directly from the original data. Thus denominators of successive local QP solutions do not feed into each other. The final recovery LP also has polynomial input and intermediate encodings. This completes the proof of Theorem 1.1.
9 Piecewise quadratic objectives and applications
Corollary 9.1. For every integer matrix class with entry encoding lengths polynomially bounded in the dimensions, continuous separable convex quadratic optimization is strongly polynomial. This includes arbitrary matrices, without total unimodularity.
Finite rational bounds and integer-coefficient linear inequalities are included. Translate finite lower bounds to zero, add unit slack variables for upper bounds and inequalities, and expand the translated objective. Numerical bounds enter right-hand sides, and curvature remains nonnegative.
9.1 An exact increment representation
An explicitly represented convex piecewise quadratic function is finite and continuous on a nonempty closed interval , whose finite endpoints and breakpoints are rational. It equals off . On each nondegenerate piece it has the form with rational coefficients. Convexity requires and nondecreasing one-sided derivatives at breakpoints. We also permit a singleton domain with a rational value. All pieces are listed explicitly; their number is part of the structural input. Curvature may decrease from one piece to the next.
Choose a rational anchor . It can be zero when zero belongs to , and otherwise a finite endpoint nearest to zero. Inserting into the piece list adds at most one piece. To the right of , list consecutive segment widths , curvatures , and initial slopes with respect to distance from . To the left, list widths , curvatures , and slopes with respect to distance to the left. An unbounded last segment has width . There are no segments on a side where the anchor is an endpoint. For a left segment starting at , its initial slope is .
On either side the ordered marginal ranges satisfy
whenever a following segment exists. Define increment costs .
Lemma 9.2 (Increment representation). For every real t, with the minimum of an empty feasible set interpreted as ,
Infinite upper bounds are omitted. If I is a singleton, there are no segment variables and the equality requires .
Proof. First fix the total mass assigned to one side. If an earlier segment is not full and a later segment has positive mass, transfer mass from to until fills or empties. Throughout the transfer, the earlier marginal cost is at most , while the later marginal cost is at least . The objective therefore does not increase. Filling the earliest available segment in this manner produces, after finitely many transfers, a prefix allocation: all earlier segments full, at most one partially filled, and all subsequent ones empty. Continuity makes its cost telescope to on the right, and to on the left.
For an arbitrary allocation in (36), let and . Prefix allocation on each side shows its cost is at least . The endpoints belong to , and convexity gives
For , express and as complementary convex combinations of those two endpoints and add the two convexity inequalities; the case is immediate. Thus every allocation has cost at least .
Conversely, for , use a prefix allocation only on the side containing . It achieves equality. The total available widths on each side are exactly the distances to the endpoints of , so the representable values of are exactly . This also proves the assertion outside the domain and for singleton domains.
9.2 Integer affine features
Theorem 9.3. Let and , and let be rational. Suppose each is an explicitly represented convex piecewise quadratic function as above, with total piece count . Problem (2) has an exact algorithm using
basic rational arithmetic operations and comparisons, independently of the encoding lengths of b, a, c, the breakpoints and domain endpoints, and all function coefficients. Intermediate encodings are polynomial in the complete input. The algorithm returns a rational optimum with an optimality certificate, or a certificate of infeasibility or unboundedness.
Proof. Apply Lemma 9.2 to each feature, with anchor . Collect all nonnegative segment variables into , and let be the signed feature-incidence matrix: its entry in row is for a right segment of , for a left segment, and zero otherwise. The feature equations are
A singleton domain has a zero row of , so this equation fixes its feature value directly. For each finite segment width , introduce a nonnegative slack with . Let select the finite-width segment variables. The complete lifted problem has nonnegative variables , integer matrix and demand
and separable convex quadratic objective
The fixed constant is omitted.
For every original point with finite objective, canonical prefix allocations yield a lift of the same cost, up to that constant. Every lifted point has cost at least its projected original cost, by Lemma 9.2. Feasibility and optimal values therefore agree; a lifted optimum projects to an original optimum.
The number of segment variables is at most , and there is at most one slack per segment. Thus the lift has variables and rows. Its matrix uses only entries of A, B and . All breakpoints and endpoints enter demands or capacities; curvatures and initial slopes enter only the objective. Constructing widths, slopes, anchors, and constants uses polynomially many rational operations. Continuity and convexity can also be checked with this many operations when needed. Theorem 1.1 now gives the asserted operation and encoding bounds.
Infeasibility of the lift has a rational Farkas certificate, and the exact feasibility correspondence makes it a certificate for the original problem. If the lift is unbounded, retain its feasible base point and negative-cost zero-curvature recession direction. Its cost tends to along that ray, and the original cost at each projected point is no larger, up to the fixed constant. This certifies original unboundedness. Finite attainment follows from attainment for the lifted QP. The optimality certificate is described below.
Write the lifted equality potential as , corresponding to the three row blocks in (39), and put . Then the certificate for the original problem is
together with primal feasibility and finite feature values. The subdifferential includes the domain normal cone at a finite endpoint. Indeed, the columns of the lifted KKT conditions give the last two relations directly. On each feature fiber, the segment and capacity KKT conditions imply, for every other feasible allocation ,
One way to see this is to use convexity of the segment objective and complementarity for its bound multipliers; their terms have the required nonnegative sign. The optimal fiber cost equals , since otherwise its prefix allocation would improve the lifted optimum. For any , insert its prefix allocation in the inequality to obtain . Outside the domain the inequality is automatic. This proves the first relation in (41). All multipliers are rational and of polynomial encoding length, and no additional optimization is needed.
Corollary 9.4 (Signed quadratic features). For arbitrary integer A, B, the objective
over admits an exact algorithm with an operation count polynomial in the dimensions and , independently of , and with polynomial intermediate encodings.
Proof. For each feature introduce with . For a fixed feature value , the identity
follows from and the positive/negative-part allocation. Replace the feature cost by . The joint matrix is , so Theorem 1.1 applies. Zero weights cause no difficulty.
The feature directions remain structural input. An arbitrary numerical Hessian factorization can transfer its coefficient encodings into B; the corollary's operation count still depends on that matrix.
Example 9.5 (Huber losses). For a rational threshold , let
The increment representation gives
Thus Theorem 9.3 includes weighted Huber losses of signed integer affine features, independently of rational thresholds, weights, and offsets. Curvature decreases from 1 to 0 at the thresholds. The same theorem covers absolute-value and squared-hinge losses.
9.3 Continuous multicommodity congestion
Corollary 9.6. Continuous multicommodity flow with rational demands, shared rational capacities, and explicitly represented convex piecewise quadratic costs of aggregate arc flow admits a strongly polynomial exact algorithm. The operation count is polynomial in the size of its explicit flow formulation and the total piece count, independently of demands, capacities, breakpoints, slopes, and curvatures. The number of commodities need not be fixed.
Proof. Use nonnegative flow variables for every commodity and arc, with individual node-balance equations. Shared upper capacities have unit slack variables. For each arc the aggregate feature is the sum of its commodity flows, and its cost is the specified univariate function. Both the balance/capacity matrix A and the aggregate-feature matrix B have entries in . Apply Theorem 9.3; its lift also has only entries.
All these results concern continuous variables and explicit finite formulations. In particular, the total number of pieces is counted as input size.
10 Discussion
The algorithm uses discrete structure in two ways: primitive integer circuits give proximity bounds, and bounded integer feature vectors allow objective compression. The shared integer optimum connects two continuous problems solely within the proof. This combination produces the local solver needed to carry tight-coordinate revelation beyond network matrices without dependence on any quadratic weight encoding.
Fixed anchors provide encoding control for the algorithm given here. They are recomputed from the original input whenever the revealed set changes and are reused while the scale decreases. This makes the encoding bound uniform over all stages; the argument does not assert that every possible moving-center design must have large encodings.
The piecewise quadratic extension uses ordered marginal ranges and a linear-size lift. It requires neither discrete segment-selection variables nor an enumeration of combinations of active pieces. The resulting guarantee applies to univariate functions of integer affine features, with their directions and piece counts retained as structural input.
The main theorem is an exact arithmetic-complexity result. It gives no practical speed comparison with numerical QP solvers or low-degree bound for the classical subroutines. Obtaining such bounds and designing a practical implementation are further questions. A geometric extension would seek an encoding-controlled local solver with logarithmic dependence on scaling-invariant circuit parameters for more general rational kernels. The integer compression argument here does not directly supply it.
Finally, extending the exact rational-output model beyond piecewise quadratics requires additional care. The problem has an interior optimum with , whose unique positive root is irrational by the rational root theorem. Thus an extension to general higher-degree convex functions would also need a different output representation and arithmetic model.
References
[1] András Frank and Éva Tardos. An application of simultaneous Diophantine approximation in combinatorial optimization. Combinatorica, 7(1):49–65, 1987. doi: 10.1007/BF02579200.
[2] Satoru Fujishige, Tomonari Kitahara, and László A. Végh. An update-and-stabilize framework for the minimum-norm-point problem. Mathematical Programming, 210:281–311, 2025. doi: 10.1007/s10107-024-02077-0.
[3] Antoine Gautier, Frieda Granot, and Harry Zheng. Qualitative sensitivity analysis in monotropic programming. Mathematics of Operations Research, 23(3):695–707, 1998. doi:10.1287/moor.23.3.695.
[4] Frieda Granot and Jadranka Skorin-Kapov. On simultaneous approximation in quadratic integer programming. Operations Research Letters, 8(5):251–255, 1989. doi:10.1016/0167-6377(89)90049-7.
[5] Frieda Granot and Jadranka Skorin-Kapov. Towards a strongly polynomial algorithm for strictly convex quadratic programs: An extension of Tardos' algorithm. Mathematical Programming, 46:225–236, 1990. doi:10.1007/BF01585740.
[6] Frieda Granot and Jadranka Skorin-Kapov. Some proximity and sensitivity results in quadratic integer programming. Mathematical Programming, 47:259–268, 1990. doi:10.1007/BF01580862.
[7] Dorit S. Hochbaum and J. George Shanthikumar. Convex separable optimization is not much harder than linear optimization. Journal of the ACM, 37(4):843–862, 1990. doi:10.1145/96559.96597.
[8] M. K. Kozlov, S. P. Tarasov, and L. G. Khachiyan. The polynomial solvability of convex quadratic programming. USSR Computational Mathematics and Mathematical Physics, 20(5): 223–228, 1980. doi:10.1016/0041-5553(80)90098-1.
[9] Éva Tardos. A strongly polynomial algorithm to solve combinatorial linear programs. Operations Research, 34(2):250–256, 1986. doi:10.1287/opre.34.2.250.
[10] László A. Végh. A strongly polynomial algorithm for a class of minimum-cost flow problems with separable convex objectives. SIAM Journal on Computing, 45(5):1729–1761, 2016. doi: 10.1137/140978296. Preliminary version in STOC 2012.