add_linear_constraints function

Add linear constraints