Formulations of mathematical programs often require that some of the decision variables take only integer values. Consider the formulation You can follow the same steps to identify binary variables.
Integer arithmetic seems like an elementary school subject. But in programming, you should definitely not underestimate it. In fact, all safer C language subsets (e.g., MISRA-C:2012 [1]) have a whole ...