I'm working on a OR project. I have a code which fixes my problem which uses the constraint
((a =< b) or (c =< d) or (e =< f)) = True
I need to rewrite this condition as mathematical expression(s)
I tried
(a-b) * (c-d) * (e-f) =< 0
Which seems to work for most cases but fails when two of them are positive and one of them are negative.
Any help is greatly appreciated.
$\max(b-a,d-c,f-e)\ge 0$.
But really, it already was mathematical.