I have a modelling question. I want to model that if my varibale $x$ is in the interval $[a,b]$, where $a,b >0$, my indicator variable $X \in \{0,1\}$ should be 1 (if $x$ is not in $[a,b]$, the indicator variable can attain any value). I'm sure that this kind of problem is quite common in practice, but I couldn't really find anything.
What would be the best way to model this? I guess there are several formulations which model this constraint. Which would be the best regarding computation times? Do you know some papers/publications which cover this topic?
Best regards, ops