add the partial constraints class.