Handle constraints on multiple variables.