summation

Problems with modeling
Post Reply
Omi
User
User
Posts: 7
Joined: 1 month ago

summation

Post by Omi » 1 month 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 76 times

User avatar
Renger
Posts: 378
Joined: 3 years ago

Re: summation

Post by Renger » 1 month 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: The lazy economist

Post Reply