add.constraint function

General interface for adding and/or updating optimization constraints.