x
Our website uses cookies. By using the website you agree ot its use. More information can be found in our privacy policy.

How can I ensure that LS-OPT replaces the variables in the input file by integer values?

I defined a discrete variable with a list of integer values, but LS-OPT replaces the variables in the input file by e.g. 1. with a dot.

To ensure that LS-OPT replaces the variables in the input file by integer values, add  ":i" to the parameter definition in the input file:

<<variable_name:i>>

This is necessary if the variable specifies e.g. different include files.

*INCLUDE
material_type.<<id:i>>

By default, LS-OPT replaces the variable by 10 characters, if the value is shorter, blanks are used. If this is not desired, add ":0" to the parameter definition in the input file:

<<variable_name:0>>

Then LS-OPT uses exactly the number of characters needed.

Both options may be combined:

<<variable:i0>>

Remark:

Filenames may also be parameterized using string variables.