How to create an index in GAMS

Hi,

Considering that I have two parameters:
Parameter1(a,b,c,“age”)
Parameter2(a,b,c,“SiteIndex”)

How can I create:
Parameter3(a,b,c,“age.SiteIndex”)?

I mean, what I’m wondering is if there is a way of putting together both parameters creating a “unique” index, which I will use to extract value from a lookup table.
Ps.: I don’t want to sum up both parameters, I simply want to “glue” them.

Any hints are more than welcome =)

Cheers,

Ana

Hi Ana

You could just use one parameter:

	age(a,b,c)  'Your original parameter1',
	siteIndex(a,b,c) 'Your original parameter2'
	allstuff(a,b,c,*)

allstuff(a,b,c,"Age') = age(a,b,c);
allstuff(a,b,c,"siteIndex") = siteIndex(a,b,c);

or like this:

set d /"Age", "Index"):

parameters
age(a,b,c)  'Your original parameter1',
siteIndex(a,b,c) 'Your original parameter2'
allstuff(a,b,c,d)

allstuff(a,b,c,"Age') = age(a,b,c);
allstuff(a,b,c,"siteIndex") = siteIndex(a,b,c);

Cheers
Renger