Variable with two sets

Hello everyone
I want to write a constraint in GAMS model that there is variable with two sets as follow:
z_j + p_rj > u_r (y_rj - y_rj) for all r,j
p_rj>0

i don’t know to how implement it

Thank you for your help


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.

Hi Navid

Please read the forum rules carefully and resubmit your question.

Your actual question asks for too much guesswork on what the problem and the underlying variables and parameters are.

Cheers

Renger



From: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] On Behalf Of navid arab
Sent: Donnerstag, 9. Juli 2015 10:15
To: gamsworld@googlegroups.com
Subject: Variable with two sets



Hello everyone
I want to write a constraint in GAMS model that there is variable with two sets as follow:
z_j + p_rj > u_r (y_rj - y_rj) for all r,j
p_rj>0

i don’t know to how implement it

Thank you for your help


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.


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.

Dear Renger
I want to solve following model in GAMS where P_rj and q_rj vary on sets of j and i and j and r respectively. How can model them?











On Thursday, July 9, 2015 at 1:26:44 PM UTC+4:30, Renger van Nieuwkoop wrote:

Hi Navid

Please read the forum rules carefully and resubmit your question.

Your actual question asks for too much guesswork on what the problem and the underlying variables and parameters are.

Cheers

Renger



From: gams...@googlegroups.com [mailto:gams...@googlegroups.com] On Behalf Of navid arab
Sent: Donnerstag, 9. Juli 2015 10:15
To: gams...@googlegroups.com
Subject: Variable with two sets



Hello everyone
I want to write a constraint in GAMS model that there is variable with two sets as follow:
z_j + p_rj > u_r (y_rj - y_rj) for all r,j
p_rj>0

i don’t know to how implement it

Thank you for your help


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


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.

Hello everyone
I want to solve following model in GAMS where P_rj and q_rj vary on sets of j and i and j and r respectively. How can model them?
i attached model in word file. and alo my gams code.





On Thursday, July 9, 2015 at 12:55:59 PM UTC+4:30, navid arab wrote:

Hello everyone
I want to write a constraint in GAMS model that there is variable with two sets as follow:
z_j + p_rj > u_r (y_rj - y_rj) for all r,j
p_rj>0

i don’t know to how implement it

Thank you for your help


Doc1.docx (42.6 KB)
Untitled_50.gms (5.13 KB)

Hi Navid



I see lots of discrepancies between the model in the word document and the code you wrote.

For example, in the doc we have z0, but you define it over the set j (is 0 an element of j?). You have teta0, but define it is tetao.

Same kind of situation in the second constraint: Here you define u over r, but in the doc it is over I and the variable is called v and not u. Once again, in this equation you have z0(j) and not z0.

If you want to implement this model, compare the equations with your documentation.

Cheers

Renger







From: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] On Behalf Of navid arab
Sent: Donnerstag, 9. Juli 2015 15:22
To: gamsworld@googlegroups.com
Subject: Re: Variable with two sets




Hello everyone
I want to solve following model in GAMS where P_rj and q_rj vary on sets of j and i and j and r respectively. How can model them?
i attached model in word file. and alo my gams code.





On Thursday, July 9, 2015 at 12:55:59 PM UTC+4:30, navid arab wrote:

Hello everyone
I want to write a constraint in GAMS model that there is variable with two sets as follow:
z_j + p_rj > u_r (y_rj - y_rj) for all r,j
p_rj>0

i don’t know to how implement it

Thank you for your help


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.


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.