Is there something like varible in other languages in GAMS for softcoding?
Posted: Tue Jan 10, 2023 9:51 pm
Hi friends,
I'd like to write a model in GAMS and run it for a number of different data. So, for example, in one run I might have a set j /1*30/ and in other run I might want to change it to set j/1*50/. And many other similar cases.
So, when this is the case, in other languages you go with softcoding like: total_nodes = 30 and then set j /1* total_nodes/
However, it seems as if there's no such thing as variable (with that definition) in GAMS. One thing is to use parameters. But it there any direct thing available?
I'd like to write a model in GAMS and run it for a number of different data. So, for example, in one run I might have a set j /1*30/ and in other run I might want to change it to set j/1*50/. And many other similar cases.
So, when this is the case, in other languages you go with softcoding like: total_nodes = 30 and then set j /1* total_nodes/
However, it seems as if there's no such thing as variable (with that definition) in GAMS. One thing is to use parameters. But it there any direct thing available?