energia.components.commodities#

energiapy.commodities module

Classes

Currency(*locs[, label, citations])

Same as Economic Impact (Eco)

Emission([basis, label, citations])

Land([basis, label, citations])

Land used by Operations

Material([basis, label, citations])

Materials are Resources, that are used to set up Operations

Resource([basis, label, citations])

A resource, can be a material, chemical, energy, etc.

class Currency(*locs: Location, label: str = '', citations: str = '', **kwargs)[source]#

Bases: Commodity

Same as Economic Impact (Eco)

Parameters:
  • label (str, optional) – Label of the commodity, used for plotting. Defaults to None.

  • name (str, optional) – Name of the commodity, used for indexing. Defaults to None.

Variables:
  • model (Model) – The model to which the component belongs.

  • name (str) – Set when the component is assigned as a Model attribute.

  • constraints (list[str]) – List of constraints associated with the component.

  • domains (list[Domain]) – List of domains associated with the component.

  • aspects (dict[Aspect, list[Domain]]) – Aspects associated with the component with domains.

  • conversions (list[Conversion]) – List of conversions associated with the commodity. Defaults to [].

  • insitu (bool, optional) – If the commodity only exists insitu, i.e., does not scale any domains

locs: list[Location] | None = None#
exchange: dict[Self, float]#
howmany(cash: Self)[source]#

Exchange rate basically

property I#

gana index set (I)

property balance: dict[Conversion | Self, int | float]#

Conversion

property cons: list[C]#

Constraints

get(k[, d]) D[k] if k in D, else d.  d defaults to None.#
property horizon: Periods#

Circumscribing Periods (Temporal Scale)

items() a set-like object providing a view on D's items#
keys() a set-like object providing a view on D's keys#
property network: Location#

Circumscribing Loc (Spatial Scale)

property problem: Problem#

Feasible Region

property program: Prg#

Mathematical program

show(descriptive=False, category: str = '')#

Pretty print the component

property space: Space#

Space

property time: Time#

Time

values() an object providing a view on D's values#
conversions: list[Conversion]#
model: Model | None#
name: str#
constraints: set[str]#
domains: list[Domain]#
aspects: dict[Aspect, set[Domain]]#
class Emission(basis: Unit | None = None, label: str = '', citations: str = '', **kwargs)[source]#

Bases: Commodity

Parameters:
  • label (str, optional) – Label of the commodity, used for plotting. Defaults to None.

  • name (str, optional) – Name of the commodity, used for indexing. Defaults to None.

  • basis (Unit, optional) – Unit basis of the commodity. Defaults to None.

Variables:
  • model (Model) – The model to which the component belongs.

  • name (str) – Set when the component is assigned as a Model attribute.

  • constraints (list[str]) – List of constraints associated with the component.

  • domains (list[Domain]) – List of domains associated with the component.

  • aspects (dict[Aspect, list[Domain]]) – Aspects associated with the component with domains.

  • conversions (list[Conversion]) – List of conversions associated with the commodity. Defaults to [].

  • insitu (bool, optional) – If the commodity only exists insitu, i.e., does not scale any domains

property I#

gana index set (I)

property balance: dict[Conversion | Self, int | float]#

Conversion

property cons: list[C]#

Constraints

get(k[, d]) D[k] if k in D, else d.  d defaults to None.#
property horizon: Periods#

Circumscribing Periods (Temporal Scale)

items() a set-like object providing a view on D's items#
keys() a set-like object providing a view on D's keys#
property network: Location#

Circumscribing Loc (Spatial Scale)

property problem: Problem#

Feasible Region

property program: Prg#

Mathematical program

show(descriptive=False, category: str = '')#

Pretty print the component

property space: Space#

Space

property time: Time#

Time

values() an object providing a view on D's values#
class Land(basis: Unit | None = None, label: str = '', citations: str = '', **kwargs)[source]#

Bases: Commodity

Land used by Operations

Parameters:
  • label (str, optional) – Label of the commodity, used for plotting. Defaults to None.

  • name (str, optional) – Name of the commodity, used for indexing. Defaults to None.

  • basis (Unit, optional) – Unit basis of the commodity. Defaults to None.

