How to write a not equal constraint? MIDCP Nov 19, 2022 N ZhuJiaxuan Nov 19, 2022 #1 How to write a not equal constraint? Like X != 0 M Mark L. Stone Nov 19, 2022 #2 These links should give you the general idea, which you can adapt, depending on integer vs. continuous.