eval_constraints function

Evaluate constraints