thank you for your reply. I had come across the semi-continuous var in sec 9.1.2 here
Apologies for the ambiguity --> x is originally a continuous variable in my optimization (with constraint lb <= x <= ub) and I was looking to add on to this constraint so that x is returned as an integer rounded to L, U (s.t. these are not equal to lb, ub -- do realize this would be
redundant and the optimizer would take into account when it sees this) depending on which side x is on since L <= 0, U > 0. So, for the case
1. x nonnegative and if 0 < x < U then the continuous x be rounded to nearest bound. similarly, if U < x < 2U then the continuous x be rounded to nearest bound
2. x nonpositive and if L < x < 0 then the continuous x be rounded to nearest bound. similarly, if 2*L < x < L then the continuous x be rounded to the nearest bound
I could do this post-optimization, but, would have liked to encode these requirements as a constraint itself. Thank you again.