summation

Problems with modeling
Post Reply
Omi
User
User
Posts: 7
Joined: 2 months ago

summation

Post by Omi » 2 months ago

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 98 times

User avatar
Renger
Posts: 395
Joined: 3 years ago

Re: summation

Post by Renger » 2 months ago

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