ScalarCostSpec

class flexops.costing.flex_costing.ScalarCostSpec(name: str, quantity: Any, price: float, quantity_units: Any, unit: Any = None)

A non-energy scalar cost registered on FlexCosting (never billed via EECO).

name

The cost’s name (e.g. "water", "chemicals").

Type:

str

quantity

The time-indexed Var/Expression being costed (a rate).

Type:

Any

price

The signed price per unit quantity (positive = cost, negative = revenue/credit).

Type:

float

quantity_units

The Pyomo units quantity is converted to before costing (a rate, e.g. m**3/hr); a quantity that does not convert raises, forcing unit consistency.

Type:

Any

unit

The unit block this cost is attributed to, or None for a facility-level cost; recorded for per-unit cost attribution.

Type:

Any