A boundary line is a line that separates different regions on a graph, representing constraints in a linear programming problem. It defines the limits of feasible solutions, where one side of the line contains potential solutions that satisfy all constraints, while the other side does not. The boundary line is crucial in determining the optimal solution by identifying feasible regions formed by intersecting constraints.