[AMPL 24620] change the solver using loop

This question has been answered in our new, enhanced user forum at https://discuss.ampl.com.