Index which has its own index...

Hi,

I wonder if I can write a variable with double indices. I mean the index has an index.

For instance the variable x depends on q and q depends on hour. Can I write it as " x(q(hour)) " ? I feel like I can’t. Do you know a way of dealing with it?

Thanks in advance.

Cansu.


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/groups/opt_out.

Hi Cansu



What is wrong with x(q,hour)? You can fix all the entries that are not available to zero.



Cheers



Renger


\


Modelworks

Gewerbestrasse 15

3600 Thun – Switzerland

+41 79 818 53 73

Info@modelworks.ch

blog.modelworks.ch







From: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] On Behalf Of Cansu ALTINTAS
Sent: Mittwoch, 28. August 2013 10:14
To: gamsworld@googlegroups.com
Subject: Index which has its own index…



Hi,



I wonder if I can write a variable with double indices. I mean the index has an index.



For instance the variable x depends on q and q depends on hour. Can I write it as " x(q(hour)) " ? I feel like I can’t. Do you know a way of dealing with it?



Thanks in advance.



Cansu.


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