How do you convert $\min |x| + |y|$ to a linear program?

Is this method correct?

$$\min w + z$$
$$w >= x$$
$$w >= -x$$
$$z >= y$$
$$z >= -y$$


Yes, this is a correct linearization. An alternative approach introduces two nonnegative values and one equality constraint for each absolute value. See this post for both approaches.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.