Parameter or Variable?

Hi everyone.

I have a polynomial (eg A(i) = B*C(i)**3) which is passed to the main program through an include file.

Since only A(i) is passed, can C(i) be a variable of my main program, or must it necessarily be a predefined parameter?

Should I have used A(C(i)) instead?

Many thanks.



\

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.
For more options, visit https://groups.google.com/d/optout.

I tried A(C(i)) but GAMS doesn’t accept. I need C to be a used with a set.

On Sunday, November 8, 2015 at 7:55:24 PM UTC-2, Bruno Hannud wrote:

Hi everyone.

I have a polynomial (eg A(i) = B*C(i)**3) which is passed to the main program through an include file.

Since only A(i) is passed, can C(i) be a variable of my main program, or must it necessarily be a predefined parameter?

Should I have used A(C(i)) instead?

Many thanks.



\

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.
For more options, visit https://groups.google.com/d/optout.