Dual linear program¶
The linear program constructed from a specified primal by exchanging variables and constraints, transposing the coefficient matrix, reversing objective direction, and applying the corresponding sign and inequality rules.
Core Idea¶
A dual linear program is the linear optimization problem constructed from a given primal program by exchanging the roles of variables and constraints and reversing the objective direction. For the standard primal [ \max c^Tx\quad\text{subject to }Ax\leq b, x\geq0, ] the dual is [ \min b^Ty\quad\text{subject to }A^Ty\geq c, y\geq0. ] Each primal constraint supplies one dual variable, each primal variable supplies one dual constraint, and the matrix is transposed.
How would you explain it like I'm…
The Flipped Partner Puzzle
Best Plan and Its Partner
Primal–Dual Linear Programs
Scope of Application¶
A dual linear program operates within linear optimization wherever a specified primal LP supplies the objective, coefficient matrix, constraint senses, and variable restrictions from which its partner is derived.
- Standard-form dual construction. — max–min pairs with nonnegative variables and one-sided inequalities expose the basic exchange of primal variables and constraints through A^T.
- Mixed constraint and sign forms. — equality constraints, free variables, reversed inequalities, and nonpositive variables are handled by the corresponding dual sense and sign rules.
- Weak-duality bounds. — every feasible dual solution supplies a certificate bounding every feasible primal objective in the direction fixed by the pair.
- Optimality certification. — equal objective values for a feasible primal–dual pair certify optimality under LP duality without enumerating either feasible region.
Clarity¶
Naming the dual linear program distinguishes a rule-governed partner from any other optimization problem that shares a value or interpretation with the primal. The correspondence is exact: each primal constraint becomes a dual variable, each primal variable becomes a dual constraint, and every inequality, equality, and sign restriction determines the matching dual condition.
Manages Complexity¶
A linear program may contain many variables, constraints, coefficient signs, and inequality directions, yet dual construction reduces their reorganization to a fixed correspondence. For a primal with n variables and m constraints, the analyst tracks the shared coefficient matrix, its transpose, the exchange of the objective and right-hand-side vectors, and the sign/inequality conversion table. The result has m dual variables and n dual constraints.
Abstract Reasoning¶
The constructive inference runs from a primal program's objective direction, coefficient matrix, constraint senses, and variable signs to its dual. Each primal constraint becomes a dual variable, each primal variable becomes a dual constraint, A becomes A^T, and the sign/sense correspondence fixes the remaining branches. Applying the correspondence again provides a diagnostic check: the dual of the dual must recover the primal in the matched form.
Knowledge Transfer¶
Within linear programming, dual construction transfers literally across resource allocation, production planning, and any other application that can be expressed as an LP. The application's nouns change, but the coefficient matrix, objective and right-hand-side vectors, constraint senses, and variable signs still determine the primal-to-dual map. The same diagnostics carry with them: a feasible dual vector certifies a bound, equality of feasible objective values certifies optimality, and the dual variables can be interpreted against the primal constraints that generated them.
Relationships to Other Abstractions¶
Current abstraction Dual linear program Domain-specific
Parents (1) — more general patterns this builds on
-
Dual linear program is a kind of Linear Programming (LP) Prime
A dual has continuous decision variables, a linear scalar objective, and a feasible region cut out by linear equalities or inequalities, so it realizes the parent's complete optimization object rather than merely assisting one.
Hierarchy paths (2) — routes to 2 parentless roots
- Dual linear program → Linear Programming (LP) → Optimization
- Dual linear program → Linear Programming (LP) → Constraint
Neighborhood in Abstraction Space¶
Dual linear program sits in a sparse region of the domain-specific corpus (88th percentile for distinctiveness): few abstractions share its structure, so a faithful description tends to retrieve it precisely.
Family — Unclustered & Miscellaneous (2551 abstractions)
Nearest neighbors
- Strong duality — 0.83
- Fourier–Motzkin Elimination — 0.82
- Domination Analysis — 0.80
- Generalized inverse — 0.80
- Interior-Point Method — 0.80
Computed from structural-signature embeddings · 2026-10-08