A constraint equation is utilized in mathematical modeling to express relationships between variables that impose restrictions on their possible values, often representing physical, economic, or logistical limitations in a given problem. It serves as a critical component of optimization problems, helping to define the feasible region within which optimal solutions can be found.