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: List, model=None, values: Dict | None = 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.

property values

Return the values.