support discrete variables in nonlinear problems