Condition variable

Hi every one
I have a restriction that if x greater than delta h(n)=f(x), if x is between -delta and delta h(n)=g(x) and otherwise h(n)=k(x) that x is vareible. how modeling This limits in Gams?


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 https://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.

Hi,
You need to use disjunctive model. To be more specific, a binary variable and a big number. Let’s consider the case if x greater than delta then h(n)=f(x) and if x is less than delta h(n)=g(x). in the following u is a binary variable and M is a big number,

x+(1-u)M>delta
x-uM<delta
h(n)=uf(x)-(1-u)g(x)

Omid,

On Tuesday, December 22, 2015 at 3:53:35 AM UTC-6, teimori....@gmail.com wrote:

Hi every one
I have a restriction that if x greater than delta h(n)=f(x), if x is between -delta and delta h(n)=g(x) and otherwise h(n)=k(x) that x is vareible. how modeling This limits in Gams?


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 https://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.