assign the items in a dynamic set from a outside .inc file

Hi,



I will use a dynamic set, but the items of the set is decided by the outside code such as matlab.



I wonder if anybody can give a hint how to assign the items of a set by the outside file or such as .inc file.



Sets

L static set /1, 2, 3, 4/

I static set /1, 2, 3, 4, 5, 6/

LI complex set based on L and I / 3.1, 1.2, 2.3, 3.4, 3.5, 4.6 /

IN a dynamic set, a subset of LI but the elements are decided by outside code and therefore are stored in a file such as “set.inc”.



********* how to assign the items for IN???





Thanks a lot!





Lili


To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.

Dear Lili
You can use gdx files to communicate between Matlab and gams, to exchange dynamic set or parameters, etc. Please refer to the gdxmrw manual in gams or
http://www.gams.com/dd/docs/tools/gdxmrw.pdf
By the way, if u want to use that, I would suggest first updating your gams and then using gdxmrw.

I hope it will help.
Regards

محمد صادق تولّلی
Mohammad Sadegh Tavallali
National Univeristy of Singapore

On Thu, Jun 16, 2011 at 1:48 AM, Lili Du wrote:

Hi,



I will use a dynamic set, but the items of the set is decided by the outside code such as matlab.



I wonder if anybody can give a hint how to assign the items of a set by the outside file or such as .inc file.



Sets

L static set /1, 2, 3, 4/

I static set /1, 2, 3, 4, 5, 6/

LI complex set based on L and I / 3.1, 1.2, 2.3, 3.4, 3.5, 4.6 /

IN a dynamic set, a subset of LI but the elements are decided by outside code and therefore are stored in a file such as “set.inc”.



********* how to assign the items for IN???





Thanks a lot!





Lili


To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.

\

To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.