Define a value for a multidimensional variable Topic is solved

Problems with syntax of GAMS
Post Reply
mpap
User
User
Posts: 3
Joined: 6 months ago

Define a value for a multidimensional variable

Post by mpap » 6 months ago

Hello,

I've got this variable: H(v,d,h,j,t) and I want to fix its values for all t=1.

I would appreciate any help with the syntax.

Thanks,
Maria

User avatar
Renger
Posts: 356
Joined: 2 years ago

Re: Define a value for a multidimensional variable

Post by Renger » 6 months ago

Hi Maria

H.FX(v,d,h,j,"1") = 1;

Cheers
Renger
____________________________________
Enjoy modeling even more: The lazy economist

Post Reply