check_constraints function

check if a set of weights satisfies the constraints