I have already reviewed almost all relevant threads on this blue line of error on GAMS,

but most of them pertained to fixing this problem when Y is an integer (by writing “X**Y” as “Power (X,Y)” instead).

## If X and Y are both functions defined and written in the preceding lines, is there any way to get rid of an error like this??.. please 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?hl=en.

For more options, visit https://groups.google.com/groups/opt_out.

\

Hi Zeewan:

Even if they are functions, you need to think about the values they take at evaluation. If Y is always an integer, you can and should use power(x,y), so you don’t need to worry about the sign of X. If Y can take non-integer values, then you NEED (this is not a GAMS problem but a numerical one) to worry about the sign of X. X^Y doesn’t make sense when Y is non-integer and X is negative. This error is triggered beacuse X is taking negative values at one of your evaluations (it is a runtime error and not a compile time error).

Regards

Claudio

On Fri, May 10, 2013 at 7:14 PM, Zeewan Lee wrote:

I have already reviewed almost all relevant threads on this blue line of error on GAMS,

but most of them pertained to fixing this problem when Y is an integer (by writing “X**Y” as “Power (X,Y)” instead).

## If X and Y are both functions defined and written in the preceding lines, is there any way to get rid of an error like this??.. please 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?hl=en.

For more options, visit https://groups.google.com/groups/opt_out.

\