I want to code a constraint in GAMS environment but I can't. The constraint that I want to code is seen in the image. In this constraint, x(i,m,t)
is a binary variable but x(i,m,t)
binary varible is changed as x(i,m,d)
and as seen in the image shown, the number d
depends on t-p(i)+1
. In t-p(i)+1
, p(i)
is a parameter and t
is a set of times. In this equaiton, I know what the equation wants to calculate but I can't code it in GAMS.
How can I code this equation in GAMS environment? Thank you.
Asked
Active
Viewed 75 times
0
-
I think you forgot to add your image. – Jasper Apr 21 '22 at 07:50
-
Hi Jasper, I did not forget the image. I added it as named "Constraint" just below my comment. – Abdullah Türk Apr 22 '22 at 19:52
-
Please just add the image into your question. It helps to be able to see it together with your question, plus remotely hosted images might be taken down leaving this question without some important context. – Jasper Apr 23 '22 at 20:04