GLOBAL KNOWLEDGE ARK

Mathematics · Article

Integer optimisation, networks and scheduling

Build exact integer, network and scheduling models; prove relaxation, dual and search certificates; and distinguish efficient structure, approximation guarantees and model error.

Back to Mathematics

After reading, you can

  • Distinguish finite attainment, integer feasibility, relaxation bounds, exact gaps and sign-dependent approximation ratios.
  • Prove the network and total-unimodularity conditions that produce integral vertices, and construct residual-flow and potential certificates.
  • Derive exact knapsack recurrences, encoded-size limitations, profit scaling and charging or primal-dual approximation guarantees.
  • Justify branching, global frontier bounds, exact integer rounding and valid cuts without relying on floating tolerances.
  • Build binary implication, product, precedence, time-indexed and job-shop models with the actual domain and horizon assumptions.
  • Prove single-machine ordering and parallel list-scheduling guarantees, then separate robust decisions, discrete dual bounds and model-error transfer.
01

A discrete decision needs a complete certificate

A delivery route, a selected project and a job order are discrete choices. A fractional solution may be a useful bound without being a decision anyone can execute. This lesson begins with finite feasible sets and follows the gap between an incumbent and a certified bound through integer hulls, network flows, dynamic programming, valid cuts and scheduling.

Structure changes what can be proved. Integral network data can give integral extreme points; a shared resource row can destroy that conclusion. A numerical-capacity dynamic program can be exact and still take exponentially many states in the encoded input length. A greedy cover or a list schedule can have a proved approximation factor without producing an optimum. Each guarantee keeps its own assumptions, objective sign and complexity measure.

The examples connect computing with engineering and economic allocation. Exact balances, capacities, durations and costs describe the mathematical model, and their units must agree within each equation. A cut, potential, dual price or complete search frontier can certify a model value. Such evidence does not establish that the measured costs, horizon, demand or uncertainty description matches the real system; the final error-transfer argument makes that distinction explicit.

02

Discrete domains and attained decisions

Let X be a finite nonempty subset of Z^n and let f: X->R be finite at each decision. List its points x1, ..., xN. Comparing the finite list f(x1), ..., f(xN) produces a smallest value, and at least one point carrying that value. This proves attainment without differentiability, convexity or a continuous relaxation. A bounded integer box contains finitely many integer points, so the same argument applies to every nonempty subset of it.

Finiteness is a statement about the whole feasible set, not about the number of candidates already inspected. On X={1, 2, 3, ...}, the finite objective f(k)=1/k has infimum zero and no minimizer: every value is positive, and for every epsilon>0 an integer k>1/epsilon has f(k)<epsilon. The integer domain is closed in R, but it is unbounded; its discreteness alone does not supply the compactness missing from this example.

An empty integer feasible set has no feasible decision. Under the extended-infimum convention its minimization value is +infinity. An unbounded domain may instead have an attained minimum, such as k^2 on Z, or value -infinity, such as -k on the positive integers. These examples separate the domain, feasibility, objective value and attainment before a search algorithm is considered.

