GridModule.get_co2_cost#

GridModule.get_co2_cost(import_export, as_source, as_sink)[source]#

Current cost of the carbon dioxide production of the grid’s usage.

If the module is exporting to the grid, co2 production cost will be zero.

Parameters#

import_exportfloat

Amount of energy that is imported or exported.

as_sourcebool

Whether the grid is acting as a source.

as_sinkbool

Whether the grid is acting as a sink.

Returns#

co2_costfloat

Cost of carbon dioxide production.