[AMPL 24606] Index problem

This has been answered in our new user forum, at
https://discuss.ampl.com/t/ampl-duplicate-member-x-for-set-y-how-to-fix-it/474/