I need help writing the following constraint using the AIMMS language.
I have two indexes:
c
a
Where "a" indicates years.
I have a variable y(c,a)
I would like to define a summation over "c" and over "a" as less than or equal to a value. But the summation over "a" should be done only from the first year until the current year.
I am trying this formulation but something is wrong with it:
sum((c, a1|(a1="A01") and (a1=ord(a))), y(c,a1)) <= Value
Can you please help me writing this correctly using the AIMMS syntax?
Thank you,
Best answer by mateusarakawa
View original