How to linearize difference of absolutes?
$$|a|\ge k|b|$$
where $a,b$ are variables and $k$ is a constant.
Operations Research Stack Exchange is a question and answer site for operations research and analytics professionals, educators, and students. It only takes a minute to sign up.
Sign up to join this communityHow to linearize difference of absolutes?
$$|a|\ge k|b|$$
where $a,b$ are variables and $k$ is a constant.
Create some extra variables
$AB_1, AB_2, X_1, X_2, X_3, X_4$, and you have $a,b,k$
\begin{align}a &= X_1-X_2\\AB_1 &= X_1+X_2\\b &= X_3-X_4\\AB_2 &= X_3+X_4\\AB_1 &\geq k \cdot AB_2\end{align}
Also, you have to minimize variable $X_1, X_2, X_3, X_4$ and $X_1, X_2, X_3, X_4 \geq 0$
your current objective function + (x1+x2+x3+x4)*0.00000000001
some thing like this. You can also try it without adding objective function.
$\endgroup$