Need to Help

Dear All my friends,

I want to write this equation in Gams :

t={1,2,3)
K(t)={10,12,14}

y(t)={K(t)-K(t-1)}/K(t-1)

My problem is when run in Gams,i do not have the initial amount of K(t) for t=0,please guide me how define the initial amount of K(t) for t=0.


Thank You
MEHRDAD


To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

\

Hi
this const. should be write

const(t)$(ord(t)>1)… y(t)=e=(K(t)-K(t-1))/K(t-1)


On Friday, May 3, 2013 9:17:57 AM UTC+4:30, ARYABOD wrote:

Dear All my friends,

I want to write this equation in Gams :

t={1,2,3)
K(t)={10,12,14}

y(t)={K(t)-K(t-1)}/K(t-1)

My problem is when run in Gams,i do not have the initial amount of K(t) for t=0,please guide me how define the initial amount of K(t) for t=0.


Thank You
MEHRDAD


To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

\

Dear Omidreza,

Thank you.



On Fri, May 3, 2013 at 3:42 PM, Omid wrote:

Hi
this const. should be write

const(t)$(ord(t)>1)… y(t)=e=(K(t)-K(t-1))/K(t-1)


On Friday, May 3, 2013 9:17:57 AM UTC+4:30, ARYABOD wrote:

Dear All my friends,

I want to write this equation in Gams :

t={1,2,3)
K(t)={10,12,14}

y(t)={K(t)-K(t-1)}/K(t-1)

My problem is when run in Gams,i do not have the initial amount of K(t) for t=0,please guide me how define the initial amount of K(t) for t=0.


Thank You
MEHRDAD


To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.



\

To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

\