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)<=M*z(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.