Changes in add_ratio_constraint