Hi.
I have a model with some very large sets, and would like AMPL to read the sets from .txt-files.
The sets:
set P; #production plants
set W; #warehouses
set R; #retailers (more than 4'600)
set I := P union W; #all predecessor nodes
set S := W union K; #all successor nodes
set X{S}; #predecessor nodes for node s
set Y{I}; #successor nodes for node i
If e.g. I'd want to read set R from a .txt file, how would I write it?
I have tried to read the sets from .xlsx tables, but I run a 64-bit AMPL and 32-bit Excel, which gave me some trouble.
Thanks.