Define a value for a multidimensional variable Topic is solved

Problems with syntax of GAMS
Post Reply
mpap
User
User
Posts: 3
Joined: 5 years ago

Define a value for a multidimensional variable

Post by mpap »

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: 639
Joined: 7 years ago

Re: Define a value for a multidimensional variable

Post by Renger »

Hi Maria

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

Cheers
Renger
____________________________________
Enjoy modeling even more: Read my blog on modeling at The lazy economist
Post Reply