summation

Problems with modeling
Post Reply
rejinsr037
User
User
Posts: 8
Joined: 1 month ago

summation

Post by rejinsr037 » 1 month ago

11.PNG
11.PNG (3.35 KiB) Viewed 74 times
how to code this ?

User avatar
Renger
Posts: 353
Joined: 2 years ago

Re: summation

Post by Renger » 4 weeks ago

Hi
Just use Y(i-1,r,t). Note however, that this means that you can't use this for the first i if there is no value for i-1. If it is a variable, you probably will have to fix the Y(i-1) to a certain value or you can define the equation for all i > 1

Code: Select all

myeq(i,r)$(ord(i)>1)...
    Y(i,r,t) =L= sum(t, Y(i-1,r,t);
Cheers
Renger
____________________________________
Enjoy modeling even more: The lazy economist

rejinsr037
User
User
Posts: 8
Joined: 1 month ago

Re: summation

Post by rejinsr037 » 4 weeks ago

THANK YOU :)

Post Reply