You are iterating between two AMPL named problems, which is fine, but probably
they are not getting defined correctly. In particular each named problem has
its own environment of options, and apparently the "solver" option for the
master problem is not being specified as intended. I can't tell more from the
pseudocode that you give, however.
See also section 14.5 of the AMPL book (2nd edition).
Bob Fourer
4...@ampl.com