how to get a time series between 1 and any value

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”.

$setlocal timestep  3

set  time  /1*%timestep%/
display time;

Cheers
Renger