Modeling Question

Problems with modeling
Post Reply
Mensh95
User
User
Posts: 15
Joined: 1 year ago

Modeling Question

Post by Mensh95 »

Hi All,

I'm working on a replication of a mathematical model, and I have a question related to the below constraints. I don't how to write it on GAMS.

Especially for the number 2 over the PROD sign. Would someone help me? And forgive me if the question is too naive as I'm still new to GAMS.
Screenshot 2023-07-30 211051.png
Thanks in advance
User avatar
bussieck
Moderator
Moderator
Posts: 1043
Joined: 7 years ago

Re: Modeling Question

Post by bussieck »

That is super straight forward equation and its realization in GAMS is

Code: Select all

$set M 5
$set F 3
$set L 7
set m / 1*%M%/, f / 1*%F%/, l / 1*%L% /, ps / 1*2 /;
variable z(l,m), x(f,l), conv(ps);
equation e(l);
e(l).. sum(m, z(l,m)) =e= sum(f, x(f,l))*prod(ps, conv(ps));
-Michael
Post Reply