energia.modeling.constraints.balance#

Balance

Functions

is_(a, b, /)

Same as a is b.

timer(logger[, kind, level])

Logs execution time and optionally shows a full computation using function arguments and result.

Classes

Balance(aspect, domain)

Performs a general commodity balance

Stored(*args, **kwargs)

Resource in Storage

cached_property(func)

class Balance(aspect: Aspect, domain: Domain)[source]#

Bases: _Hash

Performs a general commodity balance

Parameters:
  • aspect (Aspect) – Aspect to which the constraint is applied

  • domain (Domain) – Domain over which the aspect is defined

write() tuple[Domain, Aspect] | Domain | bool | None[source]#

Writes the stream balance constraint

property stored[source]#

If the commodity is a Stored commodity

property space: Location | Linkage | None[source]#

Location or Linkage of the constraint

property name: str[source]#

Name of the constraint

property cons_name: str[source]#

Name of the constraint

property existing_aspects#

Exisiting Aspects

property updated_part: V | F | int[source]#

Returns the part of the constraint that is new