Please note when you've simultaneously posted the same question on different forums: https://mathematica.stackexchange.com/questions/238671/problem-with-nminimize-continuous-and-discrete-variables.