For practical finite scheduling or selection, a declared finite horizon and explicit variable bounds can establish finiteness. They must describe the actual problem: imposing an arbitrary horizon can discard the true optimum. Even a finite decision set can be exponentially large in the input length, so the existence proof does not promise an efficient exhaustive search or certify that a partially searched list is complete. Related reading: [Branching, bounds and a search frontier](https://ocw.mit.edu/courses/15-083j-integer-programming-and-combinatorial-optimization-fall-2009/e689f785132f551e635169d6694fdc13_MIT15_083JF09_lec19.pdf#page=5). A finite search setting motivates the model. The finite-list attainment proof and the unbounded 1/k counterexample are developed here; discreteness alone is not compactness.

03

Relaxations and meaningful gaps

For minimization let X be the original feasible set and R a relaxation with X subset R. If the two models use the same finite objective on X, then L=inf_{z in R}f(z)<=inf_{x in X}f(x)=v. Every feasible incumbent xhat in X supplies U=f(xhat)>=v. When L and U are finite, this yields the absolute certificate 0<=U-v<=U-L without assuming that the lower-bound relaxation or the original infimum is attained.

A minimization approximation ratio U/v is usually asserted for nonnegative costs with v>0. From L>0 one obtains U/v<=U/L, provided U is nonnegative and the incumbent is feasible. If L=0 the quotient is unavailable; an optimum v=0 requires a separate exact-zero conclusion or another error convention. For negative values the ordering and interpretation of quotients change, so a ratio cannot replace an absolute gap without stated hypotheses.

Adding a constant to every objective value preserves optimal decisions and the absolute gap but changes relative gaps. For instance values L=-3 and U=-2 enclose a finite optimum, while the quotient U/L=2/3 is not a conventional minimization approximation guarantee. Shifting both values by four changes that quotient to two, although the absolute enclosure width remains one. Relative stopping rules must name their denominator and its units.

A fractional relaxation optimizer need not belong to X. Rounding its coordinates can violate balances, logical relations or resource capacities, and its objective is not automatically an incumbent upper bound. The valid chain is a proved relaxation lower bound plus a separately checked original feasible decision. If either endpoint comes only from an approximate floating residual, its direction requires an explicit error or repair certificate. Related reading: [Branching, bounds and a search frontier](https://ocw.mit.edu/courses/15-083j-integer-programming-and-combinatorial-optimization-fall-2009/e689f785132f551e635169d6694fdc13_MIT15_083JF09_lec19.pdf#page=5). The lecture bounds use maximization conventions. Here the minimization inequalities, absolute gap and sign-dependent relative measures are derived explicitly.

04

The integer hull for a finite feasible set

Let X={x1, ..., xN} be finite and nonempty, and define P=conv(X). Every z in P is a convex combination z=sum_i theta_i xi with theta_i>=0 and sum_i theta_i=1. For a linear objective c^T z=sum_i theta_i c^T xi>=min_i c^T xi. Since each xi itself belongs to P, the minimum over P equals the minimum over X, and the finite minimum is attained.

The convex-hull statement proves existence of an integral optimal decision when the generators are integer points. It does not make every optimal relaxed decision integral. If two distinct xi have the same smallest cost, any convex combination of them is optimal over P and can have fractional coordinates. A solver returning such a tie has not failed its continuous problem, but an executable discrete decision still needs recovery.

Every vertex of the convex hull of a finite set belongs to that set. Indeed if z is represented using at least two distinct positively weighted generators, split off one positive weight to express z as a nontrivial segment unless all the positive generators coincide with z. Conversely not every generator is a vertex: an integer decision can lie between two other feasible integer points. The minimum-value argument needs neither converse nor uniqueness.

For infinite integer sets, compactness and attainment require additional care. Points of conv(X) still have finite convex-combination representations by definition; passing to its closure is a separate operation. The finite proof does not imply that the hull is compact or that the infimum is attained. In bounded selection and assignment models, finite X is enough for the proof; the difficulty is obtaining an efficient description of its hull rather than writing the formal definition. Related reading: [Total unimodularity and integral basic points](https://math.mit.edu/~goemans/18433S15/polyhedral.pdf#page=13); [Branching, bounds and a search frontier](https://ocw.mit.edu/courses/15-083j-integer-programming-and-combinatorial-optimization-fall-2009/e689f785132f551e635169d6694fdc13_MIT15_083JF09_lec19.pdf#page=5). Integer-polyhedron and enumeration notes provide context. The convex-combination value proof does not assume a compact hull description is efficiently available.

05

Total unimodularity and integral vertices

Let A be an m-by-n integer matrix of full row rank, totally unimodular, meaning every square subdeterminant is 0, 1 or -1. Let b be integral. A basis B consists of m independent columns; its determinant is nonzero and hence +1 or -1. Its inverse is adj(B)/det(B), an integer matrix because all cofactors and the denominator are integers. Therefore every basic vector xB=B^-1 b is integral, and the nonbasic entries zero are integral as well.

If the basic vector is nonnegative, it is an integral basic feasible solution of Ax=b, x>=0. Suppose this standard-form LP is feasible and its objective has a finite attained minimum. The basic-optimum result for a pointed standard-form polyhedron supplies an optimal basic feasible solution; the preceding determinant argument makes it an integer optimum. Feasible full-row-rank standard form is pointed because no nonzero direction and its negative can both preserve nonnegativity along a whole line.

For inequalities Ax<=b, x>=0, append nonnegative slacks to obtain [A I](x, s)=b. Adding unit columns preserves total unimodularity by expansion along their only nonzero entries; an identity block also gives full row rank. Thus integral b yields integral basic feasible points. If the original rows are dependent, save a consistent row reduction; an inconsistent augmented row proves infeasibility rather than harmless redundancy.

Every premise has content. An integer coefficient matrix can have determinant two and a half-integral basic solution. A totally unimodular matrix with a fractional right-hand side need not yield integral vertices. Even when an integral optimal vertex exists, a nonvertex convex mixture of tied optimal vertices can be fractional. Total unimodularity is a structural sufficient certificate for the entire relevant matrix, not a label inherited by arbitrary extra resource rows. Related reading: [Total unimodularity and integral basic points](https://math.mit.edu/~goemans/18433S15/polyhedral.pdf#page=13). The TU criterion gives integral bases under an integral right-hand side. Full-row-rank reduction and an attained finite optimum remain separate premises.

06

Network incidence and exact flow models

For each directed arc e=(u, v), let its incidence column have +1 in row u, -1 in row v and zero elsewhere. A self-loop has zero column. To prove total unimodularity, consider any square submatrix Q. If a column of Q has at most one nonzero, expand its determinant along that column and use induction on its order. If every column has two nonzeros, they are +1 and -1, so the sum of the rows is zero and det(Q)=0. The induction starts with entries 0, +1, -1.

A flow satisfies Af=b with the outgoing-positive convention. In each weakly connected component the row sum is zero, so feasibility requires its total balance to vanish. Remove one redundant row per component only after checking that consistency condition. With 0<=f<=u, append slacks for the finite capacity rows. Stacking unit rows with an incidence matrix and adding unit slack columns preserves total unimodularity by the same determinant expansion.

Integral balances b and integral finite capacities u therefore yield integral basic feasible flows. The finite box makes the nonempty feasible set compact, and every linear cost has an attained optimum. A basic optimum of the reduced slack formulation is integral, so it recovers an integer flow without rounding. Disconnected components, parallel arcs and zero capacities are permitted; parallel columns are simply tracked by their original arc identities.

A physical indivisibility constraint still has to match the chosen units. A balance of half a unit is not integral in unit-sized packets, although changing to half-unit packets changes the integer model. Adding a coupled budget or side constraint can destroy the determinant property even when the incidence block remains present. Costs may be real and need not be integral for the vertex argument; the integrality premises concern the feasible matrix and right-hand data. Related reading: [Total unimodularity and integral basic points](https://math.mit.edu/~goemans/18433S15/polyhedral.pdf#page=13); [Residual paths, integral flow and a cut](https://math.mit.edu/~goemans/18433S15/flowscuts.pdf#page=1). Incidence and capacity rows preserve the required determinant structure. Shared resource rows cannot inherit integrality merely by containing a network submatrix.

07

Maximum flow and an integer cut certificate

Take a finite directed network with distinct source s and sink t, nonnegative integer arc capacities and the zero initial flow. In the residual graph, a forward residual arc has capacity u_e-f_e and a backward residual arc has capacity f_e. An s-to-t residual path can be augmented by the minimum positive residual capacity on that path. It preserves every internal balance and both lower and upper arc bounds while increasing the flow value by that amount.

All residual capacities remain integers after an integer augmentation. Hence every successful augmentation raises the value by at least one. The value is bounded above by the finite total capacity leaving s, so any policy that chooses an actual augmenting path terminates after finitely many augmentations. This numerical upper bound can be large in binary input size; it does not establish a strongly polynomial algorithm. Arbitrary real capacities remove the integer-increment termination argument.

At termination let S be the vertices reachable from s by positive-capacity residual paths. Then s belongs to S and t does not. Every original arc leaving S is saturated, otherwise its forward residual arc would leave S. Every original arc entering S carries zero flow, otherwise its backward residual arc would leave S. Summing the flow conservation equations over S therefore gives the flow value as the capacity of the outgoing cut.

For any feasible flow, including one with fractional values, the same balance sum shows its value is at most that cut capacity: subtract incoming nonnegative flow and bound every outgoing flow by its capacity. Equality of the constructed integral flow and this upper bound proves maximum flow and minimum cut simultaneously. Residual reachability is the certificate; the number of iterations or a picture of large flow is not. Source/sink incoming arcs can be retained in the balance convention. Related reading: [Residual paths, integral flow and a cut](https://math.mit.edu/~goemans/18433S15/flowscuts.pdf#page=1). The residual reachable-set cut proves optimality. Integer capacities justify this elementary termination argument; arbitrary real-capacity augmentations need another termination result.

08

Bipartite matching versus an odd cycle

For a finite bipartite graph with parts L and R, let x_e>=0 and impose sum_{e incident v}x_e<=1 at every vertex. The unsigned node-edge incidence matrix has two +1 entries per edge. Multiply the rows in R by -1 to obtain a directed incidence matrix oriented from L to R. Sign changes of rows preserve absolute subdeterminants, so this matrix is totally unimodular. Restoring signs and appending slacks preserves the property.

The right-hand capacities are integral and the feasible set is bounded: each edge variable is at most one. Thus an optimal basic solution for any linear edge objective is integral. Nonnegative integral variables with every incident sum at most one are precisely the incidence vectors of matchings. This proves the existence of an optimal matching from the relaxation for bipartite graphs, without demanding that a fractional tied optimum be integral.

On a triangle, put one variable on each edge. The three degree inequalities imply 2(x12+x23+x31)<=3. Setting all three variables to 1/2 satisfies every inequality and attains the upper bound 3/2. An integer matching has at most one edge because any two triangle edges share a vertex; one edge is feasible, so its integer optimum is one. The three tight degree equations have a nonsingular determinant of magnitude two, consistent with the failure of total unimodularity.

The distinction is structural, not a failure of arithmetic. The triangle is not bipartite and cannot receive a two-part row-sign transformation with one positive and one negative incidence per edge. A fractional edge-half solution is a valid continuous packing but not a matching. Extra odd-set inequalities repair this particular obstruction; their validity must be proved separately, and proving a complete nonbipartite matching-polytope description is a stronger theorem. Related reading: [Total unimodularity and integral basic points](https://math.mit.edu/~goemans/18433S15/polyhedral.pdf#page=13); [Integer formulations and valid rounding](https://ocw.mit.edu/courses/15-083j-integer-programming-and-combinatorial-optimization-fall-2009/5be17dfa9a150e8db5b9fb76905d2408_MIT15_083JF09_lec03.pdf#page=3). Bipartite incidence can be signed into a network matrix. The triangle half-solution shows why the same degree relaxation is insufficient on a nonbipartite graph.

09

Odd-set inequalities

Let M be any matching in a finite graph, and let S be a subset containing an odd number q of vertices. Every edge of M whose two endpoints lie in S consumes two distinct vertices of S. Internal matching edges are vertex-disjoint, so their number k satisfies 2k<=q. Since k is an integer and q is odd, this strengthens to k<=(q-1)/2. In edge variables the valid inequality is sum_{e with both endpoints in S}x_e<=(|S|-1)/2.

Edges with only one endpoint in S are not counted in that sum. They may use additional vertices of S and can only reduce the available room for internal edges; omitting them from the counting proof remains valid. For a singleton S the left sum is zero in a loop-free matching graph and the right side is zero. Self-loops need an explicit convention and are excluded from this ordinary matching model.

For the triangle, take S to be all three vertices. The cut says x12+x23+x31<=1 and removes the degree-feasible half-each point of sum 3/2. It preserves every actual matching because the counting proof applies to each one. A valid cut can therefore raise a relaxation lower bound for minimization or lower an upper bound for maximization without removing an original feasible decision.

Fractional degree bounds do not count an odd vertex set correctlyThe half-edge point violates the triangle’s odd-set cut; Every cycle edge has weight 1/2 in the degree-only solution. The orange integer matching uses 1 disjoint edges and leaves vertex 3 unmatched.Fractional degree bounds do not count an odd vertex set correctly-1.301.3-1.241.24All cycle edges carry 1/2 in the fractional solutionDisjoint edges of the integer matching123Cycle verticesEqual axis units · cycle vertices and matched edges
Every cycle edge has weight 1/2 in the degree-only solution. The orange integer matching uses 1 disjoint edges and leaves vertex 3 unmatched.

Each vertex degree inequality has right side one. Summing all n inequalities counts every selected edge twice and bounds the fractional value by n/2, attained with half weights. Each integer matching uses two vertices per edge, giving at most (n−1)/2 edges. The shown matching reaches that odd-set bound, which excludes the half-weight assignment.

Exact matching and odd-set certificate
QuantityExact result
Number of vertices3
Fractional assignmentx_e=1/2 on every edge
Fractional objective and proved bound3/2
One integer maximum1–2
Integer value / bound1
Whole-set odd-cutΣ cycle-edge x_e ≤ 1
Violation of that cut by the fractional assignment1/2
Exact inputs and supporting calculations
Declared inputs
ParameterValue
n3

Validity of this family does not by itself prove that the resulting system has only matching vertices or that an efficient separation procedure has been supplied. Those are additional polyhedral and algorithmic statements. In a proof certificate, record the exact set S and the integer count that proves the cut; do not call an arbitrary visually plausible strengthening a blossom inequality or assume a cut is safe merely because it removes a fractional candidate. Related reading: [Integer formulations and valid rounding](https://ocw.mit.edu/courses/15-083j-integer-programming-and-combinatorial-optimization-fall-2009/5be17dfa9a150e8db5b9fb76905d2408_MIT15_083JF09_lec03.pdf#page=3). The selected MIT odd-set proof counts internal matching edges twice. This establishes validity, rather than a complete matching-polytope description.

10

Minimum-cost flows and residual cycles

Fix balances b and finite capacities 0<=f_e<=u_e on a finite directed network, with a feasible flow f and real arc costs c_e. Each unsaturated original arc has a forward residual arc of capacity u_e-f_e and cost c_e; each positive original flow has a reverse residual arc of capacity f_e and cost -c_e. Keep each residual arc tied to its original arc, including parallel arcs. Augmenting a directed residual cycle by any positive amount within all its residual capacities preserves Af=b and the capacity box.

If a residual cycle has negative total cost, the augmentation changes the objective by the positive augmentation amount times that negative sum. It strictly improves f, so an optimal flow cannot have such a cycle. This argument concerns residual cycles, not just source-to-sink paths: an improvement can redistribute fixed supplies without changing their net values. Zero-cost cycles may create different tied optima and do not contradict optimality.

Conversely let fprime be any other feasible flow and delta=fprime-f. Where delta_e>0 put that amount on the forward residual arc; where delta_e<0 put -delta_e on the reverse residual arc. The capacity bounds of both flows ensure that these amounts fit the residual capacities. Their node balances vanish because A delta=0, so they form a nonnegative residual circulation. A positive arc can be followed until a vertex repeats; the resulting directed cycle can be subtracted at its smallest used amount. Each subtraction eliminates a positive arc, and finite repetition decomposes the circulation into nonnegative weighted cycles.

A residual transfer follows one path forward and the other backwardTransfer to the cheaper B path; Moving 3 units from A to B changes exact cost 12 to 3. The forward network still routes from s to t.A residual transfer follows one path forward and the other backward3 → 0 / 3residual cost −40 → 3 / 3residual cost +13 → 0 / 3residual cost 00 → 3 / 3residual cost 0sabtOriginal flow before→after / original capacity. Arrows show residual direction.
Moving 3 units from A to B changes exact cost 12 to 3. The forward network still routes from s to t.

Decreasing one path and increasing the other preserves demand and internal conservation. Its residual cycle cost is the outgoing path cost minus the cancelled path cost, with bottleneck equal to the smaller forward and reverse residual capacity. The linear cost over the exact feasible interval proves the chosen endpoint or an entire tie.

Exact flow and optimality
QuantityExact result
Feasible interval for A flow[0, 3]
Initial split A/B(3, 0)
New optimal split A/B(0, 3)
Transfer amount3
Initial / final cost12 / 3
Change in cost-9
OptimalityCost = 3·1 + (3)x_A over the feasible interval.
Exact inputs and supporting calculations
Declared inputs
ParameterValue
D3
cap[3,3]
cost[4,1]
initialA3
Residual transfer choices
TransferUnit cycle costAvailable amountDirected cycle
A to B-33s→b→t→a→s
B to A30s→a→t→b→s

The cost difference c^T(fprime-f) equals the sum of the weights times those residual cycle costs. If no negative residual cycle exists, every summand is nonnegative and fprime cannot improve f. Thus absence is sufficient as well as necessary. The proof works for real flows and costs, and asserts a certificate rather than finite termination of an arbitrary cycle-canceling algorithm. An infeasible starting flow or a changed balance vector is outside its comparison. Related reading: [Residual cycles and minimum-cost potentials](https://people.orie.cornell.edu/~dpw/orie633/LectureNotes/lecture11.pdf#page=3). The Cornell residual-cycle equivalence is used with ordinary original arcs. The conformal difference decomposition and cost signs are spelled out here; the source’s lower-bound shift is not needed for this proof.

11

Potentials as a flow certificate

Add a super-source with a zero-cost arc to every vertex of a finite residual graph. If the graph has no negative directed cycle, each vertex has a finite shortest-path distance d_v: it is reachable, and any repeated-vertex portion of a walk is a nonnegative cycle that can be removed without increasing its cost. It is therefore enough to minimize over finitely many simple paths. Every residual arc u->v of cost k satisfies d_v<=d_u+k.

It follows that the reduced residual cost k+d_u-d_v is nonnegative. Summing this expression around a directed cycle cancels all distances and leaves its original cost, which must therefore be nonnegative. Conversely, any finite vertex potentials with nonnegative reduced residual costs rule out a negative cycle by this telescoping sum. The super-source ensures disconnected components are included; shortest distances only from one original source could miss a disconnected negative cycle.

For the outgoing-positive incidence convention put pi=-d on the original vertices and r_e=c_e-pi_tail+pi_head. A present forward residual arc forces r_e>=0; a present backward arc forces r_e<=0. Let z_e=max(0, -r_e) and s_e=r_e+z_e>=0. Then A^T pi-z<=c, z>=0 is dual feasible for the capacity-bounded minimum-cost flow. Its bound is pi^T b-u^T z, as c^T g-(pi^T b-u^T z)=sum_e[g_e s_e+(u_e-g_e)z_e]>=0 for every feasible g.

At the candidate f, positive r_e implies f_e=0 and negative r_e implies f_e=u_e; when r_e=0 both z_e and s_e vanish. Thus every gap product is zero and the bound equals c^T f. This is a complete numerical-symbolic certificate with explicit signs and finite capacities. Potentials can shift by a componentwise constant without changing reduced costs; they are not unique physical prices. Approximate reduced costs require a separate bounded error estimate. Related reading: [Residual cycles and minimum-cost potentials](https://people.orie.cornell.edu/~dpw/orie633/LectureNotes/lecture11.pdf#page=3). Super-source distances cover every residual component. The balance dual and capacity penalties keep the certificate valid for nonzero source and sink balances.

12

Assignment decompositions

Let X be an n-by-n nonnegative matrix with every row and column sum one. For n=0, the empty matrix is the unique empty permutation matrix, with coefficient one in its decomposition. The construction below assumes n>=1. Build a bipartite support graph with an edge i-j exactly when X_ij>0. For any set I of rows, all its positive mass lies in its neighboring columns N(I), so |I|=sum_{i in I, j}X_ij<=sum_{j in N(I), i}X_ij=|N(I)|. This is the Hall cardinality condition for the positive support.

For completeness, choose a maximum-cardinality support matching, which exists in a finite graph. If a row is unmatched, search alternating paths from it. There is no reachable unmatched column, otherwise reversing an augmenting path would enlarge the matching. Let R and C be the reachable rows and columns. Every neighbor of R is in C; every column in C is matched to a reachable row, and these matches pair C with R excluding the starting unmatched row. Hence |N(R)|=|C|=|R|-1, contradicting the preceding condition. The support therefore contains a perfect matching and its permutation matrix P.

Set epsilon=min_i X_i, perm(i)>0. Subtract epsilon P. The remainder is nonnegative and has every row and column sum 1-epsilon. If epsilon=1, it is zero and X=P. Otherwise Y=(X-epsilon P)/(1-epsilon) is doubly stochastic and X=epsilon P+(1-epsilon)Y. At least one positive support entry becomes zero, and no zero entry becomes positive. Repeating on Y terminates after finitely many such eliminations; expanding the recursion gives a convex combination of permutation matrices with nonnegative coefficients summing to one.

The construction proves the decomposition and, by averaging, that a linear assignment cost has an optimal permutation. It does not say an arbitrary optimal matrix returned by a continuous solver is itself a permutation: ties allow fractional mixtures. The proof assumes square matrices with both margin sums one. General transportation margins require a different integral-flow statement, and nonintegral margins need not have integral vertices. The decomposition follows exact positive support, not a tolerance-based guess of which entries are zero. Related reading: [Total unimodularity and integral basic points](https://math.mit.edu/~goemans/18433S15/polyhedral.pdf#page=13); [Integer formulations and valid rounding](https://ocw.mit.edu/courses/15-083j-integer-programming-and-combinatorial-optimization-fall-2009/5be17dfa9a150e8db5b9fb76905d2408_MIT15_083JF09_lec03.pdf#page=3). Matching and integrality provide the setting. The complete Hall and support-subtraction argument is supplied here, including the possibility of tied fractional optima.

13

Knapsack dynamic programming

There are n items, each usable at most once, with integer weight w_i>=0, profit p_i>=0 and integer capacity W>=0. Define D_i(v) as the largest profit obtainable from the first i items using total weight at most v, for v=0, ..., W. The empty choice gives D_0(v)=0. Every optimal subset either omits item i or includes it; in the latter case its remaining subset uses only the first i-1 items and has weight at most v-w_i.

Consequently D_i(v)=D_(i-1)(v) when w_i>v, and otherwise D_i(v)=max{D_(i-1)(v), p_i+D_(i-1)(v-w_i)}. Each right-hand choice is actually attainable by a subset, so the upper comparison and its converse prove the recurrence exactly by induction. Save which branch is taken to recover an executable subset, including a declared tie rule if two profits coincide.

A zero-weight positive-profit item is safe in this item-indexed recurrence because the included branch still refers to i-1. A capacity-only update that repeatedly uses the same state can instead represent unbounded multiplicity and create a false infinite profit. Items heavier than W are individually infeasible and may be discarded; negative weights would invalidate the declared state range and are excluded. Empty capacity does not forbid zero-weight items.

A finite table certifies the best integer profitComplementary items fill the resource; At capacity 5 the best value is 8. The selected subset is exact.A finite table certifies the best integer profit-0.609.12-0.485.58Final dynamic-programming row (steps between integer capacities)capacity 5Exact final capacity valueInteger capacity horizontally · best value vertically
At capacity 5 the best value is 8. The selected subset is exact.

For each item compare skipping it with taking its value plus the previous-row value at the reduced capacity. Refer only to the preceding row so an item cannot be used twice. Backtracking follows every tied branch if all optima are required. An O(nW) bound depends on W itself, which can be exponential in the number of bits that encode W.

Exact integer choices
QuantityExact result
Optimal value8
One optimal subset{1, 2}
All optimal subsets{1, 2}
State count4×6
Time boundO(nW), pseudo-polynomial in the numerical capacity
Exact inputs and supporting calculations
Declared inputs
ParameterValue
weights[2,3,4]
values[3,5,6]
W5
Full exact dynamic-programming table
Items admitted012345
0000000
1003333
2003558
3003568
Exact backtracking in (items, capacity) coordinates
BranchPreceding-row trace
One optimal path(3,5) omit item 3 → (2,5) take item 2 → (1,2) take item 1 → (0,0)

There are n(W+1) updated states in addition to the base layer and at most two predecessor comparisons each, so the algorithm takes O(n(W+1)) arithmetic operations (usually written O(nW) when W>=1). This is pseudopolynomial: W may be exponentially large in its binary bit length. Profit additions and comparisons also have their own bit costs. Memory can be reduced with careful descending-capacity updates for positive weights, but reconstruction and zero-weight handling must retain the 0-1 meaning. Exactness of the recurrence is separate from its practical running time. Related reading: [Knapsack scaling and encoded size](https://people.csail.mit.edu/ghaffari/AA18/Notes/S_18_02.pdf#page=1). The knapsack notes distinguish state counts from encoded input size. The item-indexed recurrence here handles a zero-weight item once and proves include/exclude optimality.

14

The fractional knapsack bound

Consider the fractional knapsack relaxation 0<=x_i<=1, sum_i w_i x_i<=W, with all w_i>0 and p_i>=0. Sort by nonincreasing ratios rho_i=p_i/w_i. If W is at least the total weight, take every item; this is optimal because every profit is nonnegative. Otherwise fill items in that order until one breakpoint item k uses the remaining capacity, possibly at one of its endpoints, and set all later items to zero.

For a threshold rho=rho_k, write every candidate profit as rho sum_i w_i x_i+sum_i(p_i-rho w_i)x_i. The first term is at most rho W because rho>=0. For i<k the coefficient in the second sum is nonnegative and its term is at most p_i-rho w_i; for i>k it is nonpositive and its term is at most zero. The coefficient at k is zero. Therefore every feasible profit is at most rho W+sum_{i<k}(p_i-rho w_i).

The sorted-fill candidate achieves this bound: its capacity is full, all earlier coordinates equal one, and later coordinates vanish. This proves optimality without assuming that merely swapping a few observed items certifies the whole polytope. Ratio ties can be ordered arbitrarily; one sorted-fill optimum still has at most one fractional coordinate, although other tied optimal solutions can have several fractional coordinates.

The fractional maximum is an upper bound on the 0-1 maximum, or its negative is a lower bound for minimizing negative profit. Taking just the full preceding items creates a feasible integer subset, but it need not be optimal and any approximation ratio requires its own argument. Zero weights must be preprocessed rather than divided by, negative profits may be omitted under a <= capacity model, and additional resource rows invalidate this single-threshold proof. Related reading: [Knapsack scaling and encoded size](https://people.csail.mit.edu/ghaffari/AA18/Notes/S_18_02.pdf#page=1); [Branching, bounds and a search frontier](https://ocw.mit.edu/courses/15-083j-integer-programming-and-combinatorial-optimization-fall-2009/e689f785132f551e635169d6694fdc13_MIT15_083JF09_lec19.pdf#page=5). The fractional relaxation is a bound, not an integer rounding rule. The exchange and threshold proofs include tied ratios and an integral endpoint.

15

A profit-scaled approximation scheme

Fix 0<epsilon<1. First select all zero-weight positive-profit items and set their profit aside; discard items with weight greater than W. If no remaining item has positive profit, the residual optimum is zero and this preprocessing solves the problem. Otherwise let n be the number of remaining positive-weight items and Pmax their largest profit. Each such item is individually feasible, so Pmax<=OPT_residual. Set K=epsilon Pmax/n and q_i=floor(p_i/K).

For each i and integer scaled-profit target t, let M_i(t) be the smallest weight of a subset of the first i items with scaled profit exactly t, using +infinity for an unattainable target. Initialize M_0(0)=0 and all other targets +infinity. The exact recurrence is M_i(t)=min{M_(i-1)(t), w_i+M_(i-1)(t-q_i)} with the second term excluded when t<q_i. Choose a largest attainable t with M_n(t)<=W and recover its subset S. This is an exact dynamic program for the rounded profits, not a relaxation of feasibility.

For a residual optimal subset Sstar, we have K sum_{i in Sstar}q_i>OPT_residual-nK, because 0<=p_i-Kq_i<K for each item. The chosen S has at least as large a scaled profit, so its actual profit is at least K sum_{i in S}q_i>=K sum_{i in Sstar}q_i>OPT_residual-epsilon Pmax>=(1-epsilon)OPT_residual. Adding the common nonnegative zero-weight profit preserves the same ratio for the total problem. A non-strict >= ratio conclusion follows immediately from these strict intermediate estimates.

Each q_i<=n/epsilon, so the total scaled-profit index is at most n^2/epsilon. The basic item-by-profit implementation therefore takes O(n^3/epsilon) arithmetic operations and polynomial storage, with normal rational input/rounding bit costs also retained. This is a fully polynomial approximation scheme in n and 1/epsilon, not an exact polynomial algorithm for all capacities. The proof relies on nonnegative profits, original 0-1 feasibility and the individually feasible Pmax bound; using the largest infeasible item profit would break its error comparison. Related reading: [Knapsack scaling and encoded size](https://people.csail.mit.edu/ghaffari/AA18/Notes/S_18_02.pdf#page=1). The source motivates profit scaling. This derivation supplies the correct empty profit state, attainable target and exact rounding-loss bound, including rational scaling.

16

Why binary size matters

An integer capacity W=2^k requires only k+1 binary digits, but a dynamic program with states 0, ..., W has 2^k+1 capacity entries. Thus a bound polynomial in W is not automatically polynomial in the encoding length. Both statements can be useful: bounded physical capacities may make the recurrence practical, while a complexity claim for arbitrary binary data must account for this exponential distinction.

A direct decision reduction makes the numerical connection explicit. Given positive integers a1, ..., an with total 2B, the partition question asks whether a subset sums to B. Construct a 0-1 knapsack instance with weight and profit both a_i, capacity B and target profit at least B. Every feasible subset has profit equal to its weight and at most B. It meets the target exactly when its weight is B, which is exactly a partition of the total into two equal sums.

The construction copies the integer data and uses a sum whose bit length is bounded by the largest input bit length plus a logarithmic n allowance. It is therefore a polynomial-size reduction. Odd total can be rejected immediately in the partition problem; the even-total premise above states the actual nontrivial map. If one invokes the separate established complexity classification of Partition, this reduction transfers that hardness to the corresponding knapsack decision problem; the reduction alone is not a proof of that external classification.

Neither a reduction nor a slow exhaustive algorithm proves P!=NP, an unconditional exponential lower bound, or that every structured integer model is difficult. Network-flow and assignment structure can give exact polynomial algorithms despite integrality, while some integer programs have small bounded domains. Approximation schemes add another distinction: an approximation guarantee with explicit epsilon is not an exact decision algorithm. Report the data encoding, model family and claimed task before attaching a complexity label. Related reading: [Knapsack scaling and encoded size](https://people.csail.mit.edu/ghaffari/AA18/Notes/S_18_02.pdf#page=1). Numerical capacity and binary length are different measures. The explicit partition reduction preserves encoded size and keeps its complexity conclusion conditional on the stated known classification.

17

Set cover and the charging argument

Let a finite universe U be covered by a finite family of nonempty sets with positive costs c(S), and suppose their union is U. Greedy repeatedly chooses a set minimizing cost divided by the number of its currently uncovered elements, ignoring sets with no new elements. Charge each newly covered element that chosen ratio. Each step covers at least one new element, so the procedure stops after at most |U| steps, and the sum of all element charges equals its total selected cost.

Fix any available set S of size k. Order its elements by the time they are first covered, breaking ties within a step arbitrarily. Before the jth such element is covered, at least k-j+1 elements of S were still uncovered at the start of that step. Since greedy could choose S, its charged ratio is at most c(S)/(k-j+1). This remains true for within-step ties because the actual uncovered count can only be larger than that lower bound.

Summing the ordered inequalities yields sum_{e in S}charge(e)<=c(S)(1+1/2+...+1/k)=H_k c(S). If d is the largest set cardinality, this is at most H_d c(S). For any optimal cover, the sum of its sets' element charges counts every element at least once and perhaps more than once; charges are nonnegative. Therefore greedy_cost=sum_{e in U}charge(e)<=sum_{S in optimal cover}sum_{e in S}charge(e)<=H_d OPT.

The proof is for weighted set cover, not a disjoint partition: an element is charged only when first covered, while the comparison deliberately allows overlap. The empty universe is solved by the empty cover with zero cost and can be handled before defining a positive d. An uncovered element outside the union makes the instance infeasible rather than an infinite-ratio approximation. Negative set costs require different preprocessing/modeling, and an arbitrary tie rule changes the actual chosen cover but preserves this bound. Related reading: [Greedy set cover and matching certificates](https://people.csail.mit.edu/ghaffari/AA18/Notes/S_18_01.pdf#page=1). The selected charging proof gives the localized finite harmonic factor. Source numerical and harmonic-expression slips are excluded; the theorem uses positive costs and a coverable universe.

18

A dual witness for cover quality

The fractional weighted set-cover primal minimizes sum_S c(S)x_S subject to sum_{S containing e}x_S>=1 for every element e, and x_S>=0. Nonnegative element prices y_e satisfying sum_{e in S}y_e<=c(S) for every set give a lower bound sum_e y_e. Indeed multiply each covering row by y_e, sum, reorder the finite sums, and use the set-price inequalities to obtain sum_e y_e<=sum_S x_S sum_{e in S}y_e<=sum_S c(S)x_S.

Let q_e be the nonnegative first-coverage charge from greedy minimum cost per newly covered element. The preceding charging proof gives sum_{e in S}q_e<=H_d c(S) for every available set, where d>=1 is the largest set cardinality. Consequently y_e=q_e/H_d is dual feasible. This makes the lower bound explicit rather than inferring optimality from the greedy selection order.

Because sum_e q_e equals the greedy cost, we have greedy_cost=H_d sum_e y_e<=H_d fractional_OPT<=H_d integer_OPT. The same saved price vector certifies a concrete lower bound even when it is not optimal for the dual. For these particular scaled prices the certified lower bound is exactly greedy_cost/H_d, so the resulting factor is H_d. A sharper instance-specific ratio requires a stronger certified lower bound; every interpretation still requires positive costs and the declared finite coverable universe.

The dual prices are proof devices and need not be market prices or unique. Greedy charges themselves can violate a set inequality; the harmonic scaling is essential to the general construction. A price vector that was checked only on chosen sets is insufficient, as every available set is a dual constraint. An uncovered universe element means the primal is infeasible and must be handled before assigning an approximation ratio. Related reading: [Greedy set cover and matching certificates](https://people.csail.mit.edu/ghaffari/AA18/Notes/S_18_01.pdf#page=1). The source charging inequality is converted here into a complete packing-dual witness. The scaling by H_d is essential to dual feasibility.

19

A matching-based vertex-cover approximation

In a finite loop-free undirected graph, a matching has no shared endpoints. Extend a matching greedily until no additional edge has two unmatched endpoints; the result is maximal under inclusion. Let C contain both endpoints of every matching edge. If an edge had neither endpoint in C, both its endpoints would be unmatched and the matching could be extended, contradicting maximality. Hence C is a vertex cover.

Any vertex cover must contain at least one endpoint of each matching edge. Those edges are vertex-disjoint, so the choices require at least |M| distinct vertices. Thus OPT_cover>=|M|, while the constructed cover has |C|=2|M|. It follows that |C|<=2 OPT_cover. For a graph with no edges, the empty matching and cover are both optimal and the inequality holds without dividing by zero.

Maximal does not mean maximum cardinality. A short inclusion-maximal matching still gives this lower bound and guarantee, but it may produce a poorer cover than another choice. On a path of three edges, choosing its middle edge is maximal of size one, while choosing the two outer edges gives size two. The proof uses only maximality for coverage and disjointness for the lower bound; neither step requires the matching to solve its own maximum problem.

This is an unweighted cover guarantee. Counting endpoints does not bound arbitrary vertex costs: one endpoint may be extremely expensive. A weighted model needs a different certificate such as feasible edge prices and tight vertices. Nor does an edge cover, which covers vertices using edges, mean the same optimization problem. State the selected object and the property that must be covered before applying a graph approximation argument. Related reading: [Greedy set cover and matching certificates](https://people.csail.mit.edu/ghaffari/AA18/Notes/S_18_01.pdf#page=1). The source proves the maximal-matching endpoint guarantee. Inclusion-maximal and maximum-cardinality are different properties.

20

Weighted vertex cover by primal-dual growth

Let each vertex v of a finite loop-free graph have nonnegative cost c_v. Set every edge price y_e=0 and initially choose all zero-cost vertices. Maintain feasibility sum_{e incident v}y_e<=c_v. If an edge uv is still uncovered, neither endpoint has been selected, and every previously tight vertex has been selected. Both endpoint slacks are therefore positive. Increase only y_uv by the smaller of those two slacks, then select every newly tight endpoint.

The update preserves nonnegativity of prices and all vertex-price inequalities: only u and v change, and neither increase exceeds its slack. At least one new vertex becomes tight and covers the processed edge, so the algorithm terminates after finitely many selections. Zero-cost vertices have already been selected; they need no positive price increase. The final set C covers every edge, and every selected vertex remains tight because later growth occurs only on uncovered edges, whose endpoints lie outside C.

For any vertex cover T, the feasible prices give sum_v in T c_v>=sum_v in T sum_{e incident v}y_e>=sum_e y_e, as every edge has an endpoint in T. For the constructed tight cover, C_cost=sum_{v in C}c_v=sum_e y_e times the number of its endpoints in C<=2 sum_e y_e. Combining yields C_cost<=2 OPT. All sums are finite, and double-counting an edge whose two endpoints are selected explains the factor two.

The exact chosen cover and actual ratio depend on the edge processing and tie conventions. The price vector alone is a lower-bound witness; the tight-cover construction adds the upper bound. A tight vertex that was omitted while later increasing an incident uncovered edge could destroy price feasibility, which is why the invariant selects tight endpoints immediately. This proof concerns nonnegative costs and ordinary edge coverage, not an arbitrary weighted hitting-set instance with larger hyperedges. Related reading: [Greedy set cover and matching certificates](https://people.csail.mit.edu/ghaffari/AA18/Notes/S_18_01.pdf#page=1). The weighted price-growth proof is developed here from the matching and dual-certificate setting. Nonnegative costs, tight endpoints and finite coverage remain explicit.

21

Branching partitions the integer decisions

At a search node let the integer decisions satisfy all original constraints plus saved branching restrictions. Suppose an exact relaxation optimizer has a fractional coordinate xhat_j and the original variable x_j is integer. Every integer value satisfies exactly one of x_j<=floor(xhat_j) or x_j>=ceil(xhat_j). The two child sets are disjoint and their union contains all integer decisions in the parent; there is no integer between those two adjacent bounds.

A valid node relaxation lower bound ell is no greater than the infimum over the node integer decisions. If a previously checked original feasible incumbent has cost U and ell>=U, the node cannot improve it and may be pruned. A proved infeasible relaxation also proves the integer subset infeasible. If the relaxation optimum itself satisfies every original integer/domain requirement, it supplies a feasible incumbent with node-optimal cost by equality with its lower bound.

For finitely bounded integer variables, a branch chosen at a fractional coordinate strictly reduces an integer bound range along either child path. The sum of all such ranges is a nonnegative integer and drops at least one per branch, so a complete finitely branching tree has finite depth and finitely many nodes. This proves termination for the ideal exact bounded model when every node operation is completed. It does not bound the tree by a small polynomial or justify treating a timed-out node as solved.

Every saved restriction, relaxation and pruning reason is part of the proof. An approximate point that merely rounds to nearby integers may be infeasible, while an approximate bound with the wrong direction can discard the optimum. Unbounded variables remove this finite-tree argument, and nonlinear or continuous auxiliary variables may need their own node-existence assumptions. Branching is a partition of actual integer decisions, not an authorization to change their bounds for convenience. Related reading: [Branching, bounds and a search frontier](https://ocw.mit.edu/courses/15-083j-integer-programming-and-combinatorial-optimization-fall-2009/e689f785132f551e635169d6694fdc13_MIT15_083JF09_lec19.pdf#page=5). The lecture gives binary enumeration and pruning. The floor/ceiling partition and finite bounded-integer extension are proved here; the unselected general-integer continuation is not cited as read.

22

A global branch-and-bound certificate

Maintain a tree whose live leaves partition all original decisions not yet closed by proved infeasibility, an exact solved-node result or a bound-pruning certificate. Let U be the best finite cost among checked original feasible incumbents. At each live node N retain ell_N<=inf_{x in X_N}f(x). Set L=min{U, min_live ell_N}, with the inner minimum taken as +infinity if no live nodes remain. This clamping by U also handles live bounds already above the incumbent.

Every live-node decision has objective at least its own bound and hence at least L. Every closed feasible subtree has infimum at least the incumbent cost in force when it was closed, or was solved to a cost already recorded; subsequent incumbent improvements only decrease U. It therefore also has infimum at least the current U and hence L. Infeasible subtrees contribute no decision. Since the tree covers the original domain, this proves L<=v<=U.

If the live set is empty and U is finite, the formula gives L=U and hence exact optimality. If no feasible incumbent exists, use U=+infinity as an extended placeholder; an empty live set with every leaf proved infeasible then certifies infeasibility rather than a finite optimum. A live bound -infinity gives no finite absolute gap, even if the incumbent is good. An unboundedness declaration requires its own original feasible improving sequence or ray, not just an unbounded relaxation.

A checkpoint must retain the exact open-node list and every closure reason; otherwise the apparent minimum of the visible bounds need not cover a lost subtree. Queue completion, time limits or a solver percentage do not substitute for this partition invariant. With finite L and U, stopping at U-L<=delta is a rigorous absolute certificate for this model when the incumbent and all bound directions are valid. Any displayed relative gap additionally needs its explicit denominator convention. Related reading: [Branching, bounds and a search frontier](https://ocw.mit.edu/courses/15-083j-integer-programming-and-combinatorial-optimization-fall-2009/e689f785132f551e635169d6694fdc13_MIT15_083JF09_lec19.pdf#page=5). A valid global bound needs coverage by the entire live frontier and actual closure evidence. Empty frontiers and missing incumbents are handled separately.

23

Safe rounding and stopping gaps

Suppose every original feasible objective value is an integer, and L is an exact valid lower bound. Every feasible value k then satisfies k>=L and k in Z, so k>=ceil(L). Thus ceil(L) is also a valid lower bound. If a feasible integer-valued incumbent U equals ceil(L), it is optimal. The rounding is upward for a minimization lower bound; rounding the incumbent downward need not preserve feasibility or any objective value.

The integer-value premise can follow from an integer linear objective and integer decision variables. It does not follow from integral resource data alone when costs are fractional or include uncontrolled continuous variables. Rational costs can sometimes be multiplied by a proved common denominator to obtain an integer-valued objective, but both lower bounds and incumbent costs must use that same scale. Objective shifts and units must be recorded before comparing a rounded certificate.

For example, an exact lower bound 17/5 safely becomes 4. A floating output 3.400001 that was never proved a lower bound has no such authority, even if its upward rounding happens to be the same numeral. Near an integer, an error in direction can be decisive: reporting a slightly excessive value above 4 and taking its ceiling could falsely rule out an actual optimum 4. Interval arithmetic or an independently derived correction can establish a safe directed bound; an unchecked tolerance cannot.

If L<=v<=U are finite exact bounds, then U-L bounds objective loss. Integer-valued costs may allow exact closure before that width becomes numerically zero, while a relative stopping threshold can be undefined at zero or misleading after a shift. Approximate integrality of coordinates also needs original-domain verification: rounding a point is a new candidate that must satisfy every original constraint before it supplies U. Related reading: [Branching, bounds and a search frontier](https://ocw.mit.edu/courses/15-083j-integer-programming-and-combinatorial-optimization-fall-2009/e689f785132f551e635169d6694fdc13_MIT15_083JF09_lec19.pdf#page=5); [Cuts from exact integer arithmetic](https://ocw.mit.edu/courses/15-083j-integer-programming-and-combinatorial-optimization-fall-2009/8fbabfd4ab31165cfc55f2baf5fff043_MIT15_083JF09_lec17.pdf#page=1). Exact objective-grid information can strengthen a lower bound. A solver tolerance, approximate feasibility or an uncertified floating value cannot supply that premise.

24

Chvatal-Gomory rounding

Let x be integer and satisfy Ax<=b. Choose a nonnegative multiplier vector u so that a=u^T A is an integer row. Multiplying and summing the original inequalities preserves their direction and gives a x<=u^T b. Since a x is an integer, it follows that a x<=floor(u^T b). This is a valid Chvatal-Gomory cut for every original feasible integer decision, regardless of whether it cuts the current relaxation point.

The validity proof uses exact aggregation and exact floor. Coefficients of A and b may be rational or otherwise precisely specified; what matters for rounding is that the resulting row a is integral and the right-hand value is controlled. With a merely near-integer aggregated coefficient, a x need not be integer. Negative multipliers are not generally allowed for <= rows because multiplying by a negative reverses that row; equalities can instead be treated with their proper free multiplier convention.

As a symbolic example, adding 2x+y<=4 and x+2y<=4 with multipliers 1/3 and 1/3 gives x+y<=8/3. Integer x+y therefore satisfies x+y<=2. The fractional point (4/3, 4/3) satisfies the original rows and violates this cut. Feasible integer points such as (2, 0) or (1, 1) remain, so the cut proves that the maximum of x+y is two when these points meet all domain restrictions.

The cut tightens a relaxation and preserves the integer model; it is not by itself proof that repeated cuts terminate rapidly or describe the whole integer hull. Keep its multiplier, aggregated coefficient row and exact right-hand floor as a reproducible certificate. Floating accumulation followed by an unproved coefficient snap can create an invalid inequality. Scaling a row before aggregation changes which exact arithmetic and floor computation have to be justified. Related reading: [Cuts from exact integer arithmetic](https://ocw.mit.edu/courses/15-083j-integer-programming-and-combinatorial-optimization-fall-2009/8fbabfd4ab31165cfc55f2baf5fff043_MIT15_083JF09_lec17.pdf#page=1); [Integer formulations and valid rounding](https://ocw.mit.edu/courses/15-083j-integer-programming-and-combinatorial-optimization-fall-2009/5be17dfa9a150e8db5b9fb76905d2408_MIT15_083JF09_lec03.pdf#page=3). The selected cut derivation combines rows with nonnegative multipliers and rounds an integer-valued left side. The numerical facet-sign error in the formulation notes is not used.

25

A pure-integer Gomory row cut

Consider one exact feasible dictionary row xB=bbar-sum_j a_j x_j, where xB and every nonbasic x_j are nonnegative integers in the original pure-integer model. Write bbar=floor(bbar)+f0 and a_j=floor(a_j)+f_j, with 0<=f_j<1 and 0<f0<1. Rearranging gives the integer expression xB+sum_j floor(a_j)x_j-floor(bbar)=f0-sum_j f_j x_j.

The right side is therefore an integer. Let T=sum_j f_j x_j>=0, using nonnegativity of all x_j. Since f0-T is integer, T is congruent to f0 modulo one. Its smallest possible nonnegative value is f0 itself: if T<f0, then 0<f0-T<1, which cannot be an integer. Hence T>=f0, or sum_j frac(a_j)x_j>=frac(bbar). This proves the pure-integer fractional row cut.

At the current basic point all nonbasic x_j vanish, so the cut reads 0>=f0 and removes that fractional basic solution. Negative a_j cause no ambiguity: the fractional part is a_j-floor(a_j), not a signed remainder. If all f_j vanish while f0>0, the cut proves this row has no solution with the stated integer nonbasic variables. If bbar is integral, there is no fractional right-hand side to cut by this argument.

The fractional basic point fails the pure-integer cutA positive half plus a third; At x₁=x₂=0 the basic value x_B=5/2 is fractional. The declared integer witness has x_B=1 and satisfies the shown cut.The fractional basic point fails the pure-integer cut-0.7505.55-0.655.55Gomory cut boundary, valid above/rightInteger solutions visible in the row previewx_B=bwitnessExcluded fractional basic state and declared integer witnessInteger x₁ horizontally · x₂ vertically, finite preview
At x₁=x₂=0 the basic value x_B=5/2 is fractional. The declared integer witness has x_B=1 and satisfies the shown cut.

Subtract each integer coefficient part from the original equation. The nonnegative sum of fractional parts times the nonnegative integers x₁,x₂ equals b’s fractional part plus an integer. Since the right fractional part is strictly between zero and one, the integer on the right cannot be negative. Using floor is essential when a coefficient is negative.

Exact pure-integer row and cut
QuantityExact result
Full pure-integer rowx_B + (1/2)x₁ + (1/3)x₂ = 5/2
Coefficients a₁,a₂ and RHS b(1/2, 1/3, 5/2)
Floors of a₁,a₂,b(0, 0, 2)
Fractional parts(1/2, 1/3, 1/2)
Valid cut1/2·x₁ + 1/3·x₂ ≥ 1/2
Declared x₁,x₂ and exact x_B(1, 3) and 1
Left side of cut at declared integer witness3/2
At fractional basic state0 < 1/2; excluded
Exact inputs and supporting calculations
Declared inputs
ParameterValue
b5/2
a["1/2","1/3"]
test[1,3]

Continuous nonbasic variables invalidate the integer rearrangement, so a mixed-integer cut needs a different theorem and coefficients. For instance xB=1/2-u permits xB=0, u=1/2 when u is continuous, although the pure-integer recipe would incorrectly demand 0>=1/2. Negative lower bounds also require a correct variable shift before the nonnegative-sum argument. The dictionary comes from exact model transformations; one row cannot erase another constraint or authorize arbitrary rounded tableau coefficients. Related reading: [Integer formulations and valid rounding](https://ocw.mit.edu/courses/15-083j-integer-programming-and-combinatorial-optimization-fall-2009/5be17dfa9a150e8db5b9fb76905d2408_MIT15_083JF09_lec03.pdf#page=3); [Cuts from exact integer arithmetic](https://ocw.mit.edu/courses/15-083j-integer-programming-and-combinatorial-optimization-fall-2009/8fbabfd4ab31165cfc55f2baf5fff043_MIT15_083JF09_lec17.pdf#page=1). The own floor/fractional-part derivation retains negative coefficients and integer nonbasic variables. Continuous nonbasic variables need a mixed-integer theorem.

26

Knapsack cover inequalities

In a 0-1 knapsack model let every weight w_i>=0 and capacity W be fixed. A cover is an item subset C with sum_{i in C}w_i>W. If a feasible binary vector selected every item of C, its total weight would be at least that sum because all other selected weights are nonnegative. This contradicts capacity. Therefore every original feasible vector satisfies sum_{i in C}x_i<=|C|-1.

For weights (3, 3, 2) and capacity 5, the first two items form a cover and give x1+x2<=1. The fractional point x1=x2=5/6, x3=0 has weight 5 and satisfies the ordinary box relaxation, but violates the cut. All three items also form a cover, giving x1+x2+x3<=2. Validity comes from the all-items-selected contradiction, not from testing those few points or from the current objective.

The cover need not be inclusion-minimal for validity. Minimality can help identify a stronger or less redundant inequality, but it is a separate condition. Adding a coefficient for an item outside C is called lifting only after its validity is proved over every original feasible combination. An arbitrary extra coefficient may forbid a feasible solution; an improved-looking fractional bound is not evidence that the strengthened inequality is safe.

Nonnegative weights matter in this elementary proof: negative-weight outside items could offset an overweight cover. Multidimensional packing admits a cover from any one nonnegative resource row, but simultaneous-resource inequalities may require more reasoning. The cut preserves the integer feasible set and can tighten its continuous relaxation; it neither proves the whole integer hull is described nor guarantees a fast cutting-plane algorithm. Related reading: [Integer formulations and valid rounding](https://ocw.mit.edu/courses/15-083j-integer-programming-and-combinatorial-optimization-fall-2009/5be17dfa9a150e8db5b9fb76905d2408_MIT15_083JF09_lec03.pdf#page=3); [Knapsack scaling and encoded size](https://people.csail.mit.edu/ghaffari/AA18/Notes/S_18_02.pdf#page=1). The binary knapsack setting motivates a cover inequality. The proof uses nonnegative weights and establishes the unlifted inequality only.

27

Binary products and their convex hull

Suppose x and y are binary and z is intended to equal their product. The linear rows z>=0, z>=x+y-1, z<=x, z<=y force the correct value in all binary cases. If either factor is zero, the upper bound forces z<=0 and the lower bound forces z=0. If both factors are one, the second lower bound forces z>=1 and either upper bound gives z<=1.

Over 0<=x, y<=1, the same inequalities have a stronger geometric interpretation. Define theta00=1-x-y+z, theta10=x-z, theta01=y-z, and theta11=z. The rows say exactly that these four numbers are nonnegative, and their sum is one. The point (x, y, z) equals their weighted combination of (0, 0, 0), (1, 0, 0), (0, 1, 0), (1, 1, 1), because x=theta10+theta11, y=theta01+theta11, z=theta11.

Conversely every convex combination of those four lifted binary points satisfies the four linear inequalities, as each vertex does and all rows are affine. Thus the formulation is the exact convex hull of the binary product graph. It is not the exact product relation for fractional x and y. At x=y=1/2, it allows every z in [0, 1/2], whereas xy is the single value 1/4. Those extra points are necessary convex mixtures rather than an encoding error for the binary domain.

This four-point proof avoids an unsupported general claim about every bilinear expression. Products of a binary variable with a bounded continuous variable require the actual continuous bounds and differently scaled rows. Products of two unrestricted continuous variables do not receive this binary convex-hull certificate. Retain the auxiliary domain and every inequality; omitting one can admit a false binary value and change any objective using z. Related reading: [Integer formulations and valid rounding](https://ocw.mit.edu/courses/15-083j-integer-programming-and-combinatorial-optimization-fall-2009/5be17dfa9a150e8db5b9fb76905d2408_MIT15_083JF09_lec03.pdf#page=3). Integer-hull context is related reading. The four-point barycentric proof is given here and distinguishes a fractional convex hull from the equation z=xy at fractional coordinates.

28

Indicators retain their actual domain bounds

Consider a binary z and the implication z=1=>a^T x<=b, with every other original domain and constraint retained. Let X0 be the actual set of x values allowed by those other constraints when z=0. If M is a finite upper bound on a^T x-b over X0, then a^T x<=b+M(1-z) enforces the target at z=1 and is redundant over X0 at z=0. This proves exactness by checking both branches.

The relevant bound is over the entire inactive branch, not over observed candidates or just an active-branch feasible subset. A sufficient M can come from proved finite variable bounds: for a box l<=x<=u, max a^T x=sum_{a_i>=0}a_i u_i+sum_{a_i<0}a_i l_i. This formula follows by maximizing each independent coordinate at its appropriate endpoint. Other coupled rows can yield a sharper bound, provided their use in defining X0 is valid.

If the inactive residual is unbounded above, no finite M can make this same row redundant on that full domain. If M is smaller than its actual supremum, it removes an original inactive decision. A larger valid M preserves binary equivalence but enlarges the continuous relaxation because 1-z>=0 on 0<=z<=1. It can also change numerical scaling; the exact proof makes no universal assertion about a particular floating solver tolerance.

The row encodes an implication, not its converse. A point satisfying a^T x<=b need not force z=1. M has the residual units of the original row, so changing variable units or scaling constraints changes its numerical value. If a proposed finite bound relies on an arbitrarily imposed horizon or budget, that extra restriction needs its own model justification rather than being hidden as a harmless algebraic implementation detail. Related reading: [A finite bound for a one-way implication](https://docs.mosek.com/modeling-cookbook/mio.html#indicator-constraints). The selected indicator section requires a finite inactive-domain residual bound. The proof retains the one-way implication and every declared domain.

29

Disjunctive scheduling and a valid horizon

Let two nonpreemptive jobs i, j have durations p_i, p_j>0, starts s_i, s_j>=0 and finishes s_i+p_i<=H, s_j+p_j<=H. Introduce binary y, where y=1 means i finishes before j starts. The rows s_j>=s_i+p_i-H(1-y) and s_i>=s_j+p_j-Hy express the two possible orders. At y=1 the first row is the required order; the second is redundant because s_j+p_j-H<=0<=s_i.

At y=0 the second row is the required order and the first is redundant by s_i+p_i-H<=0<=s_j. Conversely any nonoverlapping pair of intervals [s_i, s_i+p_i), [s_j, s_j+p_j) has at least one of these two orders and can choose its corresponding binary value. Equality permits one job to begin exactly at the other finish. Thus the formulation is exact for the stated bounded horizon and positive-duration model.

Replacing binary y by 0<=y<=1 does not produce an executable ordering. For p_i=2, p_j=3, H=7, both starts zero and y=1/2 satisfy the two relaxed rows: 0>=2-7/2 and 0>=3-7/2. Yet the jobs overlap. The interval and deadline rows remain satisfied, so this is a direct relaxation counterexample, not a missing feasibility check or numerical error.

For many jobs on one machine, retain an order decision for every conflicting pair together with the actual start/finish constraints. Positive-duration directed order cycles are infeasible because adding their inequalities would require a start to exceed itself by a positive total duration. A finite M is valid only if the horizon was itself justified; an artificially small H can remove a valid optimal schedule. Preemptive jobs need a different representation because a single contiguous interval is then not the processing model. Related reading: [A finite bound for a one-way implication](https://docs.mosek.com/modeling-cookbook/mio.html#indicator-constraints); [Earliest due dates and maximum lateness](https://people.orie.cornell.edu/shmoys/or6335/ch3.pdf#page=2); [Weighted completion and the Smith interchange](https://people.orie.cornell.edu/shmoys/or6335/chapter5.pdf#page=2). The indicator framework and nonpreemptive scheduling context motivate the two branches. M=H is justified only with the stated start and finish bounds.

30

Precedence paths and critical completion

Let a finite directed acyclic graph specify finish-to-start precedences between jobs of duration p_j>=0, all available at time zero. Throughout these scheduling models, define the makespan of an empty job set as zero. The construction and critical-path attainment argument below concern a nonempty job set. In topological order define e_j=max{0, max_{i preceding j}(e_i+p_i)}, with the inner maximum omitted when there is no predecessor. Scheduling each job at e_j respects every precedence. With unlimited resources there are no additional conflicts, so these earliest starts form a feasible schedule.

For any feasible nonnegative-start schedule s, induction in the same topological order gives s_j>=e_j: it is true for sources, and each predecessor finish s_i+p_i is at least e_i+p_i. Consequently every feasible makespan is at least max_j(e_j+p_j). The constructed schedule attains that value. Equivalently e_j is a longest-path length in the precedence graph when each outgoing job contributes its duration; add a zero-time super-source to handle multiple components.

A path attaining the maximum completion is critical: its sequential total duration is a lower bound on all schedules and equals the unlimited-resource optimum. Several paths can be critical. With one or finitely many shared machines, resource conflicts may force extra delay, so the critical-path value remains a lower bound but need not be achievable. The graph alone does not encode equipment, staff, release dates or setup requirements absent from its edges.

A longest chain matches the earliest completion timeOne precedence chain dictates completion; The exact earliest completion is 7. The critical chain is A→B→D.A longest chain matches the earliest completion time07A [0,2]B [2,5]C [2,3]D [5,7]Time · each lane shows one job in the earliest feasible schedule
The exact earliest completion is 7. The critical chain is A→B→D.

Each job starts at the largest finish time of its predecessors, or at zero if it has none. This constructs a schedule meeting every precedence constraint. Each directed path supplies a lower bound on completion; finding a path of equal length proves optimality. Extra machine-resource constraints could invalidate this equality.

Exact precedence schedule
QuantityExact result
Earliest starts in A,B,C,D order(0, 2, 2, 5)
Earliest finishes(2, 5, 3, 7)
Makespan7
Critical paths and their common totalA→B→D · 7
Capacity assumptionUnlimited parallel machines and zero release times
Exact inputs and supporting calculations
Declared inputs
ParameterValue
time[2,3,1,2]
edges[[0,1],[0,2],[1,3],[2,3]]

Adding precedence inequalities around a directed cycle gives 0>=sum_cycle p_j. Thus any such cycle with positive total duration is infeasible; in particular every cycle of positive-duration jobs is impossible. A cycle consisting only of zero-duration jobs does not create that strict contradiction and may be collapsed into one simultaneous component after checking other constraints. A topological algorithm requires acyclicity or a correctly reduced graph, not merely a drawing that appears to progress left to right. Related reading: [Earliest due dates and maximum lateness](https://people.orie.cornell.edu/shmoys/or6335/ch3.pdf#page=2); [Weighted completion and the Smith interchange](https://people.orie.cornell.edu/shmoys/or6335/chapter5.pdf#page=2); [Residual paths, integral flow and a cut](https://math.mit.edu/~goemans/18433S15/flowscuts.pdf#page=1). Scheduling and graph sources provide context. The longest-path proof needs unlimited resources, and the cycle contradiction needs positive total duration.

31

Smith ordering on a single machine

All jobs are available at zero on one nonpreemptive machine, with durations p_j>0 and weights w_j>0. Any idle time before completion can be removed by shifting the remaining jobs earlier; all weighted completion times weakly decrease. It is enough to compare contiguous permutations. Consider adjacent jobs i then j after a fixed prefix of length T. Their contribution is w_i(T+p_i)+w_j(T+p_i+p_j).

If j precedes i instead, the contribution is w_j(T+p_j)+w_i(T+p_j+p_i). Subtracting gives cost (i, j)-cost (j, i)=w_j p_i-w_i p_j. All earlier completion times stay fixed, and all later ones stay fixed because the pair occupies the same total duration. Therefore i before j is no worse exactly when p_i/w_i<=p_j/w_j, using positivity of both denominators.

Starting from any permutation, swap an adjacent inverted ratio. Each swap cannot increase the objective and reduces an inversion count until the sequence is nondecreasing in p_j/w_j. Thus a Smith-ordered permutation has cost no larger than any initial schedule and is globally optimal. Equal ratios permit a tie with no pair-cost change. This is a full permutation comparison, not a stationarity condition or a finite numerical guess.

Nondecreasing processing-time per unit weight certifies a scheduleRatios order three distinct priorities; The displayed order B→C→A minimizes total weighted completion time to 17. This order is unique.Nondecreasing processing-time per unit weight certifies a schedule06B [0,1]C [1,4]A [4,6]Machine time · one job at a time
The displayed order B→C→A minimizes total weighted completion time to 17. This order is unique.

Swapping adjacent jobs changes weighted completion cost by w_j p_i−w_i p_j for order i,j versus j,i; all other completion times stay fixed. Leaving i first is no worse when p_i/w_i≤p_j/w_j. Repeated interchanges give the sorted rule. Equal ratios give equal costs under the swap.

Exact Smith order certificate
QuantityExact result
Ratios p_i/w_i in A,B,C order(2, 1/3, 3/2)
Chosen feasible optimal orderB→C→A
Completion times in scheduled order(1, 4, 6)
Total weighted completion17
All optimal ordersB→C→A
Exact inputs and supporting calculations
Declared inputs
ParameterValue
time[2,1,3]
weight[1,3,2]
Enumeration of all job orders
OrderExact weighted sum
A→B→C23
A→C→B30
B→A→C18
B→C→A17
C→A→B29
C→B→A24

A positive-duration zero-weight job can be moved behind every positive-weight job without increasing cost, then zero-weight jobs may be ordered arbitrarily; do not divide by zero. Release dates can make an interchange infeasible, and arbitrary preemption or multiple machines change the model. Weights represent the declared completion preference and have whatever units make w_j C_j the chosen cost; the theorem does not infer those preferences from processing times. Related reading: [Weighted completion and the Smith interchange](https://people.orie.cornell.edu/shmoys/or6335/chapter5.pdf#page=2). The native minsum chapter contains the complete adjacent-interchange Smith proof. Its all-jobs-available, positive-duration and weight premises are retained; zero weights are treated separately.

32

Earliest due dates and maximum lateness

On one nonpreemptive machine, all jobs are available at zero with positive durations and arbitrary real due dates d_j. Lateness is L_j=C_j-d_j and maximum lateness is Lmax=max_j L_j. For an empty job set, define Lmax=-infinity and Tmax=0. The interchange argument below concerns a nonempty job set. Removing idle time cannot increase any completion time, so consider a contiguous permutation. Suppose adjacent jobs i then j have d_i>d_j and begin after a prefix T.

Before the swap, C_i=T+p_i and C_j=T+p_i+p_j. After swapping, C_jprime=T+p_j<=C_j and C_iprime=C_j. Hence L_jprime<=L_j, and L_iprime=C_j-d_i<=C_j-d_j=L_j. The maximum lateness of this pair cannot increase, and every other completion time is unchanged. Repeated adjacent inversion swaps therefore produce an earliest-due-date order with no greater Lmax than any original permutation.

Maximum tardiness is Tmax=max_j max(0, L_j)=max(0, Lmax), a nondecreasing function of Lmax, so an EDD order also minimizes it. This does not minimize the sum of tardiness. With job A of duration 4, due 1 and job B of duration 1, due 2, EDD gives completions 4, 5 and tardiness 3, 3, total 6, maximum 3. Reversing gives B completion 1 and A completion 5, tardiness 0, 4, total 4 but maximum 4. The two objectives encode different priorities.

Due-date ties can be ordered arbitrarily for this maximum criterion; negative due dates are allowed and can make positive lateness unavoidable. The proof does not assume every job can meet its due date. Release times, sequence-dependent setups or precedence constraints may prevent its swaps and require another result. A reported total-tardiness improvement is therefore not evidence against the maximum-lateness theorem; first compare the same objective and feasible schedule family. Related reading: [Earliest due dates and maximum lateness](https://people.orie.cornell.edu/shmoys/or6335/ch3.pdf#page=2). The native minmax chapter proves EDD for maximum lateness. Maximum tardiness follows by a monotone transform, while total tardiness is a different objective.

33

List scheduling with a proved bound

Let m>=1 identical parallel machines process independent nonpreemptive jobs of positive lengths, all available at zero. In a fixed listed order, assign each job to a machine with smallest current assigned load and begin it when that machine is free. Write P=sum_j p_j. Every feasible schedule has optimum makespan Cstar>=P/m from total work, and Cstar>=max_j p_j because a job occupies one machine for its whole duration.

Choose a job j whose completion equals the list schedule makespan C. At the moment it was assigned, its start S was the least of the m current loads, so S<=P_before/m. The total length of jobs assigned before it is at most P-p_j, even if j was not the last job in the list. Hence C=S+p_j<=(P-p_j)/m+p_j=P/m+(1-1/m)p_j.

Apply the two independent optimum lower bounds: the first term is at most Cstar and p_j is at most Cstar. Thus C<=(2-1/m)Cstar. The bound does not depend on a lucky tie rule or on the listed order. For m=1, it reduces to C=P=Cstar. The empty job set can be handled separately with makespan zero, without dividing by a zero optimum in an approximation ratio.

The guarantee concerns identical machine speeds and the declared all-available independent jobs. Unrelated machines, release dates, precedences or resource-specific feasibility need different arguments. Sorting jobs by decreasing length can improve guarantees, but that sharper theorem is not proved by this last-job calculation. The saved total-work and longest-job lower bounds can also certify a concrete instance more sharply than the worst-case factor. Related reading: [List scheduling on identical parallel machines](https://people.orie.cornell.edu/shmoys/or6335/ch9.pdf#page=1). The selected scan supplies the complete last-job list-scheduling proof. The partially exercised LPT argument is not substituted as an additional proved theorem.

34

Time-indexed nonpreemptive schedules

Let the horizon H be a nonnegative integer and each nonpreemptive job have positive integer duration p_j<=H. For every permissible integer start t=0, ..., H-p_j, introduce binary y_jt. Impose sum_t y_jt=1 for every job. Its unique selected t is its actual start. For each unit slot tau=0, ..., H-1, the row sum_{j, t: t<=tau<t+p_j}y_jt<=m states that no more than m jobs occupy that slot.

All selected interval endpoints are integers, so occupancy is constant between consecutive grid points. The slot rows are therefore equivalent to capacity at every real time in the horizon, using half-open processing intervals. On m identical machines, the active-interval count condition also permits actual machine assignment: process starts chronologically, release jobs finishing at that time first, and assign each new interval to a free machine. If no machine were free, more than m intervals would overlap, contradicting the row.

An integral feasible nonpreemptive schedule maps back to these one-hot starts, and its precedences can be expressed as sum_t(t+p_i)y_it<=sum_t t y_jt. For the basic all-available identical-machine model with integer durations, a continuous-start feasible schedule can be shifted to integer starts by flooring each start on its existing machine order. From s_j>=s_i+p_i and integer p_i follows floor(s_j)>=floor(s_i)+p_i; nonnegativity and the integer horizon remain valid. Additional release dates or other rows require their own integer-compatible check.

A fractional vector y may split one job across several proposed starts and is a relaxation rather than an executable schedule. The number of variables depends on H, so the formulation can be pseudopolynomial in a binary-encoded horizon. A finite horizon must be justified for the original objective and constraints. Nonintegral durations, preemption, unrelated machines or unmodeled resources cannot be treated as harmless details of these same occupancy rows. Related reading: [List scheduling on identical parallel machines](https://people.orie.cornell.edu/shmoys/or6335/ch9.pdf#page=1); [Earliest due dates and maximum lateness](https://people.orie.cornell.edu/shmoys/or6335/ch3.pdf#page=2); [Weighted completion and the Smith interchange](https://people.orie.cornell.edu/shmoys/or6335/chapter5.pdf#page=2). The exact time-slot correspondence and interval assignment argument are developed here. A fractional start solution, unjustified time grid or arbitrary horizon is a different model.

35

Job-shop orientations and earliest schedules

In a job-shop model, operations have positive durations, assigned machines and fixed within-job precedences. For every pair sharing a machine, choose which operation finishes before the other starts and add that directed precedence arc. The resulting disjunctive orientation graph includes both the original job arcs and all chosen machine arcs. Any feasible schedule respects each such arc s_v>=s_u+p_u.

A directed cycle would imply 0>= the sum of its positive operation durations after adding its precedence inequalities. Therefore every orientation induced by a feasible schedule is acyclic. Conversely, if a complete chosen orientation is acyclic, the longest-path earliest-start construction satisfies every arc. Each same-machine pair is ordered by one of those arcs, so its two positive-duration intervals do not overlap. It is therefore a feasible job-shop schedule.

For a fixed acyclic orientation, the earliest schedule minimizes makespan among schedules respecting that orientation, by the componentwise earliest-start argument. Every feasible schedule induces some acyclic orientation, so the global optimum is the minimum of these longest-path makespans over all feasible complete orientations. There are finitely many pair orientations; when at least one is acyclic, the minimum is attained. Exhaustive orientation enumeration is an existence/exact-search argument, not an efficient general algorithm.

It is insufficient to order only a few conflicting pairs and then assume all machine conflicts disappear. Zero durations alter the strict cycle argument, and sequence-dependent setup times need additional edge or state data. A proposed orientation can be rejected by its explicit positive cycle, while a valid orientation can be certified by topological order and earliest starts. Those concrete objects distinguish a feasibility proof from a scheduling drawing whose overlaps have not been checked. Related reading: [Earliest due dates and maximum lateness](https://people.orie.cornell.edu/shmoys/or6335/ch3.pdf#page=2); [Weighted completion and the Smith interchange](https://people.orie.cornell.edu/shmoys/or6335/chapter5.pdf#page=2). The scheduling context motivates pair orders. The complete positive-duration acyclicity and longest-path proof applies to each fixed orientation, without promising an efficient search over all orientations.

36

Coupled resources can destroy a flow relaxation

An integral network block does not make every model containing it integral. Take two disjoint directed two-arc cycles with zero balances and unit capacities. In cycle i, the balance equations make its forward and return flows equal x_i, so its feasible flow values are 0<=x_i<=1. The product of the two cycle-flow sets is an integral box in these coordinates, consistent with incidence total unimodularity and integer capacities.

Now append the shared-resource row 2x1+2x2<=3. The continuous point (1, 1/2) is a vertex at the intersection of this row and x1=1. It maximizes x1+x2 at 3/2. If all original flows are integer, then x1, x2 belong to {0, 1}; the resource row forbids selecting both, and the integer maximum is one. Thus one coupled budget destroys the exactness of the former network relaxation. The full matrix has a coefficient two and is no longer totally unimodular.

For 0-1 selection with d nonnegative integer resource rows and capacities B1, ..., Bd, a direct exact dynamic program can instead use an item index and the full remaining-capacity vector. Include or omit each item, subtracting its whole d-dimensional requirement only when every component fits. The same induction as single-capacity knapsack proves exactness, but the state count is n times product_r(B_r+1). This is numerical-capacity dependence and can also grow exponentially with the number of resources.

Choosing a flow algorithm for only a submatrix or dropping a resource row changes the problem; it may supply a relaxation bound but not an executable coupled-resource decision. Other special structures can still yield exact efficient algorithms, yet each needs its own proof. Record all balances, capacity units, assignment restrictions and extra couplings before claiming that integrality comes for free from network form. Related reading: [Total unimodularity and integral basic points](https://math.mit.edu/~goemans/18433S15/polyhedral.pdf#page=13); [Residual paths, integral flow and a cut](https://math.mit.edu/~goemans/18433S15/flowscuts.pdf#page=1); [Knapsack scaling and encoded size](https://people.csail.mit.edu/ghaffari/AA18/Notes/S_18_02.pdf#page=1). The source integrality results apply to their complete formulations. The coupled-cycle counterexample and multidimensional state count show why extra resource rows require new analysis.

37

Robust integer choices and recourse

For a here-and-now integer decision x, the robust quantifier is choose one x such that every declared scenario a satisfies h(x, a)<=0. If the uncertainty set is U=conv{a1, ..., aK} and h(x, a) is affine in a for each fixed x, then vertex checks suffice. Any a=sum_k theta_k ak gives h(x, a)=sum_k theta_k h(x, ak)<=0 when all vertex rows hold. Necessity follows because each ak itself lies in U.

The decision x need not be continuous or convex for that fixed-decision uncertainty argument. What matters is affine dependence on the uncertainty and the stated finite convex-hull representation. An unbounded set needs recession-direction checks as well: U=[0, infinity) has vertex zero, but 0*x<=1 at that vertex cannot certify a*x<=1 for all a when x>0. Nonlinear uncertainty dependence may also have interior maxima that vertex tests miss.

Recourse changes the order of choices. A two-stage model chooses an initial x, then for each observed scenario chooses an allowed y(a), with nonanticipativity where scenarios share observations. It is not the same as allowing the entire original x to be selected independently after each scenario. For binary x and scenarios a=0, 1, the requirement x=a is feasible separately in each scenario but impossible for one common here-and-now x. The symbols exists x for all a and for all a exists x express different feasible problems.

A finite scenario model certifies only its declared scenario set or a proved hull-based extension. It supplies neither a probability law nor a guarantee that physical uncertainty is covered. Branch-and-bound can still use valid relaxations of the joint robust integer constraints, but the original universal or recourse restrictions must be preserved in both feasible incumbents and lower bounds. A cheaper scenario-dependent decision is not evidence that a robust common decision was unnecessarily suboptimal. Related reading: [Branching, bounds and a search frontier](https://ocw.mit.edu/courses/15-083j-integer-programming-and-combinatorial-optimization-fall-2009/e689f785132f551e635169d6694fdc13_MIT15_083JF09_lec19.pdf#page=5); [Integer formulations and valid rounding](https://ocw.mit.edu/courses/15-083j-integer-programming-and-combinatorial-optimization-fall-2009/5be17dfa9a150e8db5b9fb76905d2408_MIT15_083JF09_lec03.pdf#page=3). Finite decisions and convex hulls provide context. The robust vertex and quantifier arguments are proved here for affine uncertainty on a nonempty compact polytope; recourse changes the feasible policy set.

38

Lagrangian relaxation over a discrete set

Let X be a finite nonempty discrete set, with finite real f(x) and vector g(x), and impose g(x)<=0. For lambda>=0, define q(lambda)=min_{x in X}[f(x)+lambda^T g(x)]. Every original feasible x has lambda^T g(x)<=0, so q(lambda)<=f(x). Thus q(lambda) is a valid lower bound on the constrained minimum even if its inner minimizing decision violates the relaxed constraints. Such an inner decision is not automatically an incumbent.

The minimum of finitely many affine functions of lambda is finite, concave and piecewise affine. Explicitly, q(t lambda+(1-t)mu)>=t q(lambda)+(1-t)q(mu) for 0<=t<=1, because every affine branch is at least its own minimum in each term. If xlambda attains the inner minimum, then q(mu)<=f(xlambda)+mu^T g(xlambda)=q(lambda)+(mu-lambda)^T g(xlambda). Hence g(xlambda) is a supergradient of this concave lower-bound function.

A positive step followed by projection of lambda+alpha g(xlambda) onto the nonnegative orthant is a natural dual-search update, but its convergence and rate need their own step-size/boundedness assumptions. Exact maximization of q need not close a discrete primal gap. For x, y in {0, 1}, minimize -x-y subject to 2x+2y<=3. The integer optimum is -1. Its scalar Lagrangian envelope is q(lambda)=-2+lambda for 0<=lambda<=1/2 and q(lambda)=-3lambda for lambda>=1/2, as the inner choices are respectively both items or no items, with all choices tied at 1/2.

The dual maximum is therefore -3/2, strictly below the integer optimum -1; it equals this example’s continuous relaxation bound. This explicit gap does not contradict weak duality. Concavity of the dual is not convexity or integrality of the original decision model. A finite inner search must actually be solved or separately bounded in the correct direction: the cost of an arbitrary inner candidate is an upper bound on q(lambda), so substituting it as a primal lower certificate can be invalid. Related reading: [Branching, bounds and a search frontier](https://ocw.mit.edu/courses/15-083j-integer-programming-and-combinatorial-optimization-fall-2009/e689f785132f551e635169d6694fdc13_MIT15_083JF09_lec19.pdf#page=5); [Greedy set cover and matching certificates](https://people.csail.mit.edu/ghaffari/AA18/Notes/S_18_01.pdf#page=1). Bounding and dual-certificate ideas motivate the finite-set Lagrangian. The concavity, exact-inner-minimizer supergradient and positive-gap example are derived here rather than attributed to a selected printed theorem.

39

Certificates separate decision quality from model truth

Let F be the original nonempty integer feasible set and suppose a checked incumbent xhat in F and a valid global bound satisfy L<=inf_F f<=f(xhat)=U, with finite L, U. Then 0<=f(xhat)-inf_F f<=U-L. Validity can come from an exact relaxation, cut tree, Lagrangian bound or exhaustive finite proof, but a queue status or solver label is not another mathematical inequality. The actual incumbent must satisfy the original domains, resources and logical conditions.

Suppose a second physical-cost model q is defined on the same F and |q(x)-f(x)|<=eta for every x in F. Then q(xhat)<=U+eta, and q(x)>=f(x)-eta>=L-eta for every feasible x. Taking an infimum gives inf_F q>=L-eta, without requiring that q attains its infimum. Subtracting yields 0<=q(xhat)-inf_F q<=U-L+2eta. The two error allowances control different comparisons and cannot generally be reduced to one.

Directed evaluation uncertainty can be added explicitly. If an incumbent cost is reported as Utilde with an actual upper error epsilonU, use U=Utilde+epsilonU. If a reported lower certificate Ltilde has possible upward error epsilonL, use L=Ltilde-epsilonL. The safe width is Utilde-Ltilde+epsilonU+epsilonL. An approximate constraint residual still does not prove integer feasibility; repairing or rounding creates another candidate whose full feasibility and objective must be checked.

Every conclusion remains conditional on the declared model and its evidence. Error only at xhat does not control the competing physical infimum, and a changed physical feasible set needs an additional feasibility-comparison theorem. Numerical gaps do not measure fairness, scientific model adequacy or the truth of a scenario law. A useful final certificate records the exact decision, bound derivation, units, remaining open nodes or assumptions, and separate model-error evidence so each claim can be assessed independently. Related reading: [Branching, bounds and a search frontier](https://ocw.mit.edu/courses/15-083j-integer-programming-and-combinatorial-optimization-fall-2009/e689f785132f551e635169d6694fdc13_MIT15_083JF09_lec19.pdf#page=5). A search certificate concerns the declared model. The separate uniform-error transfer proof requires the same feasible set and two error allowances; incumbent-only evidence is insufficient.

Explore exact certificates for integer choices, flow costs and schedules. The figures distinguish a feasible decision from the bound used to prove it.

The degree relaxation misses an odd-set inequality

The half-edge point violates the triangle’s odd-set cut

Fractional degree bounds do not count an odd vertex set correctlyThe half-edge point violates the triangle’s odd-set cut; Every cycle edge has weight 1/2 in the degree-only solution. The orange integer matching uses 1 disjoint edges and leaves vertex 3 unmatched.Fractional degree bounds do not count an odd vertex set correctly-1.301.3-1.241.24All cycle edges carry 1/2 in the fractional solutionDisjoint edges of the integer matching123Cycle verticesEqual axis units · cycle vertices and matched edges
Every cycle edge has weight 1/2 in the degree-only solution. The orange integer matching uses 1 disjoint edges and leaves vertex 3 unmatched.

Each vertex degree inequality has right side one. Summing all n inequalities counts every selected edge twice and bounds the fractional value by n/2, attained with half weights. Each integer matching uses two vertices per edge, giving at most (n−1)/2 edges. The shown matching reaches that odd-set bound, which excludes the half-weight assignment.

Exact matching and odd-set certificate
QuantityExact result
Number of vertices3
Fractional assignmentx_e=1/2 on every edge
Fractional objective and proved bound3/2
One integer maximum1–2
Integer value / bound1
Whole-set odd-cutΣ cycle-edge x_e ≤ 1
Violation of that cut by the fractional assignment1/2
Exact inputs and supporting calculations
Declared inputs
ParameterValue
n3

A residual cycle decides whether a flow can be made cheaper

Transfer to the cheaper B path

A residual transfer follows one path forward and the other backwardTransfer to the cheaper B path; Moving 3 units from A to B changes exact cost 12 to 3. The forward network still routes from s to t.A residual transfer follows one path forward and the other backward3 → 0 / 3residual cost −40 → 3 / 3residual cost +13 → 0 / 3residual cost 00 → 3 / 3residual cost 0sabtOriginal flow before→after / original capacity. Arrows show residual direction.
Moving 3 units from A to B changes exact cost 12 to 3. The forward network still routes from s to t.

Decreasing one path and increasing the other preserves demand and internal conservation. Its residual cycle cost is the outgoing path cost minus the cancelled path cost, with bottleneck equal to the smaller forward and reverse residual capacity. The linear cost over the exact feasible interval proves the chosen endpoint or an entire tie.

Exact flow and optimality
QuantityExact result
Feasible interval for A flow[0, 3]
Initial split A/B(3, 0)
New optimal split A/B(0, 3)
Transfer amount3
Initial / final cost12 / 3
Change in cost-9
OptimalityCost = 3·1 + (3)x_A over the feasible interval.
Exact inputs and supporting calculations
Declared inputs
ParameterValue
D3
cap[3,3]
cost[4,1]
initialA3
Residual transfer choices
TransferUnit cycle costAvailable amountDirected cycle
A to B-33s→b→t→a→s
B to A30s→a→t→b→s

A finite capacity table certifies the integer optimum

Complementary items fill the resource

A finite table certifies the best integer profitComplementary items fill the resource; At capacity 5 the best value is 8. The selected subset is exact.A finite table certifies the best integer profit-0.609.12-0.485.58Final dynamic-programming row (steps between integer capacities)capacity 5Exact final capacity valueInteger capacity horizontally · best value vertically
At capacity 5 the best value is 8. The selected subset is exact.

For each item compare skipping it with taking its value plus the previous-row value at the reduced capacity. Refer only to the preceding row so an item cannot be used twice. Backtracking follows every tied branch if all optima are required. An O(nW) bound depends on W itself, which can be exponential in the number of bits that encode W.

Exact integer choices
QuantityExact result
Optimal value8
One optimal subset{1, 2}
All optimal subsets{1, 2}
State count4×6
Time boundO(nW), pseudo-polynomial in the numerical capacity
Exact inputs and supporting calculations
Declared inputs
ParameterValue
weights[2,3,4]
values[3,5,6]
W5
Full exact dynamic-programming table
Items admitted012345
0000000
1003333
2003558
3003568
Exact backtracking in (items, capacity) coordinates
BranchPreceding-row trace
One optimal path(3,5) omit item 3 → (2,5) take item 2 → (1,2) take item 1 → (0,0)

Fractional parts give a valid cut for a pure-integer row

A positive half plus a third

The fractional basic point fails the pure-integer cutA positive half plus a third; At x₁=x₂=0 the basic value x_B=5/2 is fractional. The declared integer witness has x_B=1 and satisfies the shown cut.The fractional basic point fails the pure-integer cut-0.7505.55-0.655.55Gomory cut boundary, valid above/rightInteger solutions visible in the row previewx_B=bwitnessExcluded fractional basic state and declared integer witnessInteger x₁ horizontally · x₂ vertically, finite preview
At x₁=x₂=0 the basic value x_B=5/2 is fractional. The declared integer witness has x_B=1 and satisfies the shown cut.

Subtract each integer coefficient part from the original equation. The nonnegative sum of fractional parts times the nonnegative integers x₁,x₂ equals b’s fractional part plus an integer. Since the right fractional part is strictly between zero and one, the integer on the right cannot be negative. Using floor is essential when a coefficient is negative.

Exact pure-integer row and cut
QuantityExact result
Full pure-integer rowx_B + (1/2)x₁ + (1/3)x₂ = 5/2
Coefficients a₁,a₂ and RHS b(1/2, 1/3, 5/2)
Floors of a₁,a₂,b(0, 0, 2)
Fractional parts(1/2, 1/3, 1/2)
Valid cut1/2·x₁ + 1/3·x₂ ≥ 1/2
Declared x₁,x₂ and exact x_B(1, 3) and 1
Left side of cut at declared integer witness3/2
At fractional basic state0 < 1/2; excluded
Exact inputs and supporting calculations
Declared inputs
ParameterValue
b5/2
a["1/2","1/3"]
test[1,3]

A longest precedence path certifies an earliest completion

One precedence chain dictates completion

A longest chain matches the earliest completion timeOne precedence chain dictates completion; The exact earliest completion is 7. The critical chain is A→B→D.A longest chain matches the earliest completion time07A [0,2]B [2,5]C [2,3]D [5,7]Time · each lane shows one job in the earliest feasible schedule
The exact earliest completion is 7. The critical chain is A→B→D.

Each job starts at the largest finish time of its predecessors, or at zero if it has none. This constructs a schedule meeting every precedence constraint. Each directed path supplies a lower bound on completion; finding a path of equal length proves optimality. Extra machine-resource constraints could invalidate this equality.

Exact precedence schedule
QuantityExact result
Earliest starts in A,B,C,D order(0, 2, 2, 5)
Earliest finishes(2, 5, 3, 7)
Makespan7
Critical paths and their common totalA→B→D · 7
Capacity assumptionUnlimited parallel machines and zero release times
Exact inputs and supporting calculations
Declared inputs
ParameterValue
time[2,3,1,2]
edges[[0,1],[0,2],[1,3],[2,3]]

A local interchange orders a weighted single-machine schedule

Ratios order three distinct priorities

Nondecreasing processing-time per unit weight certifies a scheduleRatios order three distinct priorities; The displayed order B→C→A minimizes total weighted completion time to 17. This order is unique.Nondecreasing processing-time per unit weight certifies a schedule06B [0,1]C [1,4]A [4,6]Machine time · one job at a time
The displayed order B→C→A minimizes total weighted completion time to 17. This order is unique.

Swapping adjacent jobs changes weighted completion cost by w_j p_i−w_i p_j for order i,j versus j,i; all other completion times stay fixed. Leaving i first is no worse when p_i/w_i≤p_j/w_j. Repeated interchanges give the sorted rule. Equal ratios give equal costs under the swap.

Exact Smith order certificate
QuantityExact result
Ratios p_i/w_i in A,B,C order(2, 1/3, 3/2)
Chosen feasible optimal orderB→C→A
Completion times in scheduled order(1, 4, 6)
Total weighted completion17
All optimal ordersB→C→A
Exact inputs and supporting calculations
Declared inputs
ParameterValue
time[2,1,3]
weight[1,3,2]
Enumeration of all job orders
OrderExact weighted sum
A→B→C23
A→C→B30
B→A→C18
B→C→A17
C→A→B29
C→B→A24

Worked examples

A knapsack with a fractional bound

Items have (weight, profit)=(4, 7), (3, 5), (2, 4) and capacity 6. Solve the 0-1 problem exactly by item-capacity reasoning, find the fractional bound and give an incumbent/lower-bound certificate for minimizing negative profit.

  1. There are three 0-1 choices and capacity 6. The empty subset has (weight, profit)=(0, 0); singletons have (4, 7), (3, 5), (2, 4). The pair 1, 2 weighs 7 and is infeasible; pair 1, 3 has (6, 11); pair 2, 3 has (5, 9); all three weigh 9 and are infeasible. This complete finite classification gives unique best subset {1, 3}, profit 11.
  2. For the fractional bound, positive weight ratios are p3/w3=2, p1/w1=7/4, p2/w2=5/3. Fill item 3 first, using weight 2 and gaining 4, then item 1 uses the remaining weight 4 and gains 7. The capacity is full before item 2 and no fractional coordinate is necessary. The at-most-one-fractional-item theorem permits this integral endpoint case.
  3. A direct continuous certificate uses threshold rho=7/4. For every 0<=x_i<=1 with 4x1+3x2+2x3<=6, profit<=rho*6+(p3-rho*w3)=21/2+1/2=11. Item 1 has zero threshold excess and item 2 has negative excess; discarding its nonpositive contribution is in the safe upper-bound direction. The chosen subset attains this same bound.
  4. When minimizing the negative of profit, the relaxation supplies L=-11 and the checked subset supplies U=-11. Equality certifies exact integer optimality, not merely a good heuristic. The integer and fractional optima coincide in this instance; that does not remove gaps from other knapsack data. No rounding or computational enumeration was needed for this three-item hand proof.

Choose items 1 and 3, weight 6, profit 11. The fractional maximum is also 11, so the negative-profit minimization has certified value -11.

A branch-and-bound tree with exact bounds

Minimize -5x-4y over nonnegative integers with 2x+y<=5 and x+2y<=5. Solve the root relaxation, branch on x at its fractional value, and close every retained branch with exact bounds and integer incumbents.

  1. Minimizing -5x-4y is maximizing 5x+4y. The root polygon vertices are (0, 0), (5/2, 0), (5/3, 5/3), (0, 5/2), with maximized-objective values 0, 25/2, 15, 10. The two oblique rows intersect at x=y=5/3, so the root minimum is -15. Their positive combination gives the same continuous bound and the root decision is fractional.
  2. Every nonnegative integer x belongs to x<=1 or x>=2. On the left branch 0<=x<=1, the row x+2y<=5 gives y<=(5-x)/2, and 2x+y<=5 is weaker there. Hence 5x+4y<=5x+2(5-x)=10+3x<=13. Equality at (1, 2) is integer feasible and proves exact node minimum -13.
  3. On the right branch x>=2, nonnegativity and 2x+y<=5 give x<=5/2 and y<=5-2x. This upper bound is no greater than (5-x)/2 because x>=5/3. Therefore 5x+4y<=5x+4(5-2x)=20-3x<=14. Equality at (2, 1) is integer feasible and proves exact right-node minimum -14.
  4. Both branches are now closed by matched bounds and incumbents. The global lower bound is min(-13, -14)=-14 and incumbent U=-14, so the optimum is certified. The strict objective slopes on each branch and the smaller left value prove uniqueness of (2, 1). Preserve both node restrictions and their bound derivations; the root value alone leaves a gap of one and is not the integer answer.

Root relaxation (x, y)=(5/3, 5/3), cost -15. Branch x<=1 gives integer optimum (1, 2), cost -13; branch x>=2 gives (2, 1), cost -14. The unique global integer optimum is (2, 1).

An assignment mixture

Decompose the doubly stochastic matrix [[1/2, 1/2, 0], [0, 1/2, 1/2], [1/2, 0, 1/2]] into permutation matrices. For cost [[1, 4, 3], [2, 1, 5], [4, 2, 1]], compute the mixture cost and a certified optimal assignment.

  1. The displayed matrix has positive diagonal entries 1/2 and positive cycle entries (1, 2), (2, 3), (3, 1), also 1/2. Thus it is exactly half the identity permutation plus half the cycle permutation P=[[0, 1, 0], [0, 0, 1], [1, 0, 0]]. Both permutations use one entry per row and column, and their mixture recovers every displayed entry.
  2. The identity cost is 1+1+1=3. The cycle cost is 4+5+4=13. Linearity therefore gives mixture cost (3+13)/2=8. These values compare the same cost matrix and unit margins; the fractional mixture is feasible but is not optimal for this particular objective.
  3. Every cost entry is at least one, and every doubly stochastic matrix has total entry sum three. Therefore every feasible assignment relaxation costs at least three. The identity attains three. Equivalently row potentials all one and column potentials all zero satisfy every assignment dual inequality and yield the same lower bound.
  4. Every off-diagonal cost is strictly greater than one, so equality in that lower bound forces all mass onto the three diagonal entries. The unit margins then force the identity, proving uniqueness. This example separates a valid Birkhoff decomposition from optimization: decomposing an arbitrary feasible matrix does not make each permutation in its mixture optimal.

X=(1/2)I+(1/2)P for P selecting columns (2, 3, 1). Its cost is 8. The unique optimal assignment is I, cost 3.

A residual negative cycle

Send 3 units from node 1 to node 3 on arcs 1->2 (cost 1, capacity 3), 2->3 (cost 1, capacity 3), 1->3 (cost 5, capacity 3). Starting with all 3 units on the direct arc, write the residual improvement cycle, perform the complete feasible augmentation and certify the resulting minimum cost.

  1. The initial flows on (1->2, 2->3, 1->3) are (0, 0, 3), satisfying source supply 3, sink demand 3 and zero node 2 balance. Its cost is 15. The first two forward residual arcs each have capacity 3 and cost 1. Reversing the direct used arc creates 3->1 with residual capacity 3 and cost -5.
  2. The residual directed cycle 1->2->3->1 has cost 1+1-5=-3. Its maximum permitted augmentation is the minimum of the three residual capacities, namely 3. Augmenting produces original flows (3, 3, 0), keeps every bound and balance, and changes cost by 3*(-3)=-9, to 6.
  3. For outgoing-positive balances b=(3, 0, -3), choose pi=(2, 1, 0). The original reduced costs c_e-pi_tail+pi_head are 0, 0, 3. They are nonnegative, so pi^T b=6 is a valid lower bound without any positive capacity multiplier. The positive used arcs have zero reduced cost, and the unused direct arc has positive reduced cost, so their exact gap products vanish.
  4. A separate parameterization confirms uniqueness: write f12=f23=t and f13=3-t with 0<=t<=3. Cost is 2t+5(3-t)=15-3t, uniquely minimized at t=3. The residual cycle is a feasible improvement mechanism, the potentials are a global certificate, and the parameterization is an exact domain check; none is replaced by a solver status or a sampled path drawing.

Augment 3 units around residual cycle 1->2->3->1, cost -3 per unit. Final flow (3, 3, 0) has minimum cost 6, certified by potentials (2, 1, 0).

A weighted set cover and its charges

Universe {a, b, c, d}. Sets {a, b} cost 2, {b, c} cost 2, {c, d} cost 2, and {a, d} cost 3. Run greedy cost per newly covered element, breaking ties by this listed order. Save element charges, a scaled feasible dual and an exact optimal-cover comparison.

  1. Initially the first three two-element sets have cost-per-new-element 1, while {a, d} has ratio 3/2. The listed tie rule selects {a, b} first. With only c, d uncovered, the ratios are 2 for {b, c}, 1 for {c, d}, and 3 for {a, d}. Thus {c, d} is selected and the cover is complete with total cost 2+2=4.
  2. The first step charges a, b one each and the second charges c, d one each. Every available set has cardinality two, so d=2 and H2=3/2. Scaled prices y_a=y_b=y_c=y_d=2/3 give total 8/3. Every set contains exactly two elements, so its price sum 4/3 is at most its cost 2 or 3, proving dual feasibility.
  3. For exact optimality, prices all one are also feasible here: each two-element set has price sum two, at most its cost. Their total four is a valid lower bound and the greedy cover costs four. Alternatively every cover needs at least two sets and each available cost is at least two; the same exact lower bound follows without assuming the selected sets are disjoint in other instances.
  4. The harmonic construction guarantees a general bound but need not be the strongest dual for one instance. Here the greedy solution is exactly optimal, while its automatically scaled certificate alone would permit a factor 3/2. Record the actual charges, the denominator H2 and all four set inequalities. Checking only the chosen sets would not establish a valid set-cover dual.

Greedy chooses {a, b} then {c, d}, cost 4, with charges 1 on every element. Dividing charges by H2=3/2 gives dual value 8/3; the stronger feasible prices all 1 certify optimum 4.

A weighted vertex-cover certificate

A path a-b-c has vertex costs (2, 3, 2). Grow equal-price edge a-b first until one endpoint is tight, then process b-c by the tight-endpoint primal-dual rule. State the final cover, edge packing, optimal value and actual approximation ratio.

  1. Start with zero edge prices and no zero-cost vertices. Growing price on a-b hits the a-cost 2 before the b-cost 3, so set y_ab=2 and select a. The remaining slacks are one at b and two at c. Edge b-c is still uncovered because neither b nor c was selected.
  2. Grow y_bc by one until b becomes tight: its incident price total is 2+1=3. Select b. Both graph edges are now covered, and the final selected costs sum 2+3=5. Vertex c has price load one below its cost two. Every edge price is nonnegative and every vertex-price inequality is satisfied.
  3. The dual total y_ab+y_bc=3 is a valid cover lower bound. The singleton {b} covers both edges at cost 3, so it proves the optimum exactly. If a cover omitted b, it would need both a and c and would cost 4, confirming that the singleton is the unique minimum-cost cover.
  4. The algorithmic cover costs 5 and therefore has actual ratio 5/3, below its proved worst-case factor two. Its endpoint accounting is 5=2*y_ab+y_bc<=2*(y_ab+y_bc)=6. The selected cover contains a redundant a; removing it would be a further optional improvement, not part of the stated growth run. A feasible dual can certify optimum even when that algorithm returns a nonminimal cover.

Edge prices (y_ab, y_bc)=(2, 1) produce selected cover {a, b}, cost 5. The optimum is {b}, cost 3; the actual ratio is 5/3 and the dual lower bound is 3.

Rounding a pair of inequalities

For x, y nonnegative integers with 2x+y<=4 and x+2y<=4, derive a Chvatal-Gomory cut with equal row multipliers. Use it to certify the maximum of x+y, and compare the continuous relaxation.

  1. Multiply both original <= rows by 1/3 and add. Their left side becomes [(2x+y)+(x+2y)]/3=x+y and their right side becomes 8/3. Since x and y are integers, the left side is integer, so taking the floor of the exact right side yields the valid cut x+y<=2.
  2. The point (4/3, 4/3) satisfies both original rows tightly and gives objective 8/3. The aggregated unrounded inequality bounds every continuous feasible objective by 8/3, so this is the continuous optimum. It violates the integer cut because 8/3>2.
  3. Integer points (2, 0), (1, 1), (0, 2) are nonnegative and satisfy both original resource rows. Each has x+y=2, matching the cut and certifying the integer maximum. The objective has multiple integer optimizers; the cut proves its value without choosing a tie policy.
  4. Both multipliers are nonnegative and the aggregated coefficient row (1, 1) is exactly integral. These facts justify the direction and floor operation. The claim would not follow by rounding the fractional optimizer itself or by snapping near-integer row coefficients. For minimizing -(x+y), the corresponding exact lower bound is -2 and any listed feasible point supplies an equal upper bound.

Multipliers (1/3, 1/3) give x+y<=8/3 and the integer cut x+y<=2. Integer maximum 2; continuous maximum 8/3 at (4/3, 4/3).

A pure-integer dictionary cut

All variables are nonnegative integers and the dictionary is xB=7/3-(1/3)u-(2/3)v. Derive the exact fractional cut, show it removes the basic fractional point, and give two feasible integer points and their equality recovery.

  1. The row is xB=7/3-(1/3)u-(2/3)v. Its right-side fractional part is 1/3, and the two coefficient fractional parts are 1/3 and 2/3. The pure-integer row theorem therefore gives u/3+2v/3>=1/3. Multiplying by three, which is positive, preserves the inequality and produces u+2v>=1.
  2. At the basic point u=v=0, the recovered xB=7/3 is fractional and the cut fails as 0>=1. Thus it removes exactly that present relaxation point while remaining valid for every original pure-integer feasible decision. The new row does not replace the equality or the nonnegativity domains.
  3. For u=1, v=0, the equality recovers xB=(7-1)/3=2. For u=0, v=2, it recovers xB=(7-4)/3=1. Both triples are nonnegative integers, satisfy the original equality, and satisfy the cut with left values one and four, respectively. These explicit points also show that deriving the cut has not falsely declared the row infeasible.
  4. The integral equality form is 3xB+u+2v=7. It implies u+2v is congruent to one modulo three; nonnegativity makes its smallest possible value one, which is the same cut proof in elementary arithmetic. If either u or v were continuous, this congruence argument would not apply. The exact fractions and floor convention are part of the validity evidence.

The fractional cut is u/3+2v/3>=1/3, or u+2v>=1. Integer feasible triples include (xB, u, v)=(2, 1, 0) and (1, 0, 2).

Precedence and a critical path

Jobs A, B, C, D have durations (3, 2, 4, 1), with A preceding C, B preceding C, and C preceding D. Compute earliest starts/finishes, the critical path and optimal unlimited-resource makespan. Explain the change when only one machine exists.

  1. Jobs A and B have no predecessors, so earliest starts are zero and finishes are three and two. C must wait for both, so its earliest start is max(3, 2)=3 and its finish is 7. D waits for C, starts 7 and finishes 8. Unlimited resources allow the initial A/Boverlap.
  2. The path A-C-D has duration 3+4+1=8, and the other source-to-end path B-C-D has duration 2+4+1=7. Every feasible schedule must take at least the first path length. The earliest construction attains eight, so it is optimal and that longest path is critical.
  3. On one machine, all four jobs together require 3+2+4+1=10 time units, and no overlap is allowed. The order A, B, C, D respects every precedence and has intervals [0, 3), [3, 5), [5, 9), [9, 10). It achieves the total-work lower bound ten and is therefore optimal for the one-machine model.
  4. The critical-path lower bound remains valid after adding the machine restriction, but it is no longer the optimum because A and B cannot run together. This change is a resource-model change, not an error in the longest-path calculation. Durations and time units are retained; an implementation must explicitly state whether unlimited parallel execution or one shared machine is being represented.

Unlimited-resource starts (A, B, C, D)=(0, 0, 3, 7), finishes (3, 2, 7, 8), critical path A-C-D, makespan 8. One machine has optimum 10.

Two different single-machine preferences

Three jobs have (duration, weight, due date) A=(3, 2, 4), B=(2, 4, 5), C=(1, 1, 2), all available at zero. Derive a Smith-optimal weighted-completion order and an EDD-optimal maximum-lateness order, and compute both criteria under each order.

  1. Ratios p/w are A=3/2, B=1/2, C=1. Their strict increasing order is B, C, A. With no idle time, completions are C_B=2, C_C=3, C_A=6, and weighted sum is 4*2+1*3+2*6=23. The adjacent-interchange theorem proves this weighted-completion value globally optimal.
  2. The same Smith schedule has latenesses 2-5=-3 for B, 3-2=1 for C, and 6-4=2 for A. Its maximum lateness is two. The due dates did not enter the Smith ordering; optimizing one declared criterion does not supply an optimum for a different criterion.
  3. Due dates increase in order C(2), A(4), B(5), so EDD gives completions 1, 4, 6. Their latenesses are -1, 0, 1 and maximum one. The weighted cost is 1*1+2*4+4*6=33. EDD optimality follows from its own interchange proof; also every schedule finishes its final job no earlier than time six and that job’s due date is at most five, so maximum lateness is at least one.
  4. Thus both schedules meet their exact theorem-specific optimum, while preferring different orders. Their maximum tardiness values are the positive parts of maximum lateness, namely two and one. All jobs are available at zero and have positive durations/weights; release times or additional precedences could invalidate either interchange. No weighted or due-date preference is inferred from the other.

Smith order B, C, A has weighted completion 23 and maximum lateness 2. EDD order C, A, B has weighted completion 33 and minimum maximum lateness 1.

Parallel list scheduling and its certificate

On two identical machines, process jobs of lengths (3, 3, 2, 2, 2) in that listed order by least current load, breaking ties toward machine 1. Compute makespan, total-work/longest-job lower bounds and an optimal schedule comparison.

  1. Job 1 of length 3 goes to machine 1 by the tie rule. Job 2 of length 3 goes to machine 2. Job 3 of length 2 goes to machine 1 at tied loads three; job 4 goes to machine 2 at loads five and three; job 5 goes to machine 1 at tied loads five. The final loads are seven and five.
  2. The explicit machine 1 intervals are job 1 [0, 3), job 3 [3, 5), job 5 [5, 7). Machine 2 uses job 2 [0, 3) and job 4 [3, 5). This is a feasible nonpreemptive schedule with makespan seven. Every job is assigned once and no same-machine pair overlaps.
  3. Total work is 12, so two machines require makespan at least six; the longest-job bound is three. A schedule attaining six puts the two length-three jobs successively on one machine and all three length-two jobs successively on the other. Therefore the optimum is exactly six, without enumerating all assignments.
  4. The actual ratio is 7/6, within the general two-machine factor 3/2. For the final completing job of length two, the last-job inequality is tight: C<=12/2+(1/2)*2=7. The worst-case comparison of that bound with optimum is still conservative. This example distinguishes a guaranteed fast schedule, a proved lower bound and a separate exact optimum witness.

Listed-order loads progress (3, 0), (3, 3), (5, 3), (5, 5), (7, 5); makespan 7. Work lower bound 6 is attained by a different schedule, so optimum 6 and actual ratio 7/6.

A finite integer Lagrangian gap

Minimize -x-y with x, y in {0, 1} and 2x+2y<=3. Compute the continuous relaxation, integer optimum and exact Lagrangian dual sup over lambda>=0 of min_{x, y binary}[-x-y+lambda(2x+2y-3)]. Distinguish the dual gap from an unproved solver claim.

  1. The original binary choices are (0, 0), (1, 0), (0, 1), (1, 1). The first three satisfy 2x+2y<=3 and have costs 0, -1, -1; the last has resource use four and is infeasible. Thus the integer minimum is -1 with two optimizers. The continuous box relaxation permits x+y=3/2, for example (1, 1/2), and its resource row bounds every objective below by -3/2.
  2. For lambda>=0, the inner Lagrangian values are -3lambda at (0, 0), -1-lambda at either singleton, and -2+lambda at (1, 1). For 0<=lambda<=1/2, the both-selected expression is no greater than either other expression, because its differences are -1+2lambda and -2+4lambda. Hence q(lambda)=-2+lambda on that interval.
  3. For lambda>=1/2, the empty expression is least: its differences from singleton and both-selected values are 1-2lambda and 2-4lambda. Thus q(lambda)=-3lambda after the breakpoint. The first piece increases and the second decreases, so their common value -3/2 at 1/2 is the exact dual maximum. All four inner choices tie there.
  4. The lower bound -3/2 is valid but does not reach feasible incumbent cost -1, leaving absolute gap 1/2. An inner minimizer at the dual optimum may be infeasible, so it cannot automatically be reported as the integer decision. The example illustrates a genuine discrete duality gap despite concavity of q; it does not contradict weak duality or justify a ratio between these negative objective values.

Integer optimum -1; continuous optimum -3/2. The Lagrangian dual maximum is -3/2 at lambda=1/2, leaving a duality gap 1/2.

Try it yourself

  1. Give one finite nonempty integer feasible set with multiple minima, and an infinite integer-domain finite-valued objective with a finite unattained infimum. State the domains literally.

    Show the answer and reasoning

    On X={0, 1}, f=0 has two minima. On X={1, 2, ...}, f(k)=1/k has infimum 0 and no minimizer.

    For the finite example, take the feasible integer set X={0, 1} and define f(0)=f(1)=0. Both decisions attain the same smallest value. Nonemptiness and finiteness give attainment, but neither condition forces a unique decision or a strictly better value than every competitor. For the infinite example, let X be the positive integers and f(k)=1/k. Every objective value is a positive finite real number, so zero is a lower bound and cannot itself be attained. Given any epsilon>0, choose an integer k>1/epsilon; then f(k)<epsilon, proving that the infimum is exactly zero. Every feasible k also has a strictly improving successor because 1/(k+1)<1/k. Thus no candidate is an optimizer, even though all domain points are isolated in the Euclidean subspace topology. Each point is locally minimal in a sufficiently small isolated neighborhood, which does not contradict the absence of a global minimum. The domains matter: including an extra point k=0 and assigning it value zero would create a different attained problem, while imposing a finite upper bound would give a largest feasible k and a minimum there. Discreteness alone supplies neither boundedness nor the compact-sublevel premise of a finite-dimensional existence theorem.

  2. Two minimization values are L=-3 and U=-2. State a valid absolute gap bound and explain why U/L is not a meaningful standard nonnegative-cost approximation ratio.

    Show the answer and reasoning

    The absolute gap is at most U-L=1. The quotient U/L=2/3 is not a standard nonnegative-cost minimization approximation guarantee.

    The exact enclosure is -3<=v<=-2, with U=-2 the cost of an actual feasible incumbent. Subtracting v from U gives a nonnegative gap. Since v>=-3, its maximum permitted size is (-2)-(-3)=1. This is an upper bound on loss, not a claim that the realized loss equals one. The quotient U/L is 2/3, below one despite the incumbent potentially being worse than optimum. Standard minimization approximation ratios at least one assume a positive optimum and usually nonnegative costs. Dividing an enclosure with negative values does not preserve that interpretation or the desired inequality direction. Adding four to the objective preserves every optimal decision and the absolute gap, but changes the numerical enclosure to 1<=v+4<=2. The endpoint quotient then becomes two. This demonstrates that an unqualified ratio of signed endpoints is sensitive to an arbitrary objective origin. A software stopping rule may define a relative gap using max(1, |U|) or another declared denominator. That can be reported as its own convention, but it is not the same theorem as a nonnegative-cost approximation ratio. Retain the sign, units, endpoint directions and actual feasibility before converting any displayed percentage into a mathematical claim.

  3. For a triangle with edge variables >=0 and each incident-edge sum<=1, find its fractional maximum cardinality and prove the integer maximum. Derive the missing odd-set cut.

    Show the answer and reasoning

    Fractional maximum 3/2 at three edge values 1/2; integer maximum 1. The odd-set cut is x12+x23+x31<=1.

    Let the nonnegative triangle edge variables be x12, x23, x31. The three degree rows are x12+x31<=1, x12+x23<=1 and x23+x31<=1. Adding them gives 2(x12+x23+x31)<=3, so every continuous feasible matching relaxation has total at most 3/2. The vector with every edge equal to 1/2 satisfies all three rows tightly and attains 3/2. It is therefore a certified continuous optimum. In the binary or nonnegative integer model, any two chosen triangle edges share an endpoint, so at most one edge can be chosen; choosing any single edge attains one. Take the odd vertex set S consisting of all three vertices. Every internal matching edge uses two distinct vertices, so an integer matching has at most floor(3/2)=1 such edge. This proves the valid cut x12+x23+x31<=1. It removes the fractional half-each point and preserves every actual matching. The triangle obstruction is absent from a bipartite graph, whose degree-incidence relaxation has the total-unimodularity argument. This example proves failure of that degree-only relaxation outside the bipartite setting. It does not by itself prove a complete description of the general matching polytope or an algorithm for finding all needed odd sets.

  4. For a two-by-two assignment problem with every cost one, give an optimal fractional doubly stochastic matrix and two optimal permutation matrices. Explain why existence of an integral optimum does not force every optimum integral.

    Show the answer and reasoning

    Every matrix [[t, 1-t], [1-t, t]], 0<=t<=1, has cost 2. The half-and-half matrix and both permutation endpoints are optimal.

    The row and column sum equations force a two-by-two doubly stochastic matrix to have the form [[t, 1-t], [1-t, t]]. Nonnegativity is exactly 0<=t<=1. With every cost equal to one, its objective is the sum of its four entries, which is always two. At t=1 the matrix is the identity permutation; at t=0 it is the off-diagonal permutation. Both are integral and optimal. At t=1/2 every entry is one-half, giving a fractional optimal matrix with the same cost. It is the equal convex mixture of those two integer endpoints. The feasible set is a line segment, so its only extreme points are the two permutations; every interior value of t is a nontrivial mixture. Integrality of the vertices therefore remains true. A linear objective constant on the whole segment can nevertheless have a nonintegral optimum away from its vertices. An integral-vertex theorem guarantees that an integral optimal solution can be found under its feasibility and attainment premises. It does not require every solver output or every tied optimum to be integral. To obtain an executable assignment from the fractional mixture, select an optimal permutation representative rather than assuming that half of each assignment is already an allowed original decision.

  5. On a single arc of capacity 3/2, compare an unrestricted real maximum flow with an integer flow. Identify exactly which standard integrality premise is absent.

    Show the answer and reasoning

    Real maximum flow is 3/2; integer maximum flow is 1. The integral-capacity premise is missing.

    On the single source-to-sink arc, the real feasible flow interval is 0<=f<=3/2. Maximizing the flow value simply chooses its upper endpoint, so the real maximum is 3/2. Its one-arc cut has capacity 3/2 and supplies the same exact upper certificate. If the physical decision requires f to be an integer in unit-sized packets, the feasible values are 0 and 1. The largest is one. Rounding the continuous flow upward to two violates capacity, while rounding downward gives a feasible integer answer only because this example has one uncoupled interval. The incidence matrix still has the appropriate 0, +1, -1 structure and is totally unimodular. What fails is the integral right-hand capacity condition: the upper row has 3/2 rather than an integer. Total unimodularity alone does not convert fractional right-hand data into integral vertices. Changing to half-unit packets would express this capacity as three packets, but it changes what integer packet size means. That rescaled physical quantity can attain 3/2 in old units and is a different indivisibility convention from whole-unit packets. Preserve the original units and decision domain when interpreting an integrality theorem.

  6. For two 0-1 items (weight, profit)=(0, 3), (2, 4) and capacity 2, derive the item-indexed recurrence and optimum. Explain why a capacity-only unbounded recurrence would represent another problem.

    Show the answer and reasoning

    Select both items for weight 2 and profit 7. The item-indexed recurrence uses the zero-weight item once; an unbounded recurrence would reuse it indefinitely.

    Let D_i(v) be the largest profit from the first i items with weight at most v. Initially D_0(v)=0. For item 1 with weight zero and profit three, the recurrence gives D_1(v)=max(D_0(v), 3+D_0(v))=3 for every v=0, 1, 2. Its predecessor index is zero, so inclusion does not recursively include it again. For item 2 with weight two and profit four, capacities zero and one cannot include it, so their values remain three. At capacity two, D_2(2)=max(D_1(2), 4+D_1(0))=max(3, 7)=7. The included branch selects the second item together with the already selected first item. The recovered subset contains each item once, has total weight 0+2=2 and total profit 3+4=7. The complete choices empty, first only, second only and both have profits 0, 3, 4, 7, so this also supplies a direct finite confirmation of the same optimum without treating the recurrence as an unexplained rule. An unbounded-multiplicity capacity recurrence that repeatedly adds the zero-weight item would demand a finite value at least itself plus three. No finite value can satisfy that update; it represents unlimited reuse and infinite profit. The 0-1 item index and its saved predecessor are therefore part of the model, not just an implementation detail.

  7. A capacity W=2^k is written in binary. Compare the number of capacity states with its bit length; explain why an O(nW) exact algorithm is not thereby polynomial in k.

    Show the answer and reasoning

    W=2^k has k+1 binary digits but 2^k+1 capacity states. O(nW) is pseudopolynomial, not thereby polynomial in k.

    The binary representation of 2^k is a one followed by k zeros, so its bit length is k+1. A capacity-indexed table from zero through W contains W+1=2^k+1 states. Merely writing one row of that table can therefore require exponentially many entries in the capacity bit length. With n item stages and constant-many arithmetic comparisons per entry, the recurrence uses O(n2^k) arithmetic operations. Profit and weight arithmetic also has bit costs; treating it as unit cost does not turn the exponential number of entries into a polynomial input-size bound. The term pseudopolynomial records exactly this distinction: the bound is polynomial in a numerical input value, while that value may be exponentially larger than its binary encoding. For modest practical capacities the same algorithm can still be useful and exact. Complexity terminology does not decide its suitability for a particular bounded instance. This analysis concerns this capacity-indexed algorithm, not an unconditional lower bound on every possible algorithm. Structured families and approximation schemes can behave differently. An approximation scheme must state its error and dependence on 1/epsilon; an exact dynamic program must state its actual data range and encoding before a polynomial-time claim is made.

  8. Weights (3, 3, 2) have capacity 5. Derive valid cover cuts for the first pair and for all three items. Give a fractional relaxation point cut by the first pair.

    Show the answer and reasoning

    Valid cuts are x1+x2<=1 and x1+x2+x3<=2. The fractional point (5/6, 5/6, 0) violates the first while satisfying the ordinary capacity relaxation.

    The first pair has total weight 3+3=6 greater than capacity five. Selecting both is impossible in a binary feasible decision, giving x1+x2<=1. All three items have total weight eight, also greater than five, so at least one must be omitted and x1+x2+x3<=2 is valid. At the fractional point x1=x2=5/6, x3=0, every box coordinate lies in [0, 1] and total weight is 3*(5/6)+3*(5/6)=5. Thus it is feasible for the ordinary continuous capacity relaxation. Its first-pair sum is 5/3>1, so the pair cover cut removes it. The all-three cut does not remove that point because its total selected amount is 5/3<=2. In fact the pair cut together with x3<=1 implies the all-three cut. The larger cover is valid but redundant relative to that stronger smaller cover and the box domain; validity and usefulness are different assessments. Original feasible choices such as items 1 and 3 have weight five and satisfy both cuts, with the all-three cut tight. The proofs rely on nonnegative weights and binary selections. Arbitrarily lifting an outside coefficient or applying the same cardinality conclusion to negative-weight items requires a separate validity argument.

  9. Explain why a negative row multiplier cannot generally preserve an Ax<=b implication. Give a one-variable counterexample and contrast nonnegative Chvatal-Gomory aggregation.

    Show the answer and reasoning

    From x<=1, multiplication by -1 yields -x>=-1. Pretending it yields -x<=-1 falsely excludes feasible x=0.

    Take a nonnegative integer x constrained by x<=1. The point x=0 is feasible. Multiplying the inequality by a negative coefficient -1 reverses its direction and correctly gives -x>=-1, which that point satisfies. If one incorrectly keeps the <= direction, the supposed aggregate would be -x<=-1, or x>=1. It excludes the original feasible point zero. Even though the resulting coefficient -1 and right side -1 are integers, rounding or integrality cannot repair the false implication that preceded them. Chvatal-Gomory aggregation of <= rows therefore uses nonnegative multipliers. Each multiplied row still points toward an upper bound, so their sum is a valid upper bound; only then can an integral left side justify flooring the right side. The signs and exact integral aggregate are both required. An equality can be multiplied by a free signed coefficient because it has both inequality directions available or can be used as an exact identity. That separate convention does not allow an arbitrary sign on a one-sided resource constraint. Save the original row type as well as its multiplier when documenting a cut certificate.

  10. For nonnegative integer variables xB=3/2+(1/2)u-(1/2)v, derive the pure-integer fractional cut using fractional parts of both signed coefficients, and test one integer feasible point.

    Show the answer and reasoning

    The coefficients in xB=bbar-sum a_j x_j are -1/2 and 1/2; both fractional parts are 1/2. The valid cut is u+v>=1. For example (xB, u, v)=(2, 1, 0) is feasible.

    Write the dictionary as xB=3/2-(-1/2)u-(1/2)v. Its right-side fractional part is 1/2. For the negative coefficient, floor(-1/2)=-1, so frac(-1/2)=(-1/2)-(-1)=1/2. The positive coefficient also has fractional part 1/2; using a signed remainder instead of floor would give the wrong cut. The pure-integer fractional cut is (1/2)u+(1/2)v>=1/2, equivalently u+v>=1. At u=v=0 the basic value is 3/2 and the cut removes the fractional basic point. The equality and all nonnegative integer domains remain part of the model. Choose u=1, v=0. The original row gives xB=3/2+1/2=2, so the triple is nonnegative and integral and satisfies the cut with equality. Also u=0, v=1 gives xB=1 and again satisfies it. These checks include the original equality recovery, not just the new inequality. Multiplying the equality by two gives 2xB-u+v=3. Thus u-v is odd, and u+v has the same parity; nonnegativity makes its smallest possible value one. This recovers the same cut directly. An incorrect signed-fraction coefficient would instead suggest -u+v>=1 and falsely remove the valid triple (2, 1, 0).

  11. For x=y=1/2, find the entire interval of z allowed by the four binary-product convex-hull inequalities. Compare it with the single product xy.

    Show the answer and reasoning

    The convex-hull inequalities allow every z in [0, 1/2], while the exact fractional product is xy=1/4.

    At x=y=1/2, the inequalities z>=0 and z>=x+y-1 both give z>=0. The two upper bounds z<=x and z<=y both give z<=1/2. Therefore their whole allowed interval is exactly [0, 1/2]. There is no further binary-product row forcing its midpoint when the factors themselves are fractional. For each permitted z, the four convex-combination weights are theta00=z, theta10=1/2-z, theta01=1/2-z, theta11=z. They are nonnegative and sum to one, and they recover the point (1/2, 1/2, z) from the four binary product vertices. This proves every point in the interval genuinely belongs to that convex hull. At z=0, the point is the equal mixture of (1, 0, 0) and (0, 1, 0). At z=1/2, it is the equal mixture of (0, 0, 0) and (1, 1, 1). The actual fractional product value 1/4 lies inside this interval, but imposing z=xy would describe the curved continuous product graph rather than its binary-vertex convex hull. When x and y are binary, the same inequalities still force z=xy exactly. The interval at fractional factors is therefore a relaxation phenomenon, not a failure of the original binary encoding. An optimization report must retain whether it solved the binary model, the convex hull relaxation or the nonlinear fractional product relation.

  12. Two jobs have durations 2 and 3, nonnegative starts and finishes at most 7. Write the two nonoverlap disjunctive rows for a binary order and prove M=7 valid. Show how a fractional order may permit overlap.

    Show the answer and reasoning

    For y=1 meaning job 1 before job 2, use s2>=s1+2-7(1-y), s1>=s2+3-7y. Both starts zero with y=1/2 is relaxed-feasible but overlapping.

    The domain is s1, s2>=0, s1+2<=7, s2+3<=7, with y binary. At y=1, the first row requires job 1 to finish before job 2 starts. The other row has right side s2+3-7<=0 and is redundant against s1>=0. Thus this branch imposes exactly that first nonoverlap order. At y=0, the second row requires job 2 to finish before job 1 starts. The first row has right side s1+2-7<=0 and is redundant against s2>=0. Every nonoverlapping pair satisfies one of those orders, so the two binary cases cover exactly the intended disjunction within the declared horizon. If y is relaxed to 1/2 and s1=s2=0, the first right side is 2-7/2=-3/2 and the second is 3-7/2=-1/2. Both rows hold, as do the horizon bounds. Nevertheless the processing intervals [0, 2) and [0, 3) overlap, showing that fractional order is not an executable schedule. The constant seven is justified by the actual finish bound, not by the scale of a few observed starts. If the original jobs could finish later than seven, this redundancy proof would no longer apply. The binary domain, positive durations, half-open interval convention and justified horizon are all part of the exact formulation.

  13. Two jobs with positive durations must each finish before the other starts. Add the two inequalities and prove infeasibility; explain why zero durations change the argument.

    Show the answer and reasoning

    Adding sB>=sA+pA and sA>=sB+pB gives 0>=pA+pB, impossible when their positive durations sum to more than zero. Two zero-duration jobs may share one start.

    The first precedence says B cannot start before A finishes: sB>=sA+pA. The second says A cannot start before B finishes: sA>=sB+pB. Add them and cancel both start variables. The necessary condition is 0>=pA+pB. With both durations positive, the sum is strictly positive and contradicts that condition. No start times, finite horizon enlargement or additional machine can fix it, as the contradiction already exists within the two precedence rows. It is a mathematical infeasibility certificate independent of search behavior. If both durations are zero, the inequalities reduce to sB>=sA and sA>=sB, which allow equal starts, for example both zero. If one duration is positive and the other zero, the total is still positive and the contradiction persists. The relevant cycle condition is positive total duration, not merely the presence of a directed cycle as an unlabeled graph. A scheduling model may collapse a strongly connected component of zero-duration operations only after checking its other constraints. Negative durations are not an admissible escape from this job model. Save the actual cycle and summed duration when reporting infeasibility so its assumptions can be distinguished from a failure of an algorithm to find a schedule.

  14. For two jobs p=(2, 4), w=(1, 2), prove both orders have the same weighted completion cost. State a consistent placement rule for an extra positive-duration zero-weight job.

    Show the answer and reasoning

    Both orders have weighted completion cost 14, because both p/w ratios equal 2. Place a positive-duration zero-weight job after all positive-weight jobs.

    For jobs A and B with p=(2, 4) and w=(1, 2), the ratios are 2/1=2 and 4/2=2. The adjacent interchange difference wB*pA-wA*pB is 2*2-1*4=0. Therefore swapping their order changes neither the pair contribution nor later completion times. In order A, B, the completion times are two and six, and the weighted cost is 1*2+2*6=14. In order B, A, the completion times are four and six, and the weighted cost is 2*4+1*6=14. With only these two positive-weight jobs and no idle time, these are the complete permutation alternatives. An extra job Z with pZ>0 and wZ=0 contributes no weighted completion cost itself. If it precedes a positive-weight job J, moving Z just after J reduces the weighted cost by at least wJ*pZ>0. Repeating moves it after every positive-weight job. Its place among other zero-weight jobs can be arbitrary. Do not evaluate pZ/wZ as ordinary arithmetic division. Treat zero-weight jobs as a separate final priority class under the stated all-available, single-machine model. Release times, precedences or a different objective can prevent these swaps or make an otherwise free job relevant to feasibility.

  15. Find or verify a two-job positive-duration example, all available at zero, where EDD minimizes maximum lateness but another order has smaller total tardiness. Give all due dates and both full schedules.

    Show the answer and reasoning

    Take A: p=4, d=1 and B: p=1, d=2. EDD A, B has Lmax=3, total tardiness 6; B, A has Lmax=4, total tardiness 4.

    Both jobs are available at zero. EDD places A first because its due date one is less than B’s due date two. Completions are CA=4 and CB=5. Their latenesses are 4-1=3 and 5-2=3, so maximum lateness is three and total tardiness is three plus three, namely six. In order B, A, the completion times are CB=1 and CA=5. Latenesses are 1-2=-1 and 5-1=4. Their maximum is four, but tardiness replaces the negative lateness by zero, so total tardiness is zero plus four, namely four. This is strictly below the EDD total. There are only two no-idle permutations, and removing idle time cannot increase either objective because every completion time weakly decreases. Thus EDD is indeed minimum for maximum lateness in this instance, while the other order is minimum for total tardiness. The example does not compare an infeasible or differently released schedule. Maximum tardiness is the positive part of maximum lateness and is also minimized by EDD here. A sum of positive parts is a different objective; the interchange bound on the pair maximum does not prove a corresponding sum bound. Stating the exact objective prevents a valid improvement in one criterion from being misreported as a contradiction of another theorem.

  16. For m=1, derive the list-scheduling approximation bound and show equality with the exact makespan. State why preemptive or unrelated machines require another model.

    Show the answer and reasoning

    With one machine, list scheduling has makespan P=sum p_j, matching the total-work lower bound. The factor becomes 1. Other machine/preemption models require their assumptions to be stated separately.

    For m=1, there is only one current load and every listed job is appended to it. With all jobs available at zero and no other constraints, the completion of the final job is P=sum_j p_j. Every feasible one-machine schedule must perform that total amount of processing, so its makespan is at least P. The list schedule therefore attains the lower bound exactly, regardless of job order. Substituting m=1 in 2-1/m gives one, consistent with exact optimality. If the job set is empty, the optimum and returned makespan are zero; report equality instead of an undefined zero-over-zero ratio. The general last-job proof assumes a job receives one fixed duration on any of the identical machines and occupies a contiguous nonpreemptive interval. With unrelated machines, duration can depend on assignment, so there is no single assignment-independent total P or longest-job value of that same form. Those changes require their own lower bounds and algorithm. Preemption changes the schedule representation and may change the comparison optimum, although some total-work lower bounds remain true and one-machine all-available makespan is still P under ordinary nonparallel processing. Do not claim every conclusion fails; state which model and certificate were actually proved before extending the factor to a new scheduling setting.

  17. A minimum objective is known to be an integer and an exact valid lower bound is 17/5. Round it safely. Explain why an unproved floating output 3.400001 is not automatically the same certificate.

    Show the answer and reasoning

    The exact lower bound 17/5 rounds upward to 4. An unchecked floating number 3.400001 does not by itself prove a lower bound.

    Every original objective value is an integer. If L=17/5 is a valid lower bound, then every feasible value k satisfies k>=17/5 and k in Z, which implies k>=4. Thus ceil(17/5)=4 is a valid strengthened lower certificate. This uses the exact rational value and the integer-value premise. If a checked feasible incumbent has cost four, the same lower bound proves exact optimality. If its cost is larger, the bound still narrows the enclosure but does not close it. Integrality of variables alone is insufficient when the objective has noninteger coefficients or continuous terms that can produce noninteger values. A floating output 3.400001 has no certified direction merely from its printed digits. It could have come from an infeasible candidate, a wrong relaxation or an unbounded rounding error. Taking its ceiling does not establish validity. Close to an integer, an upward error could even change the ceiling and falsely exclude the true optimum. If a separate rigorous evaluation bound shows a reported lower quantity can overstate a valid bound by at most epsilon, use the corrected value Lsafe=Lreported-epsilon before rounding. The safe error direction and exact objective scale must be recorded. A solver tolerance without that supporting inequality is not the same certificate as the exact 17/5 given in the question.

  18. A feasible integer incumbent has mathematical gap at most delta, and two objective models differ by at most eta everywhere on the same feasible set. Prove the physical gap bound without assuming physical attainment, and explain why incumbent-only error control is insufficient.

    Show the answer and reasoning

    The physical gap is at most delta+2eta. Incumbent-only agreement leaves the physical cost of competitors uncontrolled and gives no such guarantee.

    Let xhat be feasible and f(xhat)-inf_F f<=delta, with finite model infimum. Uniform error gives q(xhat)<=f(xhat)+eta<=inf_F f+delta+eta. For every x in the same F, we also have q(x)>=f(x)-eta, so taking infima gives inf_F q>=inf_F f-eta. Subtract the second inequality from the first to obtain q(xhat)-inf_F q<=delta+2eta. The gap is nonnegative because xhat belongs to F. No point attaining inf_F q was selected, so physical attainment is unnecessary. Uniform finite error also keeps its infimum finite when the model infimum is finite. For the limitation, take F={a, b}, f(a)=0, f(b)=1, and choose xhat=a, an exact model optimizer. Set q(a)=0 but q(b)=-M for any positive M. There is zero model error at the incumbent, yet its physical gap is M and can be arbitrarily large. The missing uniform control at b destroys any conclusion based only on incumbent agreement. A different physical feasible set requires more than these objective inequalities: the incumbent might cease to be feasible or new competitors might appear. The transfer theorem therefore retains a shared domain, uniform objective error and a proved mathematical gap as separate premises. It quantifies conditional decision quality, not empirical validation of those premises.

What to carry forward

  • A finite nonempty decision set with a finite objective attains an optimum. An unbounded discrete set can have a finite unattained infimum.
  • Integral vertices require a structural proof for the complete formulation. A tied fractional optimum can be a mixture of integral optima, and extra resource rows can remove integrality.
  • A feasible flow with no negative residual cycle is minimum cost. Potentials, balance terms and capacity penalties give an explicit matching bound.
  • Dynamic-programming states must record enough information to preserve decisions. O(nW) is a numerical-size bound; profit scaling needs its own loss and encoded-size analysis.
  • Approximation factors follow from exact premises and lower bounds. Maximal matching, dual fitting, weighted price growth and list scheduling each have different scope.
  • A branch-and-bound certificate covers the entire live frontier and records why other branches closed. Valid cuts and objective rounding require exact sign and integrality information.
  • Scheduling guarantees depend on release times, resources, preemption rules, durations and objective. EDD, Smith ordering, critical paths and list scheduling solve different declared problems.
  • A model gap is conditional on its feasible set and objective. Robust quantifiers, recourse and uniform model-error allowances must be stated before a certificate is transferred to a real decision.

References

Sources for the concepts and teaching approaches in this article.

  1. Integer Programming and Combinatorial Optimization, Lecture 3 (2009), selected printed pages 2–4MIT OpenCourseWare, 15.083JPrimary · PDFInteger formulations and valid roundingCuts from exact integer arithmeticBranching, bounds and a search frontierocw.mit.edu
  2. Mohsen Ghaffari; notes by Davin Choo2 sources
    1. Greedy set cover and matching certificatesMohsen Ghaffari; notes by Davin ChooPrimary · PDFpeople.csail.mit.eduRead source
    2. Knapsack scaling and encoded sizeMohsen Ghaffari; notes by Davin ChooPrimary · PDFpeople.csail.mit.eduRead source
  3. Residual cycles and minimum-cost potentialsDavid P. Williamson; notes by Brian LevinePrimary · PDFpeople.orie.cornell.eduRead source
  4. Earliest due dates and maximum latenessE. L. Lawler, J. K. Lenstra, A. H. G. Rinnooy Kan and D. B. ShmoysPrimary · PDFpeople.orie.cornell.eduRead source
  5. Weighted completion and the Smith interchangeE. L. Lawler, M. Queyranne, A. S. Schulz and D. B. ShmoysPrimary · PDFpeople.orie.cornell.eduRead source
  6. List scheduling on identical parallel machinesCornell ORIE 6335 course-hosted chapter notesPrimary · PDFpeople.orie.cornell.eduRead source
  7. Michel X. Goemans2 sources
    1. Total unimodularity and integral basic pointsMichel X. GoemansPrimary · PDFmath.mit.eduRead source
    2. Residual paths, integral flow and a cutMichel X. GoemansPrimary · PDFmath.mit.eduRead source
  8. A finite bound for a one-way implicationMOSEK ApSPrimarydocs.mosek.comRead source