If the array is a parameter array, rather than a variable array, then yes. If it is a variable array, I think you'll need a binary variable array of equal dimension and a whole bunch of constraints.
Paul
To view this discussion on the web visit https://groups.google.com/d/msg/ampl/-/iYIpZ_2UpxgJ.
--
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To post to this group, send email to am...@googlegroups.com.
To unsubscribe from this group, send email to ampl+uns...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ampl?hl=en.