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.
Discrete variables can be used together with continuous variables. This is called mixed-discrete optimization. The steps to compute a mixed-discrete optimum are
Example: Discrete optimization
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.
If possible, a continuous sampling is recommended, because it usually leads to a better distribution of the points within the design space and hence to a better metamodel quality.
As a special type of discrete variables, string variables may be defined in LS-OPT.
To define a string variable in LS-OPT, the user has to specify a name, a starting variable and a list of allowable values.