add_variation#
- SetupOpti.add_variation(variable_name: str, min_value: float, max_value: float, starting_point: float = None, min_step: float = None, max_step: float = None, use_manufacturable: bool = False, levels: list = None) bool#
Add a new variable as input for the optimization and defines its ranges.
- Parameters:
- variable_name
str Name of the variable.
- min_value
float Minimum Optimization Value for variable_name.
- max_value
float Maximum Optimization Value for variable_name.
- starting_point
float,optional Starting point for optimization. If None, default will be used.
- min_step
float Minimum Step Size for optimization. If None, 1/100 of the range will be used.
- max_step
float 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.
- levels
list,optional List of available manufacturer levels.
- variable_name
- Returns: