param_var¶
Provides a class that can either be a reference to a value or to a variable.
-
class
energy_hub.param_var.
ConstantOrVar
(*indices, model=None, values: Dict[KT, VT] = None)[source]¶ Provides access to data that can either be a constant or a variable.
The values can either be a constant (like a float) or can be a str, which is a reference to a variable in the model.
-
values
¶ Return the values.
-