hello,
sorry if this subject was opened already. but i need help on ordering sets
the variables are
x(i,j) and y(i,b)
the summation will be something like this
but i dont know how to do this in gams. does anybody know?
–
To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/PEHe2rT7DtYJ.
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.
Hi
It looks like you didn’t make it to page 13 of the GAMS manual…
Renger
\
Modelworks
Gewerbestrasse 16
3600 Thun – Switzerland
+41 79 818 53 73
Info@modelworks.ch
From: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] On Behalf Of gbyr
Sent: Tuesday, January 08, 2013 6:05 PM
To: gamsworld@googlegroups.com
Subject: set ordering in summation
hello,
sorry if this subject was opened already. but i need help on ordering sets
the variables are
x(i,j) and y(i,b)
the summation will be something like this
but i dont know how to do this in gams. does anybody know?
–
To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/PEHe2rT7DtYJ.
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.
–
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.
I did, but it’s not that simple. The sets used on variable y is i and b, not i and j.
–
To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/LvEhZp3mLJEJ.
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.
Hi
Then you should be more specific in your question: What kind of summation do you want? Summation over? What is the definition of all sets?
It should not be difficult to write the mathematical formulation of what you want, so write at least that.
Please send the gams code you tried and an exact formulation of your problem, if you want your problem to be solved by others.
Renger
From: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] On Behalf Of gbyr
Sent: Tuesday, January 08, 2013 6:49 PM
To: gamsworld@googlegroups.com
Subject: Re: set ordering in summation
I did, but it’s not that simple. The sets used on variable y is i and b, not i and j.
–
To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/LvEhZp3mLJEJ.
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.
–
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.
I think you want to say like this
Arc(i,j,b) /(110).(110).1
On Tuesday, January 8, 2013 1:28:26 PM UTC-8, Renger van Nieuwkoop wrote:
Hi
Then you should be more specific in your question: What kind of summation do you want? Summation over? What is the definition of all sets?
It should not be difficult to write the mathematical formulation of what you want, so write at least that.
Please send the gams code you tried and an exact formulation of your problem, if you want your problem to be solved by others.
Renger
From: gams...@googlegroups.com [mailto:gams...@googlegroups.com] On Behalf Of gbyr
Sent: Tuesday, January 08, 2013 6:49 PM
To: gams...@googlegroups.com
Subject: Re: set ordering in summation
I did, but it’s not that simple. The sets used on variable y is i and b, not i and j.
–
To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/LvEhZp3mLJEJ.
To post to this group, send email to gams...@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.
–
To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/W_g7pFhaLjAJ.
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.