Variables:
  • model (Model) – The model to which the component belongs.

  • name (str) – Set when the component is assigned as a Model attribute.

  • constraints (list[str]) – List of constraints associated with the component.

  • domains (list[Domain]) – List of domains associated with the component.

  • aspects (dict[Aspect, list[Domain]]) – Aspects associated with the component with domains.

  • conversions (list[Conversion]) – List of conversions associated with the commodity. Defaults to [].

  • insitu (bool, optional) – If the commodity only exists insitu, i.e., does not scale any domains

property I#

gana index set (I)

property balance: dict[Conversion | Self, int | float]#

Conversion

property cons: list[C]#

Constraints

get(k[, d]) D[k] if k in D, else d.  d defaults to None.#
property horizon: Periods#

Circumscribing Periods (Temporal Scale)

items() a set-like object providing a view on D's items#
keys() a set-like object providing a view on D's keys#
property network: Location#

Circumscribing Loc (Spatial Scale)

property problem: Problem#

Feasible Region

property program: Prg#

Mathematical program

show(descriptive=False, category: str = '')#

Pretty print the component

property space: Space#

Space

property time: Time#

Time

values() an object providing a view on D's values#
class Material(basis: Unit | None = None, label: str = '', citations: str = '', **kwargs)[source]#

Bases: Resource

Materials are Resources, that are used to set up Operations

Parameters:
  • label (str, optional) – Label of the commodity, used for plotting. Defaults to None.

  • name (str, optional) – Name of the commodity, used for indexing. Defaults to None.

  • basis (Unit, optional) – Unit basis of the commodity. Defaults to None.

Variables:
  • model (Model) – The model to which the component belongs.

  • name (str) – Set when the component is assigned as a Model attribute.

  • constraints (list[str]) – List of constraints associated with the component.

  • domains (list[Domain]) – List of domains associated with the component.

  • aspects (dict[Aspect, list[Domain]]) – Aspects associated with the component with domains.

  • conversions (list[Conversion]) – List of conversions associated with the commodity. Defaults to [].

  • insitu (bool, optional) – If the commodity only exists insitu, i.e., does not scale any domains

property I#

gana index set (I)

property balance: dict[Conversion | Self, int | float]#

Conversion

property cons: list[C]#

Constraints

get(k[, d]) D[k] if k in D, else d.  d defaults to None.#
property horizon: Periods#

Circumscribing Periods (Temporal Scale)

items() a set-like object providing a view on D's items#
keys() a set-like object providing a view on D's keys#
property network: Location#

Circumscribing Loc (Spatial Scale)

property problem: Problem#

Feasible Region

property program: Prg#

Mathematical program

show(descriptive=False, category: str = '')#

Pretty print the component

property space: Space#

Space

property time: Time#

Time

values() an object providing a view on D's values#
class Resource(basis: Unit | None = None, label: str = '', citations: str = '', **kwargs)[source]#

Bases: Commodity

A resource, can be a material, chemical, energy, etc.

Parameters:
  • label (str, optional) – Label of the commodity, used for plotting. Defaults to None.

  • name (str, optional) – Name of the commodity, used for indexing. Defaults to None.

  • basis (Unit, optional) – Unit basis of the commodity. Defaults to None.

Variables:
  • model (Model) – The model to which the component belongs.

  • name (str) – Set when the component is assigned as a Model attribute.

  • constraints (list[str]) – List of constraints associated with the component.

  • domains (list[Domain]) – List of domains associated with the component.

  • aspects (dict[Aspect, list[Domain]]) – Aspects associated with the component with domains.

  • conversions (list[Conversion]) – List of conversions associated with the commodity. Defaults to [].

  • insitu (bool, optional) – If the commodity only exists insitu, i.e., does not scale any domains

property I#

gana index set (I)

property balance: dict[Conversion | Self, int | float]#

Conversion

property cons: list[C]#

Constraints

get(k[, d]) D[k] if k in D, else d.  d defaults to None.#
property horizon: Periods#

Circumscribing Periods (Temporal Scale)

items() a set-like object providing a view on D's items#
keys() a set-like object providing a view on D's keys#
property network: Location#

Circumscribing Loc (Spatial Scale)

property problem: Problem#

Feasible Region

property program: Prg#

Mathematical program

show(descriptive=False, category: str = '')#

Pretty print the component

property space: Space#

Space

property time: Time#

Time

values() an object providing a view on D's values#

Modules

commodity

Commodity Base Class

currency

Currency

emission

Emission

land

Land

material

Material

misc

Miscellaneous Commodities

resource

Resource are: 1.