Page 1 of 1

Defining summation range

Posted: Thu Jun 16, 2022 4:56 pm
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 2591 times
image.png
please help me writing this equation properly.

Re: Defining summation range

Posted: Fri Jun 17, 2022 8:15 am
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

Re: Defining summation range

Posted: Fri Jun 17, 2022 9:17 am
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 2543 times
And this is the error i keep getting!
And this is the error i keep getting!

Re: Defining summation range

Posted: Mon Jun 20, 2022 7:11 am
by bussieck
Why don't you share the attempts, so we can reproduce the issue? Screenshot don't help.

-Michael

Re: Defining summation range

Posted: Mon Jun 20, 2022 9:38 am
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 2496 times