# dummy variable or binary variable [closed]

In my optimization model, one of the additional constrains implies that all the variables "X" depend on the indexes "a" and "b" and they can only take the values "1" or "0". How can I program that constraint in Mathematica?

-
Something like 0 <= a <= 1 && a \[Element] Integers? – J. M. Nov 8 '12 at 15:44
A working example of a 0-1 optimization in Mathematica appears at mathematica.stackexchange.com/questions/6822/tiling-a-square/…: is this what you have in mind? – whuber Nov 8 '12 at 15:50

## closed as not a real question by image_doctor, belisarius, Oleksandr R., whuber, J. M.♦Nov 9 '12 at 0:09

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.