In a constraint indexed like
subject to con1 gemma {i in I, j in J, x in X, y in Y}: ...
you can write, as part of the constraint expression,
... sum {m in X, n in Y} gemma[i,j,m,n] ...
Here m in not necessarily equal to x, and n is not necessarily equal to y. Thus at least it is an example of the situation you describe.
Bob Fourer
am...@googlegroups.com
--
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ampl+uns...@googlegroups.com.
To post to this group, send email to am...@googlegroups.com.
Visit this group at https://groups.google.com/group/ampl.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ampl/ar8_V_JHP88/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ampl+uns...@googlegroups.com.