Hello,
I am going to transfer a 'SET' from GAMS into MATLAB.
At first glance, it seems easy if the number of SET elements (entries) is low.
For example, if the number of SET elements is five then it will be easily written in MATLAB as follows
>> t =struct('name','t','value',[linspace(1,5,5)]','type', 'set','form','sparse','compress','true');
>> t.uels={'1','2','3','4','5'};
But if the number of SET elements is high (e.g. 200 or 1000), how can I write the line 't.uels={'1','2','3',...,'1000'}' ? It is not logical to write 1000 elements!
I would be grateful if you give me a convincing solution.
Regards,
Morteza Shabanzadeh
http://mortezash.blogfa.com/