summation

Problems with modeling
Post Reply
Omi
User
User
Posts: 7
Joined: 4 years ago

summation

Post by Omi »

sets
i is number of Products
t is number of Periods
how to code the attachment?
Attachments
Capture.PNG
Capture.PNG (6.74 KiB) Viewed 1524 times
User avatar
Renger
Posts: 639
Joined: 7 years ago

Re: summation

Post by Renger »

Hi
You can write a dollar constraint on the sum using "sameas":

Code: Select all

sum((i,j)$(not sameas(i,j)), ...
Cheers
Renger
____________________________________
Enjoy modeling even more: Read my blog on modeling at The lazy economist
Post Reply