add compute_constraints.py