Page 1 of 1

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

Posted: Tue Jun 13, 2017 2:33 pm
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