Hello everyone,
I have two streams ft(i,‘1’) and ftt(‘1’,j) " the first one shows a streams going from source i to process 1 and the second one shows a reflux stream which is coming from process 1 to demand j " .
I want to introduce a binary to connect them together in a way that :
if ft(i,‘1’)=0 then also ftt(‘1’,j)=0 . if ft(i,‘1’)>0 then also ftt(‘1’,j) .
So I tried introducing binaries x(i) and y(j) . can I use the command " x(i)=y(j) " in order to equalize the values of this binaries?
thank you all
–
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
\
Hi,
Short answer: Yes, but it would be x(i) =E= y(j) and you would need some x.fx to fix their values
Some questions to further help:
I would use only one kind of “connection” binaries. Why do you need two (x&y)?
Are the connection binaries variables to your problem ? (can they be results calculated by the solver), or do you know a priori which of them are 1 and which are 0. If the case is the second you could define connection binaries as parameters (which default to zero), allowing for less “fixing” code.
regards!
Claudio
On Sun, Apr 28, 2013 at 2:29 AM, Mohamad Dehghani wrote:
Hello everyone,
I have two streams ft(i,‘1’) and ftt(‘1’,j) " the first one shows a streams going from source i to process 1 and the second one shows a reflux stream which is coming from process 1 to demand j " .
I want to introduce a binary to connect them together in a way that :
if ft(i,‘1’)=0 then also ftt(‘1’,j)=0 . if ft(i,‘1’)>0 then also ftt(‘1’,j) .
So I tried introducing binaries x(i) and y(j) . can I use the command " x(i)=y(j) " in order to equalize the values of this binaries?
thank you all
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
\
Thank you claudio,I solved the issue.
On Apr 29, 2013, at 10:28 PM, Claudio Delpino wrote:
Hi,
Short answer: Yes, but it would be x(i) =E= y(j) and you would need some x.fx to fix their values
Some questions to further help:
I would use only one kind of “connection” binaries. Why do you need two (x&y)?
Are the connection binaries variables to your problem ? (can they be results calculated by the solver), or do you know a priori which of them are 1 and which are 0. If the case is the second you could define connection binaries as parameters (which default to zero), allowing for less “fixing” code.
regards!
Claudio
On Sun, Apr 28, 2013 at 2:29 AM, Mohamad Dehghani wrote:
Hello everyone,
I have two streams ft(i,'1') and ftt('1',j) " the first one shows a streams going from source i to process 1 and the second one shows a reflux stream which is coming from process 1 to demand j " .
I want to introduce a binary to connect them together in a way that :
if ft(i,'1')=0 then also ftt('1',j)=0 . if ft(i,'1')>0 then also ftt('1',j) .
So I tried introducing binaries x(i) and y(j) . can I use the command " x(i)=y(j) " in order to equalize the values of this binaries?
thank you all
--
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?hl=en.
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?hl=en.
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
\