hi
Is there any way to fix a certain element in a variable set?
for example:
variables;
.
.
.
’ tp(t) 'if a transferpoint is constructed at node “t” ’ ======>(tp is binary variable)
.
.
.
the “tp.fx(t)=0;” command effects the whole set.
I want only a certain member of the set to be fixed ( like tp(2) )
I reckon it may be possible by defining sub sets, but is there any straightway to do this?
regards
Babak
–
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 Babak
Either
Tp.fx(‘2’) = 0;
Or
Set fixt(t) /2/;
Tp.fx(fixt) = 0;
Cheers
Renger
Modelworks
Gewerbestrasse 15
3600 Thun – Switzerland
+41 79 818 53 73
Info@modelworks.ch
blog.modelworks.ch
From: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] On Behalf Of B.Y
Sent: Freitag, 16. August 2013 06:55
To: gamsworld@googlegroups.com
Subject: fixing certain element in a variable set
hi
Is there any way to fix a certain element in a variable set?
for example:
variables;
.
.
.
’ tp(t) 'if a transferpoint is constructed at node “t” ’ ======>(tp is binary variable)
.
.
.
the “tp.fx(t)=0;” command effects the whole set.
I want only a certain member of the set to be fixed ( like tp(2) )
I reckon it may be possible by defining sub sets, but is there any straightway to do this?
regards
Babak
\
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.
–
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.
Thanks Renger!
On Friday, August 16, 2013 9:25:18 AM UTC+4:30, B.Y wrote:
hi
Is there any way to fix a certain element in a variable set?
for example:
variables;
.
.
.
’ tp(t) 'if a transferpoint is constructed at node “t” ’ ======>(tp is binary variable)
.
.
.
the “tp.fx(t)=0;” command effects the whole set.
I want only a certain member of the set to be fixed ( like tp(2) )
I reckon it may be possible by defining sub sets, but is there any straightway to do this?
regards
Babak
–
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.