Hi Fateme,
I am not sure whether it can be accomplished in a single equation, but I think it can be realized by some inequalities.
It is easier if the x(i,j) is the target:
x(i,j) <= y(i)
x(i,j) <= y(j)
then maximize variable x(i,j).
If x(i,j) is not the target, the formulation would be a little bit complicated:
x(i,j)-y(i)<=M*(1-z(i,j))
y(i)-x(i,j)<=M*(1-z(i,j))
x(i,j)-y(j)<=Mz(i,j)
y(j)-x(i,j)<=Mz(i,j)
y(i)-y(j)<=M*(1-z(i,j))
y(j)-y(i)<=M*z(i,j)
where z(i,j) is binary variable and M is a sufficiently large parameter.
Regards,
Dylan
在 2013å¹´12月6日星期五UTC+8上åˆ1æ—¶49分00秒,Fateme Fotuhi写é“:
Hello all,
How can I fix a variable to be the minimum of two other variables in an equation?
ie,
x(i,j)=min(y(i),y(j))
is there anyway that I can do it in an equation?
Thanks
–
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.