energia.modeling.parameters.conversions#

Different Pre-Set Conversions

Classes

Construction([operation, aspect, resource, ...])

Operation Construction Conversion

Conversion([aspect, add, sub, operation, ...])

Processes convert one Commodity to another Commodity Conversion provides the conversion of resources

Production([operation, resource, balance, ...])

Process Production

Transportation([operation, resource, ...])

Transport Conversion

class Production(operation: Operation | Storage | None = None, resource: Commodity | None = None, balance: dict[Commodity, float | list[float]] | None = None, hold: int | float | None = None, symbol: str = 'η', use_max_time: bool = False)[source]#

Bases: Conversion

Process Production

property args: dict[str, str | Operation | Commodity | None]#

Arguments of the conversion

balancer()#

Checks if there is a list in the conversion If yes, tries to make everything consistent

classmethod from_balance(balance: dict[Commodity, float | list[float]], by: str = '', add: str = '', sub: str = '', operation: Operation | None = None, basis: Commodity | None = None) Self#

Creates Conversion from balance dict

get(k[, d]) D[k] if k in D, else d.  d defaults to None.#
items()#

Items of the conversion balance

keys()#

Keys of the conversion balance

property model: Model | None#

energia Model

property name: str#

Name

property program: Prg | None#

gana Program

time_checker(commodity: Commodity, space: Location | Linkage, time: Periods)#

This checks if it is actually necessary to write conversion at denser temporal scales

values()#

Values of the conversion balance

write(space: Location | Linkage, time: Periods | Lag, modes: Modes | None = None)#

Writes equations for conversion balance

class Construction(operation: Operation | Storage | None = None, aspect: str = 'capacity', resource: Commodity | None = None, balance: dict[Commodity, float | list[float]] | None = None, hold: int | float | None = None, symbol: str = 'γ', use_max_time: bool = True)[source]#

Bases: Conversion

Operation Construction Conversion

property args: dict[str, str | Operation | Commodity | None]#

Arguments of the conversion

balancer()#

Checks if there is a list in the conversion If yes, tries to make everything consistent

classmethod from_balance(balance: dict[Commodity, float | list[float]], by: str = '', add: str = '', sub: str = '', operation: Operation | None = None, basis: Commodity | None = None) Self#

Creates Conversion from balance dict

get(k[, d]) D[k] if k in D, else d.  d defaults to None.#
items()#

Items of the conversion balance

keys()#

Keys of the conversion balance

property model: Model | None#

energia Model

property name: str#

Name

property program: Prg | None#

gana Program

time_checker(commodity: Commodity, space: Location | Linkage, time: Periods)#

This checks if it is actually necessary to write conversion at denser temporal scales

values()#

Values of the conversion balance

write(space: Location | Linkage, time: Periods | Lag, modes: Modes | None = None)#

Writes equations for conversion balance

class Transportation(operation: Operation | Storage | None = None, resource: Commodity | None = None, balance: dict[Commodity, float | list[float]] | None = None, hold: int | float | None = None, symbol: str = 'τ', use_max_time: bool = False)[source]#

Bases: Conversion

Transport Conversion

write(space: Linkage, time: Periods | Lag, modes: Modes | None = None)[source]#

Writes equations for conversion balance

property args: dict[str, str | Operation | Commodity | None]#

Arguments of the conversion

balancer()#

Checks if there is a list in the conversion If yes, tries to make everything consistent

classmethod from_balance(balance: dict[Commodity, float | list[float]], by: str = '', add: str = '', sub: str = '', operation: Operation | None = None, basis: Commodity | None = None) Self#

Creates Conversion from balance dict

get(k[, d]) D[k] if k in D, else d.  d defaults to None.#
items()#

Items of the conversion balance

keys()#

Keys of the conversion balance

property model: Model | None#

energia Model

property name: str#

Name

property program: Prg | None#

gana Program

time_checker(commodity: Commodity, space: Location | Linkage, time: Periods)#

This checks if it is actually necessary to write conversion at denser temporal scales

values()#

Values of the conversion balance