Display variables

Problems with syntax of GAMS
Post Reply
Nikou
User
User
Posts: 33
Joined: 4 years ago

Display variables

Post by Nikou »

My MILP contains the variables tS(x,y,z) , P(x,y,z,x1,y1,z1), x,y,z are sets and x1,y1,z1 are alias of x,y,z.


I would like to solve the relaxation and then display the values of the variables in three columns

(x,y,z)________(x1,y1,z1)_______tS(x,y,z)_________tS(x1,y1,z1)_______ P(x,y,z,x1,y1,z1)
<string>______<string>________ <value>_________ <value> ________<value>
<string>______<string>________ <value>_________ <value> ________<value>
...
string means describe which element this is.


Can anyone help me write the proper statement for this?

Thank you
User avatar
Renger
Posts: 639
Joined: 7 years ago

Re: Display variables

Post by Renger »

Hi
I think that when you study the documentation on the PUT command, you will be able to do that yourself.
Cheers
Renger
____________________________________
Enjoy modeling even more: Read my blog on modeling at The lazy economist
Nikou
User
User
Posts: 33
Joined: 4 years ago

Re: Display variables

Post by Nikou »

I thought there might be a way to do this by the DISPLAY command. If I understand you right that's not possible?
User avatar
Renger
Posts: 639
Joined: 7 years ago

Re: Display variables

Post by Renger »

Hi Nikou

Sorry, my misunderstanding. No, using display this is not possible.
Cheers
Renger
____________________________________
Enjoy modeling even more: Read my blog on modeling at The lazy economist
Post Reply