Tuesday, February 21, 2012

max tricks

The following condition

can be easily written as

However when we have:

then we need more sophistication. Something like:

Here we introduced a variable y that assumes the value of the maximum of the x’s. The following expression will give a good big-M value: