Skip to content

Artificial Variable

Definition

An artificial variable Ri≥0R_i\ge0 is introduced temporarily into an equality or a converted ≥\ge constraint to construct an initial basis. It is added with coefficient +1+1 and initially takes the nonnegative right-hand-side value while the other variables in that row are zero.


Interpretation

An artificial variable is a temporary device for starting the simplex method. It gives a constraint row a ready starting value when neither a slack nor a surplus variable can provide one. It has no practical interpretation and must be driven to zero before the original equations hold.

Three stacked versions of two constraints: the original inequality and equation, the inequality with a surplus variable subtracted, and both with artificial variables R1 and R2 added.

The figure shows why the surplus alone is not enough. After subtracting S1S_1, setting xA=xB=0x_A=x_B=0 in the first row would give S1=−6S_1=-6, which violates S1≥0S_1\ge0, and the equation 3xA+xB=63x_A+x_B=6 has no added variable at all. Adding R1R_1 and R2R_2 with coefficient +1+1 gives both rows a nonnegative starting value.

With R1>0R_1>0, the current augmented row gives xA+2xB−S1=6−R1<6x_A+2x_B-S_1=6-R_1<6, so the current values do not solve the original surplus-variable equality. This does not by itself show that the decision variables violate the original inequality: a smaller surplus might restore that equality. Setting every artificial variable to zero recovers the original augmented system. Phase I of the two-phase method therefore minimizes their sum; a positive minimum shows that no such representation exists and the original problem is infeasible. A ≤\le row with a nonnegative right-hand side needs no artificial variable, because its slack already starts at the right-hand side.

Unlike a slack or surplus, which measures a real amount and may stay positive in the final solution, an artificial variable has no meaning in the original model. It is set to zero when representing a solution of that model.


Key Results

  • They differ from slack and surplus variables, which record genuine inequalities.
  • The first phase of the two-phase method maximizes the negative sum of artificial variables.
  • The original constraints are recovered when every artificial variable is zero.

Examples

In the figure, setting xA=xB=S1=0x_A=x_B=S_1=0 gives the initial artificial basis R1=R2=6R_1=R_2=6. Minimizing R1+R2R_1+R_2 is equivalent to maximizing its negative, as used in Phase I.

  • 2x1+3x2=62x_1+3x_2=6 becomes 2x1+3x2+R1=62x_1+3x_2+R_1=6.
  • 3x1−x2≥43x_1-x_2\ge4 becomes 3x1−x2−S1+R2=43x_1-x_2-S_1+R_2=4.

Prerequisites

Sources

Last updated: 27 October 2026 11:52