Hello all,

Apologies for what is probably a simple syntax problem, but i’m struggling to find the answer in any of the online resources.

I am trying to define the parameter â€˜maxflow_yearâ€™ by telling GAMS that for all years 2015 to 2050, it should use the data referenced for 2010 in the parameter a_data(a,i,j,y,ac).

So, I thought it would be this syntax:

maxflow_year(a,i,j,y) = a_data(a,i,j,y,‘maxflow_year’);

maxflow_year(a,i,j,‘2015*2050’) = a_data(a,i,j,‘2010’,‘maxflow_year’);

But I get Error 170: ‘domain violation for element’

What am I doing wrong? I can reference one year on the LHS, and it works fine, i.e:

maxflow_year(a,i,j,y) = a_data(a,i,j,y,‘maxflow_year’);

maxflow_year(a,i,j,‘2015’) = a_data(a,i,j,‘2010’,‘maxflow_year’);

But I want to do it for all years in the model horizon.

Can anyone see what Iâ€™m doing wrong here?

Thanks in advance,

Stevie

–

To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.

To post to this group, send email to gamsworld@googlegroups.com.

Visit this group at http://groups.google.com/group/gamsworld.

For more options, visit https://groups.google.com/d/optout.