box_constraint function

constructor for box_constraint.