Ruben P.
unread,Dec 10, 2010, 4:04:05 PM12/10/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to AMPL Modeling Language
Here is an interesting situation,
Say you have the following syntax:
# in the model file
set T;
set B{T};
# in the data file
set T:= 1 2 3;
set B[1]:=a b;
set B[2]:= c d e;
set B[3]:= f g;
Then how do you refer to the first element of B[1] ( 'a' ) ? I tried
using B[1][1] and B[1,1] but they did not work. Is there a way one can
refer to any of the elements of B[j]?
Thanks,
Ruben