how to use the conditions $ expression based on the value of variables

hello,everyone
in my model,i need to use the conditons based on the value of
variables,but it got the error 53:endogenous $ operation not
allowed.however,i really need those conditions.could anybody help
me,thanks a lot.

\

Hello You,

If you post a part of your model where where the error occurred, someone will try to help you out.

greets,


On Mon, May 21, 2012 at 8:48 AM, YouYaxiong wrote:

hello,everyone
in my model,i need to use the conditons based on the value of
variables,but it got the error 53:endogenous $ operation not
allowed.however,i really need those conditions.could anybody help
me,thanks a lot.


To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.

\

To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.

Reply-to: gamsworld@googlegroups.com

hello,

you could solve this problem? I’m also this problem and dont know with to solve.

thanks

Em segunda-feira, 21 de maio de 2012 03h48min19s UTC-3, YouYaxiong escreveu:

hello,everyone
in my model,i need to use the conditons based on the value of
variables,but it got the error 53:endogenous $ operation not
allowed.however,i really need those conditions.could anybody help
me,thanks a lot.


To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/df4w1UNsb10J.
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.

Hi Roberto

Check this

http://www.or-exchange.com/questions/6429/standard-mathematical-models-conditions-on-variables



On Tue, Dec 11, 2012 at 6:50 PM, Roberto wrote:

YouYaxiong



\

Babak Saleck Pay
M.Sc
Socio-Economic System Engineering
Group of Industrial Engineering
University of Tehran
Tehran,Iran
www.babaksp.com


To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.

Hi guys,

I need help. How do I do this?

x = 1, ∃ S(n) > C, n ∈ N
0, otherwise

sum(n) y(n) = N, x = 0
J, x=1, sum(n) S(n) <= M+J*C

where J is variable decision. C = 10, 0 < S <= 102, N = {1,2,3} and J = {1,2,3}.

I checked the link above but still can’t solve.

thanks


To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/Pdtr_-69UOIJ.
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.

you want to put condition on variable and according to my knowledge (and the discussion in link above) it is not correct in the framework of common mathematical modeling and it is not the issue of gams. You should change the way you are modeling or use software that are capable to handle constraint programming (Cplex for example). read the discussion in the link completely.





On Wed, Dec 12, 2012 at 10:45 PM, Roberto wrote:

Hi guys,

I need help. How do I do this?

x = 1, ∃ S(n) > C, n ∈ N
0, otherwise

sum(n) y(n) = N, x = 0
J, x=1, sum(n) S(n) <= M+J*C

where J is variable decision. C = 10, 0 < S <= 102, N = {1,2,3} and J = {1,2,3}.

I checked the link above but still can’t solve.

thanks


To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/Pdtr_-69UOIJ.

To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.



\

Babak Saleck Pay
M.Sc
Socio-Economic System Engineering
Group of Industrial Engineering
University of Tehran
Tehran,Iran
www.babaksp.com


To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.