Can LS-OPT handle discrete variables?
LS-OPT can handle discrete variables and even discrete variables in combination with continuous variables.
Discrete Variables
To define a discrete variable in LS-OPT, the user has to specify a name, a starting value and a list of allowable values.
Mixed-discrete optimization
Discrete variables can be used together with continuous variables. This is called mixed-discrete optimization. The steps to compute a mixed-discrete optimum are
- Consider all the discrete variables to be continuous and optimize. This continuous optimum found is used as the starting design in the next phase.
- Discrete optimization is done considering only the discrete variables with the continuous variables frozen at the values found in the previous phase.
- Continuous optimization is done considering only the continuous variables and with the discrete variables frozen at the values found in the previous phase.
Example: Discrete optimization
Sampling at discrete points
A flag is provides to select the sampling points at specified discrete values of the variables if discrete variables are specified. Discrete sampling will also handle discrete-continuous problems correctly. In the GUI, a switch box is provided for each discrete variable in the variables panel to define discrete sampling.