Defining summation range

Problems with modeling
Post Reply
saeid.jafarpour
User
User
Posts: 8
Joined: 1 year ago

Defining summation range

Post by saeid.jafarpour »

hi
I'm quite newbie to the gams. I have a problem defining a limited range for a summation below:
the aforementioned summation
the aforementioned summation
image.png (9.4 KiB) Viewed 2453 times
image.png
please help me writing this equation properly.
User avatar
bussieck
Moderator
Moderator
Posts: 1033
Joined: 7 years ago

Re: Defining summation range

Post by bussieck »

If you want help here, you need to make an attempt. Read the tutorial, get started, if you get stuck, post a concrete questions.

-Michael
saeid.jafarpour
User
User
Posts: 8
Joined: 1 year ago

Re: Defining summation range

Post by saeid.jafarpour »

hi
actually i did lots of attemps.
This the code i wrote for the supposed equation
This the code i wrote for the supposed equation
image.png (1.84 KiB) Viewed 2405 times
And this is the error i keep getting!
And this is the error i keep getting!
User avatar
bussieck
Moderator
Moderator
Posts: 1033
Joined: 7 years ago

Re: Defining summation range

Post by bussieck »

Why don't you share the attempts, so we can reproduce the issue? Screenshot don't help.

-Michael
saeid.jafarpour
User
User
Posts: 8
Joined: 1 year ago

Re: Defining summation range

Post by saeid.jafarpour »

thank you.i fixed it!
This is the correct script of the equation
This is the correct script of the equation
image.png (2.11 KiB) Viewed 2358 times
Post Reply