Hello again,

My model is still not working as it should. I have one equation which counts for every value from a set but one. So I’d like to say “sum all variables but ignore one knot. This sum for every knot (but one) is equal to the demand”: sum(j,x(i,j))=e= d(i,aj); for all i{“depot”}. I just want to exclude one value from the set for this equation.

I tried to use the ord-Operator like $ord(i)>1 and put the knot “depot” at first place. But this didn’t work, because the result was zero .

I also defined a new subset like this: notdepot(i); notdepot(‘depot’)=no; Also not working, because the result is something with 200 instead of at least 2,000.

Can you please help me? How can I exclude a value from a set (in set theory the "")?

Regards,

Julia

–

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

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 Julia

The set definition should be:

notdepot(i) = yes; notdepot(‘depot’)=no

another option would be: sum(i$(not sameas(I,â€depotâ€)),â€¦

Cheers

Renger

Von: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] Im Auftrag von Julia

Gesendet: Freitag, 23. November 2012 20:26

An: gamsworld@googlegroups.com

Betreff: exclude value from set

Hello again,

My model is still not working as it should. I have one equation which counts for every value from a set but one. So I’d like to say “sum all variables but ignore one knot. This sum for every knot (but one) is equal to the demand”: sum(j,x(i,j))=e= d(i,aj); for all i{“depot”}. I just want to exclude one value from the set for this equation.

I tried to use the ord-Operator like $ord(i)>1 and put the knot “depot” at first place. But this didn’t work, because the result was zero .

I also defined a new subset like this: notdepot(i); notdepot(‘depot’)=no; Also not working, because the result is something with 200 instead of at least 2,000.

Can you please help me? How can I exclude a value from a set (in set theory the "")?

Regards,

Julia

–

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

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.

Thanks Renger

–

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

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.