how to get a time series between 1 and any value Topic is solved

Problems with syntax of GAMS
Post Reply
User avatar
Renger
Posts: 639
Joined: 7 years ago

Re: how to get a time series between 1 and any value

Post by Renger »

Hi
Use $setlocal to define the timestep value. You can then use it in the definition of time (you can't use a parameter in a set definition, so I used the $setlocal timestamp: Gams then replaces every occurrence of %timestamp% by the string "3".

Code: Select all

$setlocal timestep  3

set  time  /1*%timestep%/
display time;
Cheers
Renger
____________________________________
Enjoy modeling even more: Read my blog on modeling at The lazy economist
Post Reply