The Matrix Form of a Linear Program
Collecting the coefficients of a linear program into a matrix and its data into vectors replaces
Definition
A linear program written out in scalars,
is written in matrix form as
where
The shapes are forced by the arithmetic.
The inequality is entrywise.
Row reading. Row
Column reading. Column
Reading by columns exhibits the left-hand side as a combination of the columns, with the variables as weights.
Formal statement
Assumptions and scope
The relation
holds entrywise: it abbreviatesscalar inequalities and asserts nothing about norms or about any other ordering of vectors. The shapes must agree.
is with one row per constraint and one column per variable, sois an -vector; a transposed produces a product that is defined only by accident and means something else. Sign restrictions are stated separately from
. Writing as extra rows ofis possible but changes which rows the later theory counts as constraints. The matrix form records the same program, not a simpler one. Converting to it neither removes constraints nor changes the feasible set.
Forms this is expressed in
The same content in several forms. Each makes something visible that the others leave implicit, so moving between them is part of understanding the topic rather than a presentation choice.
symbolic
The product
This form answers questions about a point. Deciding feasibility is running down the rows and comparing each dot product with its right-hand side. Identifying the active set is collecting the rows that hold with equality. Describing the feasible region as an intersection of half-spaces is the same reading applied to every row at once.
What it does not expose is what a plan is made of. A row mixes every variable together into one number, so nothing in this reading isolates the contribution of a single activity, which is what a basis selects and what a pivot exchanges.
Translates into: symbolic
symbolic
The product
So
This form answers questions about which plans are available. A basis is a selection of
What it does not expose is whether a given point is allowed. Feasibility is a row question, and no single column answers it.
Translates into: symbolic
Worked material
Non-example
Four assemblies that are not the program
Comparing the vectors as wholes. A reader takes
A transposed coefficient matrix. Writing
A dropped direction. A constraint
Omitted zeros. Variable 3 absent from constraint 1 is recorded as
What unites the four is that each produces a well-formed object. Nothing about
Contrast
The same matrix, read two ways
Take
for three products and three resources.
| Row reading | Column reading | |
|---|---|---|
| What one line is | a constraint | an activity |
| Row 2 / column 2 says | product mix uses | one unit of product 2 uses |
| The question it answers | is this plan allowed? | what does this product cost in resources? |
| a list of resource totals, one per constraint | ||
| Used by | feasibility, active sets, the polyhedron | bases, pivots, reduced costs |
Both descriptions are of the same nine numbers. Row 2 and column 2 share only the entry
The practical use of the distinction is diagnostic. A reader stuck on "what is
Common errors
Common misconception
In
Related units
Requires
Connected
- Converting a Linear Program to Standard Form (best taken before)
- Basic Solutions (used by)
- The Row and Column Pictures (analogous to)