# pre_solve hooks