Personal tools

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.

GUI discrete variables

 

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 inly 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 check box is provided in the sampling panel to define discrete sampling. 

GUI discrete sampling