0
$\begingroup$

I have an expression:

if A≤X1-X2≤B, than Y=1, Otherwise Y=0

where A and B are constants, and X1, X2 are variables.
Please help to convert this to linear expressions.

$\endgroup$

marked as duplicate by D.W. Mar 16 at 6:40

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.