Unfortunately discrete valued parameters are not supported for response optimization or parameter estimation in the Simulink Design Optimization tool. The developers are aware of this issue and they may consider including this functionality in a future release.
For now, here are some suggested workarounds:
1. If you have one or two discrete variables each with a small number of possible states, you can run an optimization or parameter estimation session for each of the possible states separately. Then at the end pick the run result which is the most optimal compared to the rest. For instance if you have a discrete variable "D" with possible values 0 and 1, you can run one session with the value of D set to 0, and another session with the value of D set to 1. Then select the result that provides the best response or estimation from both of these runs.
2. You can allow the parameters to be continuous for the response optimization or parameter estimation session, then at the end round the result to the nearest discrete value. There is no guarantee that the closest discrete value will be the optimum, but is very likely to be for simple systems .
3. Use the Genetic Algorithm from the Global Optimization Toolbox in a MATLAB script. Set up the optimization problem using the Design Optimization Tool. Generate MATLAB code for the Optimization problem that has been posed. Edit the generated MATLAB code to perform Mixed Integer Optimization using the Genetic Algorithm Optimization function GA from the Global Optimization toolbox
Please run the below command in the MATLAB R2018b command window to get the release specific documentation that discusses more information about generating MATLAB code from the Design Optimization Tool:
web(fullfile(docroot, 'sldo/ug/generate-matlab-code-for-design-optimization-problems.html'))
Further, for more information about performing Mixed Integer Optimization using the GA function can be found here, please run the below command in the MATLAB R2018b command window to get the release specific documentation:
web(fullfile(docroot, 'gads/mixed-integer-optimization.html'))
Please follow the below link to search for the required information regarding the current release: