Hi. I’d like to implement model look like this.

Set

i

Variables

a(i)

b(i)

mult(i,i)

and mult(i1,i2) = a(i1) * a(i2) where i1, i2 are different or same elements of i.

How can i express this equation in GAMS?

Hi. I’d like to implement model look like this.

Set

i

Variables

a(i)

b(i)

mult(i,i)

and mult(i1,i2) = a(i1) * a(i2) where i1, i2 are different or same elements of i.

How can i express this equation in GAMS?

Hi

Use an alias and define the parameter like this

alias(i,j);

mult(i,j) = a(i) * a(j);

cheers

Renger

thank you very much! I just learned the ‘alias’ function. It opens so many possibilities in formulation