Controlling index in "abort" statement

I simply want to check all the elements in a parameter, say, x(i) in an abort statement. I want GAMS to abort the process if any elements of x(i) is below zero. Any help as to how to do so?


Thanks in advance.


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 Yakup

smin(i, x(i)) < 0;

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 Yakup Koca
Sent: Dienstag, 22. Juli 2014 10:36
To: gamsworld@googlegroups.com
Subject: Controlling index in “abort” statement



I simply want to check all the elements in a parameter, say, x(i) in an abort statement. I want GAMS to abort the process if any elements of x(i) is below zero. Any help as to how to do so?





Thanks in advance.


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.

Hello Renger,

Thanks for the answer first of all but I actually want to know if there is any possible way to control an index in abort statement.

Yakup.

On Tuesday, July 22, 2014 11:38:35 AM UTC+3, Renger van Nieuwkoop wrote:

Hi Yakup

smin(i, x(i)) < 0;

Cheers

Renger


\


Modelworks

Gewerbestrasse 15

3600 Thun – Switzerland

+41 79 818 53 73

In…@modelworks.ch

blog.modelworks.ch







From: gams...@googlegroups.com [mailto:gams...@googlegroups.com] On Behalf Of Yakup Koca
Sent: Dienstag, 22. Juli 2014 10:36
To: gams...@googlegroups.com
Subject: Controlling index in “abort” statement



I simply want to check all the elements in a parameter, say, x(i) in an abort statement. I want GAMS to abort the process if any elements of x(i) is below zero. Any help as to how to do so?





Thanks in advance.


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.

Put the abort in a loop
Renger

Sent from my iPhone

Am 22.07.2014 um 11:01 schrieb “Yakup Koca” :

Hello Renger,

Thanks for the answer first of all but I actually want to know if there is any possible way to control an index in abort statement.

Yakup.

On Tuesday, July 22, 2014 11:38:35 AM UTC+3, Renger van Nieuwkoop wrote:

Hi Yakup

smin(i, x(i))
Cheers

Renger



____________________

Modelworks

Gewerbestrasse 15

3600 Thun – Switzerland

+41 79 818 53 73

In...@modelworks.ch

blog.modelworks.ch







From: gams...@googlegroups.com [mailto:gams...@googlegroups.com] On Behalf Of Yakup Koca
Sent: Dienstag, 22. Juli 2014 10:36
To: gams...@googlegroups.com
Subject: Controlling index in "abort" statement



I simply want to check all the elements in a parameter, say, x(i) in an abort statement. I want GAMS to abort the process if any elements of x(i) is below zero. Any help as to how to do so?





 Thanks in advance.

--
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.


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.

Yacup,

You can use Renger’s code like this:

abort$[smin(i, x(i)) wrote:

Hello Renger,

Thanks for the answer first of all but I actually want to know if there is any possible way to control an index in abort statement.

Yakup.


On Tuesday, July 22, 2014 11:38:35 AM UTC+3, Renger van Nieuwkoop wrote:

Hi Yakup

smin(i, x(i)) < 0;

Cheers

Renger


\


Modelworks

Gewerbestrasse 15

3600 Thun – Switzerland

+41 79 818 53 73

In…@modelworks.ch

blog.modelworks.ch







From: gams...@googlegroups.com [mailto:gams...@googlegroups.com] On Behalf Of Yakup Koca

Sent: Dienstag, 22. Juli 2014 10:36
To: gams...@googlegroups.com

Subject: Controlling index in “abort” statement



I simply want to check all the elements in a parameter, say, x(i) in an abort statement. I want GAMS to abort the process if any elements of x(i) is below zero. Any help as to how to do so?





Thanks in advance.


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.



\

Steven Dirkse, Ph.D.
GAMS Development Corp., Washington DC
Voice: (202)342-0180 Fax: (202)342-0181
sdirkse@gams.com
http://www.gams.com