You can always try it both ways, though. Changing option substout from its
default of 0 to 1 will cause all the p[n,m] = ... equations to be
automatically substituted out, provided no bounds are specified in the "var"
statement that defines p. So you can compare that with substout 0 which
leaves the constraints in. Set option show_stats 1 to check that the
substitutions are proceeding as expected. If possible, start by
experimenting on a small version of the problem, then scale up until you
reach the size of interest.
Bob Fourer
4...@ampl.com