Hi,

I wish to run my current GAMS model for 10-12 sets of data, by data I mean the values of the parameters that are being fed to the model at each run. At present I have to manually alter the data before each run, but it is quite a tedious process. So I was wondering how can I modify my Gams code so that it takes one set of data at a time, processes it, records the output and then automatically performs the same operation for the next set of data. For instance; in context of the basic Transportation model, suppose I want to run the model for 10 different sets of Supply and Demand values, so what should be my approach to automate this process rather than manually altering the Demand and Supply values for each run in the gams file.

I would highly appreciate if someone can kindly tell me what should be my approach, and what all topics I need to study for that, as this is only my second week using Gams.

Thanks and Regards,

Akshat

–

To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/QZHmNS0GehIJ.

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.

Hi,

you can use “loop”. there is detail introuduction in GAMS user guide.

Good luck.

FAN

2012/7/5 Akshat Dimri

Hi,

I wish to run my current GAMS model for 10-12 sets of data, by data I mean the values of the parameters that are being fed to the model at each run. At present I have to manually alter the data before each run, but it is quite a tedious process. So I was wondering how can I modify my Gams code so that it takes one set of data at a time, processes it, records the output and then automatically performs the same operation for the next set of data. For instance; in context of the basic Transportation model, suppose I want to run the model for 10 different sets of Supply and Demand values, so what should be my approach to automate this process rather than manually altering the Demand and Supply values for each run in the gams file.

I would highly appreciate if someone can kindly tell me what should be my approach, and what all topics I need to study for that, as this is only my second week using Gams.

Thanks and Regards,

Akshat

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.

Thanks Fan. I will try to implement your advice and will seek your help if needed.

Regards,

Akshat

On Thursday, July 5, 2012 3:26:19 AM UTC-4, Jingli Fan wrote:

Hi,

you can use “loop”. there is detail introuduction in GAMS user guide.

Good luck.

FAN

2012/7/5 Akshat Dimri

Hi,

I wish to run my current GAMS model for 10-12 sets of data, by data I mean the values of the parameters that are being fed to the model at each run. At present I have to manually alter the data before each run, but it is quite a tedious process. So I was wondering how can I modify my Gams code so that it takes one set of data at a time, processes it, records the output and then automatically performs the same operation for the next set of data. For instance; in context of the basic Transportation model, suppose I want to run the model for 10 different sets of Supply and Demand values, so what should be my approach to automate this process rather than manually altering the Demand and Supply values for each run in the gams file.

I would highly appreciate if someone can kindly tell me what should be my approach, and what all topics I need to study for that, as this is only my second week using Gams.

Thanks and Regards,

Akshat

To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/YMsC5weYoOAJ.

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.