Hi, friend,

I have a problem here:

i /t1*t4/*

j /j1j3/

table w(i,j)

j1 j2 j3

t1 1 0 0

t2 0 1 2

t3 2 0 1

t4 2 2 1;

how can I write a parameter which is the transpose of w(i,j) i,e

should be w(j,i). how can I use w(i,j) to express its transpose but

not define another parameter?

Thank you very much

Best regards

Jens

–~–~---------~–~----~------------~-------~–~----~

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

To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com

For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en

-~----------~----~----~----~------~----~------~–~—

\

Hi Jens

As far as I know there is no transpose function in Gams, so the alternative

would be to define another parameter ttrans(j,i) and define it

ttrans(j,i) = w(j,i);

Cheers,

Renger

-----Original Message-----

From: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] On

Behalf Of Jens

Sent: Monday, July 06, 2009 9:37 PM

To: gamsworld

Subject: how to write this parameter

Hi, friend,

I have a problem here:

i /t1*t4/*

j /j1j3/

table w(i,j)

j1 j2 j3

t1 1 0 0

t2 0 1 2

t3 2 0 1

t4 2 2 1;

how can I write a parameter which is the transpose of w(i,j) i,e

should be w(j,i). how can I use w(i,j) to express its transpose but

not define another parameter?

Thank you very much

Best regards

Jens

–~–~---------~–~----~------------~-------~–~----~

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

To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com

For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en

-~----------~----~----~----~------~----~------~–~—

\