optimization.variable.variable_manager
Classes
Manages a list of variables in a merit function. |
- class VariableManager[source]
Manages a list of variables in a merit function.
- variables
A list of Variable objects.
- Type:
list
- add(optic, variable_type, scaler: Scaler = None, **kwargs)[source]
Add a variable to the merit function
- Parameters:
optic (OpticalSystem) – The optical system to which the variable belongs.
variable_type (str) – The type of the variable.
scaler (Scaler, optional) – The scaler to use for the variable. Defaults to None, which will use the default scaler for the variable type.
**kwargs – Additional keyword arguments to be passed to the Variable constructor.