Hello everyone,

I am a new GAMS user. I have two questions one is about polynomial solution of GAMS and the other is error messages.

Does GAMS solve the polynomials? I have a polynomial in my code which is : zv^3 - zv^2 + (Amixv - Bmixv - Bmixv^2)*zv - Amixv*Bmixv = 0 .

In my objective, I use zv (zv is defined as variable), therefore I need to obtain a proper zv value. I entered polynomial to the GAMS as an equation as follows:

z… zv**3 - zv**2 + (Amixv - Bmixv - Bmixv**2)*zv - Amixv*Bmixv =e= 0 ; (Amixv and Bmixv are variables, calculated by equations in the previous lines in the GAMS code)

Could GAMS solve something like I entered or I have to enter something as follows to use zv :

z … zv =e= (something here) ;

When I entered an equation in GAMS as z … zv**3 - zv**2 + (Amixv - Bmixv - Bmixv**2)*zv - Amixv*Bmixv =e= 0 ; I had some errors as follows:

**** Exec Error at line 138: division by zero (0)

**** Exec Error at line 138: log: FUNC SINGULAR: x = 0

**** Exec Error at line 138: overflow in * operation (mulop)

And in .lst file I observe my equation as follows:

z… (0)*Bmixv + (0)*Amixv + (0)*zv =E= 0 ; (LHS = 0)

Even though I tried to give some initial value for zv, I had the same errors. Do you have any ideas what can cause this errors?

Best regards,

Ozgur

–

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,

I solved my problem with defining new variables for the expressions in the logs and gave lower bounds for the new variables.

Regards,

On Wednesday, March 27, 2013 6:29:05 PM UTC+2, Ã–zgÃ¼r YaÅŸar Ã‡aÄŸlar wrote:

Hello everyone,

I am a new GAMS user. I have two questions one is about polynomial solution of GAMS and the other is error messages.

Does GAMS solve the polynomials? I have a polynomial in my code which is : zv^3 - zv^2 + (Amixv - Bmixv - Bmixv^2)*zv - Amixv*Bmixv = 0 .

In my objective, I use zv (zv is defined as variable), therefore I need to obtain a proper zv value. I entered polynomial to the GAMS as an equation as follows:

z… zv**3 - zv**2 + (Amixv - Bmixv - Bmixv**2)*zv - Amixv*Bmixv =e= 0 ; (Amixv and Bmixv are variables, calculated by equations in the previous lines in the GAMS code)

Could GAMS solve something like I entered or I have to enter something as follows to use zv :

z … zv =e= (something here) ;

When I entered an equation in GAMS as z … zv**3 - zv**2 + (Amixv - Bmixv - Bmixv**2)*zv - Amixv*Bmixv =e= 0 ; I had some errors as follows:

**** Exec Error at line 138: division by zero (0)

**** Exec Error at line 138: log: FUNC SINGULAR: x = 0

**** Exec Error at line 138: overflow in * operation (mulop)

And in .lst file I observe my equation as follows:

z… (0)*Bmixv + (0)*Amixv + (0)*zv =E= 0 ; (LHS = 0)

Even though I tried to give some initial value for zv, I had the same errors. Do you have any ideas what can cause this errors?

Best regards,

Ozgur

–

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.

\