Converting a Linear Program to Standard Form

Standard form requires a minimization objective, equality constraints, and nonnegative variables. Any linear program can be converted to an equivalent standard-form program by negating a maximization objective, introducing slack or surplus variables, and splitting free variables into a difference of two nonnegative variables.

Definition

In this course, standard form means a linear program written as min c T x subject to A x = b and x ≥ 0 : a minimisation, every constraint an equality, every decision variable nonnegative.

The qualifier is not pedantry. Other texts fix a maximisation, or admit inequality constraints, and call that standard form; none is more correct. A conversion is only well defined once the target shape is named, and the theory built on it, the basis, the reduced costs, the optimality test, is stated for this one.

Formal statement

min c T x subject to A x = b , x ≥ 0 , with A an m × n matrix, b ∈ R m , and c ∈ R n .

Assumptions and scope

  • Converting a maximization objective by minimizing its negation preserves the set of optimal solutions; the optimal value changes sign.

  • A slack or surplus variable is itself a decision variable of the converted program and carries a nonnegativity restriction.

  • Splitting a free variable x into x + − x − with x + , x − ≥ 0 does not determine x + and x − uniquely, so the converted program may have multiple optimal solutions representing the same original solution.

Worked material

Contrast

Slack and surplus are not interchangeable

The sign on the introduced variable is determined by the direction of the inequality, and getting it wrong changes the feasible set.

Correct. x 1 − x 2 ≥ 1 becomes x 1 − x 2 − e 1 = 1 with e 1 ≥ 0 .

Incorrect. x 1 − x 2 ≥ 1 becomes x 1 − x 2 + s 1 = 1 with s 1 ≥ 0 .

Why the second fails: with s 1 ≥ 0 , the equation forces x 1 − x 2 = 1 − s 1 ≤ 1 . That is the opposite restriction from the one the original constraint states. A point such as x 1 = 5 , x 2 = 0 satisfies the original constraint but cannot satisfy the incorrect conversion for any s 1 ≥ 0 .

The reliable check is directional: a ≤ constraint has room left over, so you add the leftover; a ≥ constraint has an excess, so you subtract the excess.

Common errors

Common misconception

A greater-than-or-equal constraint is converted to an equality by adding a nonnegative variable, in the same way a less-than-or-equal constraint is.

Related units

Connected

Learn this topic

Used in

Sources

Results update as you type. Use the up and down arrow keys to move between results, Enter to open one, and Escape to close.

Type to search.

Settings

Appearance

Interface density

Your record

Your progress is stored in this browser and nowhere else: an identifier, the answers you have given, the mastery states and review schedule derived from them, and the lesson you last opened. Clearing it makes you a new learner on this device. It cannot be undone, and it will not affect your appearance or density settings.

Focus timer

Focus--minutes remaining

Phase

Kept in this browser only, and used to label the session in your own history.

Today

Nothing recorded yet. Finish a focus session and it will appear here.

Settings

Focus sessions between long breaks.

Sessions you are aiming for in a day.

Notifications

Your history

Sessions are stored in this browser and nowhere else. They are not evidence and never reach your mastery record.