Britannica Sources used in this answer

What does a slack variable show about unused resources in a linear programming problem?

Created from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles.

In linear programming, a slack variable is a non-negative variable introduced to convert a linear inequality constraint into an equality constraint.12

These variables quantify the difference between the limit imposed by a constraint and the actual amount used. For example, if a constraint is expressed as x1+x3=8, where x1 is a production variable and x3 is the slack variable, the value of x3 represents the amount of the resource that remains unused.12

When a slack variable is greater than zero, it indicates that the corresponding constraint is not "binding," meaning there is leftover capacity or resource. If a slack variable equals zero, it indicates that the resource is fully utilized, meaning the constraint is binding at that specific extreme point. By incorporating these variables, the simplex method can algebraically analyze the boundaries of the feasible region to determine the optimal solution.12