According to weight coefficient of binary variable, discrete variables can be gradually determined in optimization process, and their discretization can be realized during iteration successively.
The heart of this problem is the declaration of the decision variables as binary variables.