optimization.variable.material#
Material Variable Module
This module contains the MaterialVariable class, which represents a variable for the material at a specific surface such as a glass. The variable can be used in optimization problems to optimize the material at a specific surface.
Classes
|
Represents a variable for the material at a specific surface. |
- class MaterialVariable(optic, surface_number: int, glass_selection: list[str], scaler: Scaler = None, **kwargs)[source]#
Represents a variable for the material at a specific surface.
- Parameters:
- get_value() str[source]#
Returns the name of the material at the specified surface.
- Returns:
The material name.
- Return type:
- inverse_scale(scaled_value)#
Inverse scale the value of the variable.
- Parameters:
scaled_value – The scaled value to inverse scale
- scale(value)#
Scale the value of the variable for improved optimization performance.
- Parameters:
value – The value to scale