Hi,

For example I have to make an equation that the fractional part of a variable cannot be lesser than 0,8.

After I solved the problem it is simple, because I can use the function “frac(x)”

restos(p,i,mp,t)=frac(rodf.l(p,i,mp,t)/captran(‘rod’));

But in the EQUATIONS if I use the function frac, Gams gave me error “Endogenous function argument not allowed in linear models”…

And I have another question: how can I obtain just the integer part of a variable?

Any help or solution?

Thank you

–

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/groups/opt_out.

Hi ASaLu !

1.GAMS is warning you that functions like that turn a model away from

being linear (quite a bit ). If you set the model to be DNLP, you

should be able to use the frac() function.

- You can use the functions floor() or ceil() to return the integer

part of a variable. Be awared that these turn a model into a DNLP

also.

Regards !!

Claudio

On Tue, Feb 4, 2014 at 2:24 PM, ASaLu wrote:

Hi,

For example I have to make an equation that the fractional part of a

variable cannot be lesser than 0,8.

After I solved the problem it is simple, because I can use the function

“frac(x)”

restos(p,i,mp,t)=frac(rodf.l(p,i,mp,t)/captran(‘rod’));

But in the EQUATIONS if I use the function frac, Gams gave me error

“Endogenous function argument not allowed in linear models”…

And I have another question: how can I obtain just the integer part of a

variable?

Any help or solution?

Thank you

–

“gamsworld” group.

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/groups/opt_out.

\