How to write a not equal constraint?

MIDCP
Nov 19, 2022
N

How to write a not equal constraint? Like X != 0

M

These links should give you the general idea, which you can adapt, depending on integer vs. continuous.