add_variation#

SetupOpti.add_variation(variable_name, min_value, max_value, starting_point=None, min_step=None, max_step=None, use_manufacturable=False, levels=None)[source]#

Add a new variable as input for the optimization and defines its ranges.

Parameters:
variable_namestr

Name of the variable.

min_valuefloat

Minimum Optimization Value for variable_name.

max_valuefloat

Maximum Optimization Value for variable_name.

starting_pointfloat, optional

Starting point for optimization. If None, default will be used.

min_stepfloat

Minimum Step Size for optimization. If None, 1/100 of the range will be used.

max_stepfloat

Maximum Step Size for optimization. If None, 1/10 of the range will be used.

use_manufacturablebool

Either if to use or not the Manufacturable values. Default is False.

levelslist, optional

List of available manufacturer levels.

Returns:
bool