conditional constraint in gams

Daer All,

I want to write this conditional constraint in gams please help and guide me:

Inline image 1

e(i,j) is a Matrix(24*24)


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 Mehrdad



You could use



sum(j$(not sameas(i,j),….



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 Mehrdad Tahmasebi
Sent: Donnerstag, 2. Mai 2013 14:02
To: gamsworld@googlegroups.com
Subject: conditional constraint in gams



Daer All,

I want to write this conditional constraint in gams please help and guide me:

Inline image 1

e(i,j) is a Matrix(24*24)



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.

\

Dear Renger,

Can you clarify for me by simple example in Gams,please .

Thank you


On Thu, May 2, 2013 at 8:31 PM, Renger van Nieuwkoop wrote:

Hi Mehrdad



You could use



sum(j$(not sameas(i,j),….



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 Mehrdad Tahmasebi
Sent: Donnerstag, 2. Mai 2013 14:02
To: gamsworld@googlegroups.com
Subject: conditional constraint in gams



Daer All,

I want to write this conditional constraint in gams please help and guide me:

Inline image 1

e(i,j) is a Matrix(24*24)



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.



\

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 Mehrdad

See the McCarl Guide (look in the GamsIde under help) and search for sameas.

Cheers

Renger



From: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] On Behalf Of Mehrdad Tahmasebi
Sent: Freitag, 3. Mai 2013 06:40
To: gamsworld@googlegroups.com
Subject: Re: conditional constraint in gams



Dear Renger,



Can you clarify for me by simple example in Gams,please .



Thank you



On Thu, May 2, 2013 at 8:31 PM, Renger van Nieuwkoop wrote:

Hi Mehrdad



You could use



sum(j$(not sameas(i,j),….



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 Mehrdad Tahmasebi
Sent: Donnerstag, 2. Mai 2013 14:02
To: gamsworld@googlegroups.com
Subject: conditional constraint in gams



Daer All,

I want to write this conditional constraint in gams please help and guide me:

Inline image 1

e(i,j) is a Matrix(24*24)



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.




\

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.

\